diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-04-08 23:34:46 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-04-09 00:00:11 +0200 |
commit | bffef729d8567659e07ababb1408bfdeeced0f6d (patch) | |
tree | 30aad81f6044b0844d25dd2d866dd570bef88ded /app-emacs | |
parent | app-emacs/lsp-treemacs: bump to 0.5 (diff) | |
download | gentoo-bffef729d8567659e07ababb1408bfdeeced0f6d.tar.gz gentoo-bffef729d8567659e07ababb1408bfdeeced0f6d.tar.bz2 gentoo-bffef729d8567659e07ababb1408bfdeeced0f6d.zip |
app-emacs/lsp-java: bump to 3.1_p20240328
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/lsp-java/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/lsp-java/files/lsp-java-icons-3.1_p20240328.patch | 24 | ||||
-rw-r--r-- | app-emacs/lsp-java/lsp-java-3.1_p20240328.ebuild | 65 |
3 files changed, 90 insertions, 0 deletions
diff --git a/app-emacs/lsp-java/Manifest b/app-emacs/lsp-java/Manifest index f297d2a6bc4b..4da75290650e 100644 --- a/app-emacs/lsp-java/Manifest +++ b/app-emacs/lsp-java/Manifest @@ -1 +1,2 @@ DIST lsp-java-3.1.tar.gz 823300 BLAKE2B eacf2090822b629ea775e5848ddc9993ba09217e1eb9563ce9532da075a6cfd1f001010ca886f8bd42ac9af95d12c91dac9ac946ddafb1b6e544943cf44a2036 SHA512 34951a1c4a050215d388fb5f273c9f2cb76788b9e2120d4b0f49b20cd5a1151be039351bece6ae311fb7f37a6ee72a2e641a49f6194886c9729b5b5659e02428 +DIST lsp-java-3.1_p20240328.tar.gz 833134 BLAKE2B 5e87c2b120e0e07e33fdf5b47b42fa01fc146d7ee00cc7f35cd023ce42e16726e0b2d50a15e12b200a6a22ef47be43daf8f6ce7ef92acc7f558d53fc5b31ed08 SHA512 68ef39f81f278d469443416e6c8754e5b00ce22c6512301e6d37f51daf3123a32fe52347ab1f9c252fc7711099e61dac3ba3566def03d04a59f93d5d575c6bf4 diff --git a/app-emacs/lsp-java/files/lsp-java-icons-3.1_p20240328.patch b/app-emacs/lsp-java/files/lsp-java-icons-3.1_p20240328.patch new file mode 100644 index 000000000000..1643bf6a7405 --- /dev/null +++ b/app-emacs/lsp-java/files/lsp-java-icons-3.1_p20240328.patch @@ -0,0 +1,24 @@ +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) +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_p20240328.ebuild b/app-emacs/lsp-java/lsp-java-3.1_p20240328.ebuild new file mode 100644 index 000000000000..3f886354c7a8 --- /dev/null +++ b/app-emacs/lsp-java/lsp-java-3.1_p20240328.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=27.1 + +inherit elisp + +DESCRIPTION="Emacs Java IDE using Eclipse JDT Language Server" +HOMEPAGE="https://emacs-lsp.github.io/lsp-java/ + https://github.com/emacs-lsp/lsp-java/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/emacs-lsp/${PN}" +else + COMMIT_SHA=9296ecd97310458d39338566c3491a27d90f5577 + SRC_URI="https://github.com/emacs-lsp/${PN}/archive/${COMMIT_SHA}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT_SHA}" + + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" + +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} +" + +ELISP_REMOVE=" + Makefile +" +PATCHES=( + "${FILESDIR}/${PN}-icons-3.1_p20240328.patch" +) + +DOCS=( README.md images ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed -e "s|@SITEETC@|${SITEETC}/${PN}|" -i "${PN}.el" -i lsp-jt.el || die +} + +src_install() { + elisp_src_install + + insinto "${SITEETC}/${PN}" + doins -r icons +} |