summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2021-10-10 00:09:57 +0200
committerPatrice Clement <monsieurp@gentoo.org>2021-10-10 00:44:50 +0200
commit2852bd62e4937fc4dc0c7b0624ebf0ed9a2fcf9c (patch)
tree81310bc154f94140726443e6f3cb96862014f55a /app-text/languagetool
parentsys-kernel/vanilla-sources: Linux updates (diff)
downloadgentoo-2852bd62e4937fc4dc0c7b0624ebf0ed9a2fcf9c.tar.gz
gentoo-2852bd62e4937fc4dc0c7b0624ebf0ed9a2fcf9c.tar.bz2
gentoo-2852bd62e4937fc4dc0c7b0624ebf0ed9a2fcf9c.zip
app-text/languagetool: version bump.
Closes: https://bugs.gentoo.org/803332 Closes: https://github.com/gentoo/gentoo/pull/22532 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'app-text/languagetool')
-rw-r--r--app-text/languagetool/Manifest1
-rw-r--r--app-text/languagetool/files/languagetool.initd19
-rw-r--r--app-text/languagetool/languagetool-5.4.ebuild77
3 files changed, 97 insertions, 0 deletions
diff --git a/app-text/languagetool/Manifest b/app-text/languagetool/Manifest
index 3a4f4ed94a7e..af3897fdf1cd 100644
--- a/app-text/languagetool/Manifest
+++ b/app-text/languagetool/Manifest
@@ -1,2 +1,3 @@
DIST LanguageTool-4.5.zip 189327638 BLAKE2B b0ba0a67ee3de4ef6e452e6c47d5c03800f4e93acdaee03da37dca1a626e808bef91a167a62bd1fd7e732c86010523193d197083179cd40aa22de67bbbe5c4d5 SHA512 66bf6c99425d66ca8bc03b609f07d85f3989dbe73d7a93e81b6dc21d751fe05dd439d4753b51282d359a08ecdd92a18d9deab53d7b3a144c605d4429b2949eef
DIST LanguageTool-4.6.zip 170185393 BLAKE2B 323b313933f7fd5c4ea4ab32d2b31c85495daac02ba1aba678482d9077f4f86331caa5d98546735ab1cee213276488ca00ad3181499bd09cbb26a9fffff5642f SHA512 eff159a1387a914447e3dcf1061efe445d2d939cbfcfa0a19e427cda58cbe5ca90db074dd1bb7e52c939ada3924cbe2e3c5392ac57a93a07922114dc354e849d
+DIST LanguageTool-5.4.zip 202761711 BLAKE2B b23c2944bf40dbef70d43391761849fb83b55538ac1cf0312c82079caef0a91f177f67c0e5818ea558c485d0bc2f4425f6cd32064095aede755a3b1233cf62d7 SHA512 08048f5bb8c5f7050ca2081a9f00405b0b397c37511a8297675f031bbb59e19863195e3b624dabb0964d436ad1570112e8c85225905ae22f2bde2a0200fcd883
diff --git a/app-text/languagetool/files/languagetool.initd b/app-text/languagetool/files/languagetool.initd
new file mode 100644
index 000000000000..30a72a91a932
--- /dev/null
+++ b/app-text/languagetool/files/languagetool.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after modules
+}
+
+start() {
+ ebegin "Starting languagetool [server]"
+ start-stop-daemon --start --background --exec /bin/bash /usr/bin/languagetool-server \
+ --config "/etc/languagetool.cfg" --allow-origin "*" --port 8081
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping languagetool [server]"
+ start-stop-daemon --stop --exec /bin/bash /usr/bin/languagetool-server
+ eend $?
+}
diff --git a/app-text/languagetool/languagetool-5.4.ebuild b/app-text/languagetool/languagetool-5.4.ebuild
new file mode 100644
index 000000000000..44ac617c4a2d
--- /dev/null
+++ b/app-text/languagetool/languagetool-5.4.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+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://www.languagetool.org/"
+SRC_URI="https://www.languagetool.org/download/${MY_P}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+CP_DEPEND="
+ dev-java/commons-cli:1
+ dev-java/commons-collections:4
+ dev-java/commons-io:1
+ dev-java/commons-lang:2.1
+ 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"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+ rm libs/commons-{cli,collections4,io,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"
+
+ 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
+}