summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/languagetool')
-rw-r--r--app-text/languagetool/Manifest1
-rw-r--r--app-text/languagetool/files/languagetool.desktop10
-rw-r--r--app-text/languagetool/files/logo.svg14
-rw-r--r--app-text/languagetool/languagetool-4.6.ebuild77
4 files changed, 102 insertions, 0 deletions
diff --git a/app-text/languagetool/Manifest b/app-text/languagetool/Manifest
index eb62346722b3..3a4f4ed94a7e 100644
--- a/app-text/languagetool/Manifest
+++ b/app-text/languagetool/Manifest
@@ -1 +1,2 @@
DIST LanguageTool-4.5.zip 189327638 BLAKE2B b0ba0a67ee3de4ef6e452e6c47d5c03800f4e93acdaee03da37dca1a626e808bef91a167a62bd1fd7e732c86010523193d197083179cd40aa22de67bbbe5c4d5 SHA512 66bf6c99425d66ca8bc03b609f07d85f3989dbe73d7a93e81b6dc21d751fe05dd439d4753b51282d359a08ecdd92a18d9deab53d7b3a144c605d4429b2949eef
+DIST LanguageTool-4.6.zip 170185393 BLAKE2B 323b313933f7fd5c4ea4ab32d2b31c85495daac02ba1aba678482d9077f4f86331caa5d98546735ab1cee213276488ca00ad3181499bd09cbb26a9fffff5642f SHA512 eff159a1387a914447e3dcf1061efe445d2d939cbfcfa0a19e427cda58cbe5ca90db074dd1bb7e52c939ada3924cbe2e3c5392ac57a93a07922114dc354e849d
diff --git a/app-text/languagetool/files/languagetool.desktop b/app-text/languagetool/files/languagetool.desktop
new file mode 100644
index 000000000000..fb65a04d7495
--- /dev/null
+++ b/app-text/languagetool/files/languagetool.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=LanguageTool
+Exec=languagetool-gui
+Type=Application
+Terminal=false
+GenericName=LanguageTool
+Comment=LanguageTool
+StartupNotify=false
+Icon=languagetool
+Categories=Office;
diff --git a/app-text/languagetool/files/logo.svg b/app-text/languagetool/files/logo.svg
new file mode 100644
index 000000000000..3bc5b679c1f7
--- /dev/null
+++ b/app-text/languagetool/files/logo.svg
@@ -0,0 +1,14 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="45" height="45" viewBox="0 0 45 45">
+ <g fill="none" fill-rule="evenodd">
+ <circle cx="22.5" cy="22.5" r="22.5" fill="#FFF"/>
+ <g fill="#005BEA" fill-rule="nonzero">
+ <path d="M10.32 33.613c.545-.363 1.088-1.105 1.79-1.616.467-.339 1.107-.56 1.488-.56.39 0 .657.07.906.211.226.128.415.286.88.723.672.635 1.02.924 1.583 1.242.794.45 1.677.683 2.695.683 1.017 0 1.9-.234 2.694-.683.564-.318.91-.607 1.584-1.242.464-.437.653-.595.88-.723.248-.14.515-.21.905-.21s.657.07.906.21c.226.128.415.286.88.723.672.635 1.02.924 1.583 1.242.793.45 1.677.683 2.694.683 1.018 0 1.901-.234 2.695-.683a7.666 7.666 0 0 0 1.68-1.242c.05-.048 2.025-2.47 2.053-2.496l-3.004-1.55c.113-.115-.054.05-.107.1-.384.508-1.43 1.706-1.978 1.972a2.45 2.45 0 0 1-1.053.223 3.14 3.14 0 0 1-.919-.178 3.19 3.19 0 0 1-1.152-.722c-.673-.635-1.02-.924-1.583-1.243-.794-.449-1.677-.682-2.695-.682-1.018 0-1.9.233-2.695.682-.563.32-.91.608-1.583 1.243-.464.437-.654.595-.88.722-.248.141-.516.212-.905.212-.39 0-.658-.07-.906-.212-.226-.127-.416-.285-.88-.722-.673-.635-1.02-.924-1.583-1.243-.794-.449-1.677-.682-2.695-.682-1.755 0-3.506.445-6.283 4.202l3.006 1.616z"/>
+ <path d="M15.383 32.371c.673.635 1.02.924 1.584 1.242.794.45 1.677.683 2.695.683 1.017 0 1.9-.234 2.694-.683.564-.318.91-.607 1.584-1.242.464-.437.653-.595.88-.723.248-.14.515-.21.905-.21s.657.07.906.21c.226.128.415.286.88.723.672.635 1.02.924 1.583 1.242.793.45 1.677.683 2.694.683 1.018 0 1.946-.235 2.737-.683 1.834-.922 3.658-3.712 3.685-3.738-1.543 1.411-2.975 2.12-4.295 2.125-1.958.008-3.448-1.843-3.912-2.28-.673-.635-1.02-.924-1.583-1.243-.794-.449-1.677-.682-2.695-.682-1.018 0-1.9.233-2.695.682-.563.32-.91.608-1.583 1.243-.464.437-.654.595-.88.722-.248.141-.516.212-.905.212-.39 0-.658-.07-.906-.212-.226-.127-.416-.285-.88-.722-.673-.635-1.02-.924-1.583-1.243-.794-.449-1.677-.682-2.695-.682-.74 0-3.317-.087-6.284 4.205 1.584-1.35 3.03-1.95 4.339-1.797 1.961.228 3.515 1.965 3.73 2.168z"/>
+ </g>
+ <g fill="#252525">
+ <path fill-rule="nonzero" d="M31.104 13.922v1.43h3.145v-1.666c0-1.037-1.075-2.004-3.225-2.9l.08 3.136zM23.066 13.922l-.24-3.136c-1.936.675-2.905 1.56-2.905 2.656v1.91h3.145v-1.43z"/>
+ <path fill-rule="nonzero" d="M28.744 13.922v11.102h-3.136V13.922h-2.55c-.953 0-1.648.12-2.083.36-.435.241-.789.598-1.062 1.07v-1.91c0-1.644 1.49-2.656 2.906-2.656h8.224c2.036 0 3.225 1.344 3.225 2.9 0 .37-.004.926-.012 1.667-.327-.473-.695-.83-1.104-1.07-.409-.241-1.085-.361-2.029-.361h-2.38z"/>
+ <path d="M13.612 22.316v-.003-8.48h-2.028v-3.145h1.792c2.941 0 3.372 2.203 3.372 2.985v8.224l-.001.004h5.863v3.145h-6.3a.15.15 0 0 1-.038-.005c-1.77-.064-2.656-.97-2.66-2.717a87.655 87.655 0 0 1-.006-.007l.006-.001z"/>
+ </g>
+ </g>
+</svg>
diff --git a/app-text/languagetool/languagetool-4.6.ebuild b/app-text/languagetool/languagetool-4.6.ebuild
new file mode 100644
index 000000000000..1e732211206c
--- /dev/null
+++ b/app-text/languagetool/languagetool-4.6.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2019 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/guava:20
+ dev-java/hamcrest-core:1.3
+ dev-java/jcommander:0
+ dev-java/jna:4
+ dev-java/slf4j-api:0
+ dev-java/slf4j-nop:0
+"
+
+RDEPEND=">=virtual/jre-1.8
+ ${CP_DEPEND}"
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ default
+ rm libs/commons-{cli,collections4,io,lang,logging}.jar || die
+ rm libs/{hamcrest-core,guava,jcommander,jna,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
+ newicon -s scalable "${FILESDIR}"/logo.svg ${PN}.svg
+ domenu "${FILESDIR}"/${PN}.desktop
+
+ 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
+}