diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-16 07:45:02 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-16 07:45:02 +0100 |
commit | 22b96ae0ceb12f57b30fc2577770f565506bbac8 (patch) | |
tree | f6a91d04a715ed25ba560d0122becae9dffb96af /dev-java/tomcat-native/tomcat-native-1.2.35.ebuild | |
parent | d8616435f08981d5bc3df9f348190309a7bdbbc0 (diff) |
gentoo auto-resync : 16:07:2022 - 07:45:02
Diffstat (limited to 'dev-java/tomcat-native/tomcat-native-1.2.35.ebuild')
-rw-r--r-- | dev-java/tomcat-native/tomcat-native-1.2.35.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-java/tomcat-native/tomcat-native-1.2.35.ebuild b/dev-java/tomcat-native/tomcat-native-1.2.35.ebuild new file mode 100644 index 000000000000..c55972724571 --- /dev/null +++ b/dev-java/tomcat-native/tomcat-native-1.2.35.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Allows Tomcat to use certain native resources for better performance" +HOMEPAGE="https://tomcat.apache.org/native-doc/" +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" +RESTRICT="!test? ( 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" +} |