1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit java-pkg-2 java-ant-2
8 DESCRIPTION="Allows Tomcat to use certain native resources for better performance"
9 HOMEPAGE="https://tomcat.apache.org/"
10 SRC_URI="mirror://apache/tomcat/tomcat-connectors/native/${PV}/source/${P}-src.tar.gz"
15 IUSE="static-libs test"
16 RESTRICT="!test? ( test )"
18 RDEPEND="dev-libs/apr:1=
22 DEPEND=">=virtual/jdk-1.8
23 test? ( dev-java/ant-junit:0 )"
27 JAVA_ANT_REWRITE_CLASSPATH="yes"
31 --with-apr="${EPREFIX}"/usr/bin/apr-1-config
32 --with-ssl="${EPREFIX}"/usr
36 econf "${myeconfargs[@]}"
47 java-pkg_newjar "dist/${P}.jar" "${PN}.jar"
52 ! use static-libs && find "${D}" -name '*.la' -delete || die
60 elog "For more information, please visit"
61 elog "https://tomcat.apache.org/tomcat-9.0-doc/apr.html"