summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2015-10-13 10:46:04 +0000
committerPatrice Clement <monsieurp@gentoo.org>2015-10-13 10:46:04 +0000
commitacd002690448866c6cf8e90c361f114284450217 (patch)
tree1e427f153850e6d74abd2d5be8be5de3ccf360ef /dev-java
parentMerge remote-tracking branch 'remotes/github/pr/189'. (diff)
parentdev-java/tomcat-native: Clear QA warnings. (diff)
downloadgentoo-acd002690448866c6cf8e90c361f114284450217.tar.gz
gentoo-acd002690448866c6cf8e90c361f114284450217.tar.bz2
gentoo-acd002690448866c6cf8e90c361f114284450217.zip
Merge remote-tracking branch 'remotes/github/pr/193'.
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/tomcat-native/tomcat-native-1.1.33-r1.ebuild (renamed from dev-java/tomcat-native/tomcat-native-1.1.33.ebuild)25
1 files changed, 18 insertions, 7 deletions
diff --git a/dev-java/tomcat-native/tomcat-native-1.1.33.ebuild b/dev-java/tomcat-native/tomcat-native-1.1.33-r1.ebuild
index 8d4011ac8535..2c849c689297 100644
--- a/dev-java/tomcat-native/tomcat-native-1.1.33.ebuild
+++ b/dev-java/tomcat-native/tomcat-native-1.1.33-r1.ebuild
@@ -4,7 +4,7 @@
EAPI="5"
-inherit base eutils java-pkg-2
+inherit base eutils java-pkg-2 java-ant-2
DESCRIPTION="Native APR library for Tomcat"
@@ -13,30 +13,41 @@ SRC_URI="mirror://apache/tomcat/tomcat-connectors/native/${PV}/source/${P}-src.t
HOMEPAGE="http://tomcat.apache.org/"
KEYWORDS="~amd64 ~x86"
LICENSE="Apache-2.0"
-IUSE=""
+IUSE="test"
-RDEPEND="=dev-libs/apr-1*
+RDEPEND="dev-libs/apr:1
dev-libs/openssl:=
- >=virtual/jre-1.5:*"
+ >=virtual/jre-1.7"
-DEPEND=">=virtual/jdk-1.5:*
- ${RDEPEND}"
+DEPEND=">=virtual/jdk-1.7
+ test? ( dev-java/ant-junit:0 )"
-S=${WORKDIR}/${P}-src/jni/native
+S=${WORKDIR}/${P}-src/jni
src_configure(){
+ cd native || die
econf --with-apr=/usr/bin/apr-1-config \
--with-ssl=/usr || die "Could not configure native sources"
}
src_compile() {
+ eant jar -f build.xml
+
+ cd native || die
base_src_compile
}
src_install() {
+ java-pkg_newjar "dist/${P}-dev.jar" "${PN}.jar"
+
+ cd native
emake DESTDIR="${D}" install || die "Could not install libtcnative-1.so"
}
+src_test() {
+ java-pkg-2_src_test
+}
+
pkg_postinst() {
elog
elog " APR should be available with Tomcat, for more information"