1 |
commit: d2e1589874d2c6c75cb969dcf47c06d074d9f868 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Wed Apr 28 15:49:02 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 17:42:27 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2e15898 |
7 |
|
8 |
dev-java/jta: min java 1.8 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/20578 |
13 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
14 |
|
15 |
dev-java/jta/jta-1.1-r1.ebuild | 49 ++++++++++++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 49 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/jta/jta-1.1-r1.ebuild b/dev-java/jta/jta-1.1-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..4d3770f9bca |
21 |
--- /dev/null |
22 |
+++ b/dev-java/jta/jta-1.1-r1.ebuild |
23 |
@@ -0,0 +1,49 @@ |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+JTA_ZIP="jta-1_1-classes.zip" |
30 |
+ |
31 |
+inherit java-pkg-2 |
32 |
+ |
33 |
+DESCRIPTION="The Java Transaction API" |
34 |
+HOMEPAGE="https://www.oracle.com/java/technologies/jta.html" |
35 |
+SRC_URI="${JTA_ZIP}" |
36 |
+ |
37 |
+LICENSE="sun-bcla-jta" |
38 |
+SLOT=0 |
39 |
+KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux" |
40 |
+ |
41 |
+DEPEND=">=virtual/jdk-1.8:*" |
42 |
+RDEPEND=">=virtual/jre-1.8:*" |
43 |
+BDEPEND="app-arch/unzip" |
44 |
+ |
45 |
+RESTRICT="fetch" |
46 |
+ |
47 |
+S="${WORKDIR}" |
48 |
+ |
49 |
+pkg_nofetch() { |
50 |
+ einfo |
51 |
+ einfo " Due to license restrictions, we cannot fetch the" |
52 |
+ einfo " distributables automagically." |
53 |
+ einfo |
54 |
+ einfo " 1. Visit ${HOMEPAGE}" |
55 |
+ einfo " 2. Select 'Java Transaction API Specification 1.1 Maintenance Release'" |
56 |
+ einfo " 3. Download ${JTA_ZIP}" |
57 |
+ einfo " 4. Move file to your DISTDIR directory" |
58 |
+ einfo " 5. Restart the emerge process" |
59 |
+ einfo |
60 |
+} |
61 |
+ |
62 |
+src_unpack() { |
63 |
+ unzip -qq "${DISTDIR}"/${JTA_ZIP} || die "failed to unpack" |
64 |
+} |
65 |
+ |
66 |
+src_compile() { |
67 |
+ jar cvf jta.jar javax/ || die "failed to create jar" |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ java-pkg_dojar jta.jar |
72 |
+} |