blob: 1a058fb1b1b6d208d3a642871cf03f9249606241 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/tomcat-native/tomcat-native-1.1.8.ebuild,v 1.7 2007/04/12 20:09:27 opfer Exp $
inherit eutils java-pkg-2
DESCRIPTION="Native APR library for Tomcat"
SLOT="0"
SRC_URI="mirror://apache/tomcat/tomcat-connectors/native/${P}-src.tar.gz"
HOMEPAGE="http://tomcat.apache.org/"
KEYWORDS="amd64 x86"
LICENSE="Apache-2.0"
RDEPEND="=dev-libs/apr-1*
dev-libs/openssl"
DEPEND=">=virtual/jdk-1.5
${RDEPEND}"
S=${WORKDIR}/${P}-src
src_compile(){
cd ${S}/jni/native
econf --with-apr=/usr/bin/apr-1-config \
--with-ssl=/usr || die "Could not configure native sources"
emake || die "Could not build libtcnative-1.so"
}
src_install() {
cd ${S}/jni/native
make DESTDIR="${D}" install || die "Could not install libtcnative-1.so"
}
pkg_postinst() {
elog
elog " APR should be available with Tomcat, for more information"
elog " please see http://tomcat.apache.org/tomcat-6.0-doc/apr.html"
elog
elog " Please report any bugs to http://bugs.gentoo.org/"
elog
}
|