commit:     e3dc6f2d5e6ee691c703d06487b39f829f1ef38e
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  7 09:07:15 2018 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Dec  7 09:07:51 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3dc6f2d

dev-java/tomcat-native: version bump

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/tomcat-native/Manifest                    |  1 +
 dev-java/tomcat-native/tomcat-native-1.2.19.ebuild | 61 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-java/tomcat-native/Manifest b/dev-java/tomcat-native/Manifest
index cb6dd149f14..003beb98e3b 100644
--- a/dev-java/tomcat-native/Manifest
+++ b/dev-java/tomcat-native/Manifest
@@ -1,3 +1,4 @@
 DIST tomcat-native-1.2.16-src.tar.gz 405109 BLAKE2B 
e153caeb82c4ac4d2a8c7c24373204edf6e691068e70c858618caf72faaee1f4d10c4529ba758e24422e8580e8b3e95d28cc942998568106ec60b8de7c196c51
 SHA512 
0345f85fbab406f25c25c8fc06bf55f3d166fa14bfcf542bddb5dc5db4c8c7bd0c5b71603d85261d71152ead3023b112144f2ffa5ede14ae8595013f79c802aa
 DIST tomcat-native-1.2.17-src.tar.gz 408967 BLAKE2B 
482b0416be01bcbe9ba55555715de37c6071502ed57f179115c3d351684621487b90e05dd488b1c2137e4813a785c1fe229241f191468bc88f7f0dd3a31562c0
 SHA512 
8fa946855fd14525ec0abe7b09975bbd34d6127352e90730a8afb77e16cd91715417e812a40017fee65939a9ce95faf39a9193222f441cda0ad2eb7f690e77b9
 DIST tomcat-native-1.2.18-src.tar.gz 411789 BLAKE2B 
16f1ecff3abfa6bf1f88c44af4a6ba58addac69bec1c257325c429fe6eec6a522fd2ae7932d68afa9bb442b0cf248731ce3e1a9db2b383f502093bf0ea5bfd23
 SHA512 
66481c1f36dc7ea909bf8d55075a232bf6dea3300b56d36415b13da4aefbee16cb52456f3d44b4a2b09b43cd8c7df628145a0623b9cdfa322bc2432e6c44827f
+DIST tomcat-native-1.2.19-src.tar.gz 418183 BLAKE2B 
cab8621bca4dc41e87ebf6418337da8a86d56a0717aacd62c6e4fb2d039e413cb29e8f169abbd353719ce083d302613d3e0f64cd54f1bc8e57f26a523a828025
 SHA512 
7d69acd5dd684eee9a85c08357b7288a9f083c15a12a9524ba6344f1b9dcdc6ccc512a37b64b9f15b0e697609833e6c68591a60976dcfecce124ec29eb532dba

diff --git a/dev-java/tomcat-native/tomcat-native-1.2.19.ebuild 
b/dev-java/tomcat-native/tomcat-native-1.2.19.ebuild
new file mode 100644
index 00000000000..bb3b879154d
--- /dev/null
+++ b/dev-java/tomcat-native/tomcat-native-1.2.19.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Allows Tomcat to use certain native resources for better 
performance"
+HOMEPAGE="https://tomcat.apache.org/";
+SRC_URI="mirror://apache/tomcat/tomcat-connectors/native/${PV}/source/${P}-src.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="static-libs test"
+
+RDEPEND="dev-libs/apr:1=
+       dev-libs/openssl:0=
+       >=virtual/jre-1.8"
+
+DEPEND=">=virtual/jdk-1.8
+       test? ( dev-java/ant-junit:0 )"
+
+S=${WORKDIR}/${P}-src
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+src_configure() {
+       local myeconfargs=(
+               --with-apr="${EPREFIX}"/usr/bin/apr-1-config
+               --with-ssl="${EPREFIX}"/usr
+       )
+
+       cd native || die
+       econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       eant jar
+
+       cd native || die
+       default
+}
+
+src_install() {
+       java-pkg_newjar "dist/${P}.jar" "${PN}.jar"
+
+       cd native || die
+       default
+
+       ! use static-libs && find "${D}" -name '*.la' -delete || die
+}
+
+src_test() {
+       java-pkg-2_src_test
+}
+
+pkg_postinst() {
+       elog "For more information, please visit"
+       elog "https://tomcat.apache.org/tomcat-9.0-doc/apr.html";
+}

Reply via email to