diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /app-emacs/lsp-java | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'app-emacs/lsp-java')
-rw-r--r-- | app-emacs/lsp-java/Manifest | 5 | ||||
-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, 90 insertions, 0 deletions
diff --git a/app-emacs/lsp-java/Manifest b/app-emacs/lsp-java/Manifest new file mode 100644 index 000000000000..2538b1745eec --- /dev/null +++ b/app-emacs/lsp-java/Manifest @@ -0,0 +1,5 @@ +AUX 50lsp-java-gentoo.el 38 BLAKE2B e96c6cf48d1522d89450e11d339c76210c672377208b56951791b83c6ef22b2c872d313084e199dd5d7b533a99106a87dbc7f15b5ee6126f71bf5f2e84165ffa SHA512 5c00bcabe2d7cc03013dc7a54b2c653940c08098ca5646d7c73624cb1ca04376ae9dcf88a7166b1925c69f0c5d192d90f6bd790fdef8ed8c3b0f9d163c987da5 +AUX lsp-java-icons.patch 912 BLAKE2B e00bf73b8c3d99bbc597783ed97ce3a4f556da59843b37d526c6600fb87b8c40e45ef1cce5643a18ef507b96c8e0d82637d1b809bae60cf1e8eb78318739631e SHA512 d27a5c13e271b6363bae22dabeaf2b21981fb22991004996b2022d5cd12419bbe78b0e6e6a474c7909a9c7fe7e8cee0b5853505d85abd3a44898d4f56b99ef33 +DIST lsp-java-3.1.tar.gz 823300 BLAKE2B eacf2090822b629ea775e5848ddc9993ba09217e1eb9563ce9532da075a6cfd1f001010ca886f8bd42ac9af95d12c91dac9ac946ddafb1b6e544943cf44a2036 SHA512 34951a1c4a050215d388fb5f273c9f2cb76788b9e2120d4b0f49b20cd5a1151be039351bece6ae311fb7f37a6ee72a2e641a49f6194886c9729b5b5659e02428 +EBUILD lsp-java-3.1.ebuild 934 BLAKE2B 2acb9186acd8338264f8db18ef0a73e10e7404276aacbb218847cfb89de9d13de66461e3724c70122aa8cd66d458d1d8cfd23ce5de85e704cb303223138be02c SHA512 0d34065802ffe10df203c9f43685ab537dc9ddc316749eb0fad6aeb07d295ed733b1b3ede441406a4db51c3a18259a37cf6f766ae962d22d714e8c7703c5dfdf +MISC metadata.xml 425 BLAKE2B aa0b126c8b256673f723f9454f8cf4592f61619f0d5774f0b4c6267259eccb8040d257f6261981ac75aeac86e15b6e53eb2f16e242fcc410c9a538cdaf3678b7 SHA512 d22e69f9ca8e65c4b9db4f8b7801fb059348fc22c59f7814ee1a1032d53ae26a61efc3fa2d6ed90178490fb42f75c5963583b06cfa8be6218b568c695318e5e6 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> |