diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-04-26 02:31:04 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-04-26 03:31:41 +0200 |
commit | a5852fd33664baee6a9d275eb20259de96a842a6 (patch) | |
tree | 7400cf51d0b1aa47ef28827a02b812a5890ce6e0 /app-emacs/lsp-treemacs | |
parent | app-emacs/treemacs: new package; add version 2.9.5 (diff) | |
download | gentoo-a5852fd33664baee6a9d275eb20259de96a842a6.tar.gz gentoo-a5852fd33664baee6a9d275eb20259de96a842a6.tar.bz2 gentoo-a5852fd33664baee6a9d275eb20259de96a842a6.zip |
app-emacs/lsp-treemacs: new package; add version 0.4
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/lsp-treemacs')
-rw-r--r-- | app-emacs/lsp-treemacs/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/lsp-treemacs/files/50lsp-treemacs-gentoo.el | 1 | ||||
-rw-r--r-- | app-emacs/lsp-treemacs/files/lsp-treemacs-themes-icon-directory.patch | 39 | ||||
-rw-r--r-- | app-emacs/lsp-treemacs/lsp-treemacs-0.4.ebuild | 42 | ||||
-rw-r--r-- | app-emacs/lsp-treemacs/metadata.xml | 13 |
5 files changed, 96 insertions, 0 deletions
diff --git a/app-emacs/lsp-treemacs/Manifest b/app-emacs/lsp-treemacs/Manifest new file mode 100644 index 000000000000..0da450066a20 --- /dev/null +++ b/app-emacs/lsp-treemacs/Manifest @@ -0,0 +1 @@ +DIST lsp-treemacs-0.4.tar.gz 1414056 BLAKE2B 508032a0514cb32e6f05974966dcc035d35f4780ef936f730901c3b5c9d5ab3f632ae22faf0a37fb81cf0e3388e53453c28e304f48ee5a8e090c9b771db47caf SHA512 e9e7ae5459c924d201fd164eaf245fd872187388bf9ead39e51962ad867919a7511f23543da01c17cad08f3fc0fe7b7607d6a2a5bc4d04dd392c6e6c5f3374d3 diff --git a/app-emacs/lsp-treemacs/files/50lsp-treemacs-gentoo.el b/app-emacs/lsp-treemacs/files/50lsp-treemacs-gentoo.el new file mode 100644 index 000000000000..431f7e90ae73 --- /dev/null +++ b/app-emacs/lsp-treemacs/files/50lsp-treemacs-gentoo.el @@ -0,0 +1 @@ +(add-to-list 'load-path "@SITELISP@") diff --git a/app-emacs/lsp-treemacs/files/lsp-treemacs-themes-icon-directory.patch b/app-emacs/lsp-treemacs/files/lsp-treemacs-themes-icon-directory.patch new file mode 100644 index 000000000000..da681081c975 --- /dev/null +++ b/app-emacs/lsp-treemacs/files/lsp-treemacs-themes-icon-directory.patch @@ -0,0 +1,39 @@ +index 3a24127..2dbe570 100644 +--- a/lsp-treemacs-themes.el ++++ b/lsp-treemacs-themes.el +@@ -32,7 +32,7 @@ + :group 'lsp-treemacs) + + (treemacs-modify-theme "Default" +- :icon-directory (f-join (f-dirname (or load-file-name buffer-file-name)) "icons/vscode") ++ :icon-directory "@SITEETC@/icons/vscode" + :config + (progn + (treemacs-create-icon :file "BooleanData.png" :extensions (boolean-data) :fallback "-") +@@ -107,7 +107,7 @@ + + (treemacs-create-theme "Eclipse" + :extends "Default" +- :icon-directory (f-join (f-dirname (or load-file-name buffer-file-name)) "icons/eclipse") ++ :icon-directory "@SITEETC@/icons/eclipse" + :config + (progn + (treemacs-create-icon :file "vscode/Namespace.png" :extensions (namespace) :fallback "-") +@@ -140,7 +140,7 @@ + + (treemacs-create-theme "Netbeans" + :extends "Default" +- :icon-directory (f-join (f-dirname (or load-file-name buffer-file-name)) "icons/netbeans") ++ :icon-directory "@SITEETC@/icons/netbeans" + :config + (progn + (treemacs-create-icon :file "vscode/Namespace.png" :extensions (namespace) :fallback "-") +@@ -173,7 +173,7 @@ + + (treemacs-create-theme "Idea" + :extends "Default" +- :icon-directory (f-join (f-dirname (or load-file-name buffer-file-name)) "icons/idea") ++ :icon-directory "@SITEETC@/icons/idea" + :config + (progn + (treemacs-create-icon :file "vscode/template.png" :extensions (template) :fallback "-") diff --git a/app-emacs/lsp-treemacs/lsp-treemacs-0.4.ebuild b/app-emacs/lsp-treemacs/lsp-treemacs-0.4.ebuild new file mode 100644 index 000000000000..ef05f39a0638 --- /dev/null +++ b/app-emacs/lsp-treemacs/lsp-treemacs-0.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.1 + +inherit elisp + +DESCRIPTION="Integration between lsp-mode and treemacs" +HOMEPAGE="https://github.com/emacs-lsp/lsp-treemacs/" +SRC_URI="https://github.com/emacs-lsp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +KEYWORDS="~amd64" +SLOT="0" + +RDEPEND=" + app-emacs/dash + app-emacs/f + app-emacs/ht + app-emacs/lsp-mode + app-emacs/treemacs +" +BDEPEND="${RDEPEND}" + +DOCS=( README.org screenshots ) +PATCHES=( "${FILESDIR}"/${PN}-themes-icon-directory.patch ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITEETC@|${SITEETC}/${PN}|" -i ${PN}-themes.el || die +} + +src_install() { + elisp_src_install + + insinto ${SITEETC}/${PN} + doins -r icons +} diff --git a/app-emacs/lsp-treemacs/metadata.xml b/app-emacs/lsp-treemacs/metadata.xml new file mode 100644 index 000000000000..f1fee62f0029 --- /dev/null +++ b/app-emacs/lsp-treemacs/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/emacs-lsp/lsp-treemacs/issues/</bugs-to> + <remote-id type="github">emacs-lsp/lsp-treemacs</remote-id> + </upstream> +</pkgmetadata> |