diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-04-26 03:22:01 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-04-26 03:31:42 +0200 |
commit | 38cbc4b12ddbe4731974afa0215a050e6250e1a2 (patch) | |
tree | 4577d492c76b6d5f619ddc7de619dbd2b2fa0191 /app-emacs/lsp-java | |
parent | app-emacs/request: new package; add version 0.3.2 (diff) | |
download | gentoo-38cbc4b12ddbe4731974afa0215a050e6250e1a2.tar.gz gentoo-38cbc4b12ddbe4731974afa0215a050e6250e1a2.tar.bz2 gentoo-38cbc4b12ddbe4731974afa0215a050e6250e1a2.zip |
app-emacs/lsp-java: new package; add version 3.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/lsp-java')
-rw-r--r-- | app-emacs/lsp-java/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/lsp-java/files/50lsp-java-gentoo.el | 1 | ||||
-rw-r--r-- | app-emacs/lsp-java/files/lsp-java-icons.patch | 25 | ||||
-rw-r--r-- | app-emacs/lsp-java/lsp-java-3.1.ebuild | 46 | ||||
-rw-r--r-- | app-emacs/lsp-java/metadata.xml | 13 |
5 files changed, 86 insertions, 0 deletions
diff --git a/app-emacs/lsp-java/Manifest b/app-emacs/lsp-java/Manifest new file mode 100644 index 000000000000..f297d2a6bc4b --- /dev/null +++ b/app-emacs/lsp-java/Manifest @@ -0,0 +1 @@ +DIST lsp-java-3.1.tar.gz 823300 BLAKE2B eacf2090822b629ea775e5848ddc9993ba09217e1eb9563ce9532da075a6cfd1f001010ca886f8bd42ac9af95d12c91dac9ac946ddafb1b6e544943cf44a2036 SHA512 34951a1c4a050215d388fb5f273c9f2cb76788b9e2120d4b0f49b20cd5a1151be039351bece6ae311fb7f37a6ee72a2e641a49f6194886c9729b5b5659e02428 diff --git a/app-emacs/lsp-java/files/50lsp-java-gentoo.el b/app-emacs/lsp-java/files/50lsp-java-gentoo.el new file mode 100644 index 000000000000..431f7e90ae73 --- /dev/null +++ b/app-emacs/lsp-java/files/50lsp-java-gentoo.el @@ -0,0 +1 @@ +(add-to-list 'load-path "@SITELISP@") diff --git a/app-emacs/lsp-java/files/lsp-java-icons.patch b/app-emacs/lsp-java/files/lsp-java-icons.patch new file mode 100644 index 000000000000..5c89490d8688 --- /dev/null +++ b/app-emacs/lsp-java/files/lsp-java-icons.patch @@ -0,0 +1,25 @@ +index b7f8083..571a19e 100644 +--- a/lsp-java.el ++++ b/lsp-java.el +@@ -78,7 +78,7 @@ Use http://download.eclipse.org/che/che-ls-jdt/snapshots/che-jdt-language-server + :risky t + :type 'directory) + +-(defcustom lsp-java-themes-directory (f-join (f-dirname (or load-file-name buffer-file-name)) "icons") ++(defcustom lsp-java-themes-directory "@SITEETC@/icons" + "Directory containing themes." + :type 'directory + :group 'lsp-java) +diff --git a/lsp-jt.el b/lsp-jt.el +index 4aecfd9..ea05a51 100644 +--- a/lsp-jt.el ++++ b/lsp-jt.el +@@ -185,7 +185,7 @@ + (-uniq (gethash 'jdtls (lsp-session-server-id->folders (lsp-session))))) + + (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 "class.png" :extensions (java-test-class) :fallback "-") diff --git a/app-emacs/lsp-java/lsp-java-3.1.ebuild b/app-emacs/lsp-java/lsp-java-3.1.ebuild new file mode 100644 index 000000000000..d67e027ae82a --- /dev/null +++ b/app-emacs/lsp-java/lsp-java-3.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=25.1 + +inherit elisp + +DESCRIPTION="Emacs Java IDE using Eclipse JDT Language Server" +HOMEPAGE="https://emacs-lsp.github.io/lsp-java/" +SRC_URI="https://github.com/emacs-lsp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +KEYWORDS="~amd64" +SLOT="0" +RESTRICT="test" # Tests are unnecessary, they run "build compile checkdoc lint" + +RDEPEND=" + app-emacs/dap-mode + app-emacs/dash + app-emacs/f + app-emacs/ht + app-emacs/lsp-mode + app-emacs/markdown-mode + app-emacs/request + app-emacs/treemacs +" +BDEPEND="${RDEPEND}" + +DOCS=( README.md images ) +PATCHES=( "${FILESDIR}"/${PN}-icons.patch ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITEETC@|${SITEETC}/${PN}|" -i ${PN}.el -i lsp-jt.el || die +} + +src_install() { + elisp_src_install + + insinto ${SITEETC}/${PN} + doins -r icons +} diff --git a/app-emacs/lsp-java/metadata.xml b/app-emacs/lsp-java/metadata.xml new file mode 100644 index 000000000000..5fcc78f3e9bc --- /dev/null +++ b/app-emacs/lsp-java/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-java/issues/</bugs-to> + <remote-id type="github">emacs-lsp/lsp-java</remote-id> + </upstream> +</pkgmetadata> |