1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils java-pkg-2 java-ant-2
9 DESCRIPTION="Native APR library for Tomcat"
12 SRC_URI="mirror://apache/tomcat/tomcat-connectors/native/${PV}/source/${P}-src.tar.gz"
13 HOMEPAGE="http://tomcat.apache.org/"
14 KEYWORDS="~amd64 ~x86"
18 RDEPEND="dev-libs/apr:1
22 DEPEND=">=virtual/jdk-1.7
23 test? ( dev-java/ant-junit:0 )"
29 econf --with-apr=/usr/bin/apr-1-config \
30 --with-ssl=/usr || die "Could not configure native sources"
41 java-pkg_newjar "dist/${P}.jar" "${PN}.jar"
44 emake DESTDIR="${D}" install || die "Could not install libtcnative-1.so"
53 elog " APR should be available with Tomcat, for more information"
54 elog " please see http://tomcat.apache.org/tomcat-6.0-doc/apr.html"
56 elog " Please report any bugs to https://bugs.gentoo.org/"