mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
app-emacs/lsp-treemacs: new package; add version 0.4
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
2c2a902ccb
commit
a5852fd336
1
app-emacs/lsp-treemacs/Manifest
Normal file
1
app-emacs/lsp-treemacs/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST lsp-treemacs-0.4.tar.gz 1414056 BLAKE2B 508032a0514cb32e6f05974966dcc035d35f4780ef936f730901c3b5c9d5ab3f632ae22faf0a37fb81cf0e3388e53453c28e304f48ee5a8e090c9b771db47caf SHA512 e9e7ae5459c924d201fd164eaf245fd872187388bf9ead39e51962ad867919a7511f23543da01c17cad08f3fc0fe7b7607d6a2a5bc4d04dd392c6e6c5f3374d3
|
||||
1
app-emacs/lsp-treemacs/files/50lsp-treemacs-gentoo.el
Normal file
1
app-emacs/lsp-treemacs/files/50lsp-treemacs-gentoo.el
Normal file
@ -0,0 +1 @@
|
||||
(add-to-list 'load-path "@SITELISP@")
|
||||
@ -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 "-")
|
||||
42
app-emacs/lsp-treemacs/lsp-treemacs-0.4.ebuild
Normal file
42
app-emacs/lsp-treemacs/lsp-treemacs-0.4.ebuild
Normal file
@ -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
|
||||
}
|
||||
13
app-emacs/lsp-treemacs/metadata.xml
Normal file
13
app-emacs/lsp-treemacs/metadata.xml
Normal file
@ -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>
|
||||
Loading…
x
Reference in New Issue
Block a user