Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/tomcat-native/
Date: Fri, 24 Sep 2021 07:17:13
Message-Id: 1632467823.705a777a895a3d4eb4175940f91e4816e079893e.fordfrog@gentoo
1 commit: 705a777a895a3d4eb4175940f91e4816e079893e
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 24 07:17:03 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 24 07:17:03 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=705a777a
7
8 dev-java/tomcat-native: bump to 1.2.31
9
10 Package-Manager: Portage-3.0.23, Repoman-3.0.3
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 dev-java/tomcat-native/Manifest | 1 +
14 dev-java/tomcat-native/tomcat-native-1.2.31.ebuild | 62 ++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/dev-java/tomcat-native/Manifest b/dev-java/tomcat-native/Manifest
18 index 13cd29d9fa1..310f7e6520c 100644
19 --- a/dev-java/tomcat-native/Manifest
20 +++ b/dev-java/tomcat-native/Manifest
21 @@ -1 +1,2 @@
22 DIST tomcat-native-1.2.30-src.tar.gz 425741 BLAKE2B d39c7762db0f8c6b3422d1a4811d65793e2315e0d34fae8a37f250ff41a2c11a0c89ccaf8a361cda7cb16434dcd9678289ecec60cc5322a5fae2d6963c76f36c SHA512 51a8c55214de166cace193c3330abe77cabea56c2d05efc8c3408bc06369c328899376c94c572725ebe2887f2faf99fea05d1819fa84c712d57fd309d0476953
23 +DIST tomcat-native-1.2.31-src.tar.gz 428057 BLAKE2B 9e76c2c4c6e3721c36331f21026c00dda40e811ed34b6deb024f3511159c96ec624131aa3d9e0cc26fb97286bd9f0133d03d742fa5616d05ed18ecacb05d3d51 SHA512 2aaa93f0acf3eb780d39faeda3ece3cf053d3b6e2918462f7183070e8ab32232e035e9062f7c07ceb621006d727d3596d9b4b948f4432b4f625327b72fdb0e49
24
25 diff --git a/dev-java/tomcat-native/tomcat-native-1.2.31.ebuild b/dev-java/tomcat-native/tomcat-native-1.2.31.ebuild
26 new file mode 100644
27 index 00000000000..76a4520b2d1
28 --- /dev/null
29 +++ b/dev-java/tomcat-native/tomcat-native-1.2.31.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit java-pkg-2 java-ant-2
37 +
38 +DESCRIPTION="Allows Tomcat to use certain native resources for better performance"
39 +HOMEPAGE="https://tomcat.apache.org/"
40 +SRC_URI="mirror://apache/tomcat/tomcat-connectors/native/${PV}/source/${P}-src.tar.gz"
41 +
42 +KEYWORDS="~amd64 ~x86"
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +IUSE="static-libs test"
46 +RESTRICT="!test? ( test )"
47 +
48 +RDEPEND="dev-libs/apr:1=
49 + dev-libs/openssl:0=
50 + >=virtual/jre-1.8:*"
51 +
52 +DEPEND=">=virtual/jdk-1.8:*
53 + test? ( dev-java/ant-junit:0 )"
54 +
55 +S=${WORKDIR}/${P}-src
56 +
57 +JAVA_ANT_REWRITE_CLASSPATH="yes"
58 +
59 +src_configure() {
60 + local myeconfargs=(
61 + --with-apr="${EPREFIX}"/usr/bin/apr-1-config
62 + --with-ssl="${EPREFIX}"/usr
63 + )
64 +
65 + cd native || die
66 + econf "${myeconfargs[@]}"
67 +}
68 +
69 +src_compile() {
70 + eant jar
71 +
72 + cd native || die
73 + default
74 +}
75 +
76 +src_install() {
77 + java-pkg_newjar "dist/${P}.jar" "${PN}.jar"
78 +
79 + cd native || die
80 + default
81 +
82 + ! use static-libs && find "${D}" -name '*.la' -delete || die
83 +}
84 +
85 +src_test() {
86 + java-pkg-2_src_test
87 +}
88 +
89 +pkg_postinst() {
90 + elog "For more information, please visit"
91 + elog "https://tomcat.apache.org/tomcat-9.0-doc/apr.html"
92 +}