summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Roman <droman@ifae.es>2023-08-01 21:50:22 +0200
committerJoonas Niilola <juippis@gentoo.org>2024-05-09 16:30:31 +0300
commitfdb63f02d6e26b214adfbeb5fd4151c27bca553f (patch)
treeb40f7ae13a2cfe92cdf958cfab4fe81e6ed98b10 /app-text
parentdev-libs/mpdecimal: Override linker vars as well (diff)
downloadgentoo-fdb63f02d6e26b214adfbeb5fd4151c27bca553f.tar.gz
gentoo-fdb63f02d6e26b214adfbeb5fd4151c27bca553f.tar.bz2
gentoo-fdb63f02d6e26b214adfbeb5fd4151c27bca553f.zip
app-text/languagetool: add 6.3
Signed-off-by: David Roman <droman@ifae.es> Closes: https://github.com/gentoo/gentoo/pull/32133 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/languagetool/Manifest1
-rw-r--r--app-text/languagetool/languagetool-6.3.ebuild77
-rw-r--r--app-text/languagetool/metadata.xml3
3 files changed, 81 insertions, 0 deletions
diff --git a/app-text/languagetool/Manifest b/app-text/languagetool/Manifest
index 56717604ad5c..8a8532d979be 100644
--- a/app-text/languagetool/Manifest
+++ b/app-text/languagetool/Manifest
@@ -1 +1,2 @@
DIST LanguageTool-5.4.zip 202761711 BLAKE2B b23c2944bf40dbef70d43391761849fb83b55538ac1cf0312c82079caef0a91f177f67c0e5818ea558c485d0bc2f4425f6cd32064095aede755a3b1233cf62d7 SHA512 08048f5bb8c5f7050ca2081a9f00405b0b397c37511a8297675f031bbb59e19863195e3b624dabb0964d436ad1570112e8c85225905ae22f2bde2a0200fcd883
+DIST LanguageTool-6.3.zip 231674701 BLAKE2B 1499f28602de9eaa41760e7329394f8c9ee26022ec97e0fb63944a7ad5002a829dcb6377d33df5a4668359a498907a2df06722a38869fbde190f2b3c95523e8c SHA512 c5c3726ef358ad6ad5e984c7b65192ff6f2858bd5bd6e9d3ad935409b17135d84eec5e660accd097de93fbd16ecfc428d70458d2ea28a6875361d87a0219cefc
diff --git a/app-text/languagetool/languagetool-6.3.ebuild b/app-text/languagetool/languagetool-6.3.ebuild
new file mode 100644
index 000000000000..ddcbe701a0a1
--- /dev/null
+++ b/app-text/languagetool/languagetool-6.3.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit java-pkg-2 desktop xdg-utils
+
+MY_PN=LanguageTool
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="A proof-reading tool for many languages"
+HOMEPAGE="https://languagetool.org/"
+SRC_URI="https://languagetool.org/download/${MY_P}.zip"
+
+S=${WORKDIR}/${MY_P}
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+
+CP_DEPEND="
+ dev-java/commons-cli:1
+ dev-java/commons-collections:4
+ dev-java/commons-io:1
+ dev-java/commons-lang:3.6
+ dev-java/commons-logging:0
+ dev-java/hamcrest-core:1.3
+ dev-java/jcommander:0
+ dev-java/jna:4
+ dev-java/slf4j-api:0
+"
+
+RDEPEND="
+ >=virtual/jre-1.8
+ ${CP_DEPEND}"
+
+BDEPEND="app-arch/unzip"
+
+src_prepare() {
+ default
+ rm libs/commons-{cli,collections4,io,lang3,logging}.jar || die
+ rm libs/{hamcrest-core,jcommander,junit,slf4j-api}.jar || die
+
+ # Loads of bundled stuff :(
+ #java-pkg-2_src_prepare
+}
+
+src_compile() { :; }
+
+src_install() {
+ java-pkg_dojar *.jar libs/*.jar
+
+ local DIR=/usr/share/${PN}/lib/language-modules
+ java-pkg_addcp "${EPREFIX}${DIR}"
+ insinto ${DIR}
+ doins -r org META-INF
+
+ java-pkg_dolauncher ${PN} --main org.${PN}.commandline.Main
+ java-pkg_dolauncher ${PN}-gui --main org.${PN}.gui.Main
+ java-pkg_dolauncher ${PN}-server --main org.${PN}.server.HTTPServer --config /etc/languagetool.cfg
+ newicon -s scalable "${FILESDIR}"/logo.svg ${PN}.svg
+ domenu "${FILESDIR}"/${PN}.desktop
+ newinitd "${FILESDIR}/languagetool.initd" languagetool
+
+ dodoc CHANGES.md README.md
+
+ unset MY_DEPEND
+ java-pkg_gen-cp MY_DEPEND
+ java-pkg_register-dependency "${MY_DEPEND}"
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}
diff --git a/app-text/languagetool/metadata.xml b/app-text/languagetool/metadata.xml
index 2e4c5182444f..df66ee78e0a6 100644
--- a/app-text/languagetool/metadata.xml
+++ b/app-text/languagetool/metadata.xml
@@ -5,4 +5,7 @@
<email>vim@gentoo.org</email>
<name>Gentoo Vim Project</name>
</maintainer>
+ <upstream>
+ <remote-id type="github">languagetool-org/languagetool</remote-id>
+ </upstream>
</pkgmetadata>