/[gentoo-x86]/dev-java/commons-daemon/commons-daemon-1.0.7.ebuild
Gentoo

Contents of /dev-java/commons-daemon/commons-daemon-1.0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Mar 9 14:21:53 2012 UTC (2 years, 4 months ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
Marking commons-daemon-1.0.7 ppc64 for bug 399995

(Portage version: 2.1.10.11/cvs/Linux ppc64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/commons-daemon/commons-daemon-1.0.7.ebuild,v 1.5 2012/03/06 21:15:53 ranger Exp $
4
5 EAPI="4"
6 WANT_AUTOCONF=2.5
7 JAVA_PKG_IUSE="doc examples source"
8
9 inherit eutils autotools java-pkg-2 java-ant-2
10
11 DESCRIPTION="Tools to allow Java programs to run as UNIX daemons"
12 SRC_URI="mirror://apache/commons/daemon/source/${P}-src.tar.gz"
13 HOMEPAGE="http://commons.apache.org/daemon/"
14
15 LICENSE="Apache-2.0"
16 SLOT="0"
17 KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
18 IUSE="kernel_linux"
19
20 COMMON_DEP="
21 kernel_linux? ( sys-libs/libcap )"
22 DEPEND="${COMMON_DEP}
23 >=virtual/jdk-1.4"
24 RDEPEND="${COMMON_DEP}
25 >=virtual/jre-1.4"
26
27 S="${WORKDIR}/${P}-src"
28
29 java_prepare() {
30 cd "${S}/src/native/unix" || die
31 sed -i "s/powerpc/powerpc|powerpc64/g" support/apsupport.m4 || die
32 eautoconf
33 }
34
35 src_configure() {
36 java-ant-2_src_configure
37 cd "${S}/src/native/unix" || die
38 default
39 }
40
41 src_compile() {
42 java-pkg-2_src_compile
43 cd "${S}/src/native/unix" || die
44 default
45 }
46
47 src_install() {
48 dobin src/native/unix/jsvc
49 java-pkg_newjar dist/*.jar
50
51 dodoc README RELEASE-NOTES.txt *.html src/native/unix/CHANGES.txt
52 use doc && java-pkg_dohtml -r dist/docs/*
53 use examples && java-pkg_doexamples src/samples
54 use source && java-pkg_dosrc src/java/* src/native/unix/native
55 }

  ViewVC Help
Powered by ViewVC 1.1.20