Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/languagetool/
Date: Sun, 27 Nov 2016 23:10:11
Message-Id: 1480288191.9c6fba50bf7e0629c343cece1faf1fb5ae8c2697.chewi@gentoo
1 commit: 9c6fba50bf7e0629c343cece1faf1fb5ae8c2697
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 27 23:07:52 2016 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 27 23:09:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c6fba50
7
8 app-text/languagetool: Bump guava SLOT, use Gentoo Java scripts
9
10 guava:20 is needed so that Java 7 can be dropped from Gentoo.
11
12 Using our Java scripts makes the ebuild cleaner, avoids symlinks, and
13 ensures that the correct JVM is chosen at runtime.
14
15 There are still many external libraries being bundled and we don't
16 have the time to package them all right now but I have bumped jackson
17 and friends to a newer version than is bundled here so that can be
18 used and I've also introduced commons-collections:4.
19
20 I noticed that jna:0 was used before, which is version 3, but it's
21 actually version 4 that's bundled so I've amended that dependency.
22
23 This was given the +1 by Radhermit.
24
25 Package-Manager: portage-2.3.2
26
27 app-text/languagetool/languagetool-3.5-r1.ebuild | 68 ++++++++++++++++++++++++
28 1 file changed, 68 insertions(+)
29
30 diff --git a/app-text/languagetool/languagetool-3.5-r1.ebuild b/app-text/languagetool/languagetool-3.5-r1.ebuild
31 new file mode 100644
32 index 00000000..cd931e1
33 --- /dev/null
34 +++ b/app-text/languagetool/languagetool-3.5-r1.ebuild
35 @@ -0,0 +1,68 @@
36 +# Copyright 1999-2016 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +# $Id$
39 +
40 +EAPI=6
41 +inherit java-pkg-2
42 +
43 +MY_PN=LanguageTool
44 +MY_P=${MY_PN}-${PV}
45 +
46 +DESCRIPTION="A proof-reading tool for many languages"
47 +HOMEPAGE="http://www.languagetool.org/"
48 +SRC_URI="http://www.languagetool.org/download/${MY_P}.zip"
49 +
50 +LICENSE="LGPL-2.1"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +
54 +CP_DEPEND="
55 + dev-java/commons-cli:1
56 + dev-java/commons-collections:4
57 + dev-java/commons-io:1
58 + dev-java/commons-lang:2.1
59 + dev-java/commons-logging:0
60 + dev-java/guava:20
61 + dev-java/hamcrest-core:1.3
62 + dev-java/jackson:2
63 + dev-java/jackson-databind:2
64 + dev-java/jcommander:0
65 + dev-java/jna:4
66 + dev-java/slf4j-api:0
67 + dev-java/slf4j-nop:0
68 +"
69 +
70 +RDEPEND=">=virtual/jre-1.8
71 + ${CP_DEPEND}"
72 +
73 +DEPEND="app-arch/unzip"
74 +
75 +S=${WORKDIR}/${MY_P}
76 +
77 +src_prepare() {
78 + default
79 + rm -v libs/{commons,hamcrest,guava,jackson,jcommander,jna,junit,slf4j}*.jar || die
80 +
81 + # Loads of bundled stuff :(
82 + #java-pkg-2_src_prepare
83 +}
84 +
85 +src_compile() { :; }
86 +
87 +src_install() {
88 + java-pkg_dojar *.jar libs/*.jar
89 +
90 + local DIR=/usr/share/${PN}/lib/language-modules
91 + java-pkg_addcp "${EPREFIX}${DIR}"
92 + insinto ${DIR}
93 + doins -r org META-INF
94 +
95 + java-pkg_dolauncher ${PN} --main org.${PN}.commandline.Main
96 + java-pkg_dolauncher ${PN}-gui --main org.${PN}.gui.Main
97 +
98 + dodoc CHANGES.md README.md
99 +
100 + unset MY_DEPEND
101 + java-pkg_gen-cp MY_DEPEND
102 + java-pkg_register-dependency "${MY_DEPEND}"
103 +}