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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Oct 14 16:55:17 2010 UTC (3 years, 8 months ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
stable ppc, bug 316297
(Portage version: 2.1.8.3/cvs/Linux ppc64)

1 # Copyright 1999-2010 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.2.ebuild,v 1.6 2010/05/22 19:38:27 ken69267 Exp $
4
5 EAPI="2"
6 WANT_AUTOCONF=2.5
7 JAVA_PKG_IUSE="doc examples source"
8
9 inherit java-pkg-2 java-ant-2 eutils autotools
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=""
19
20 DEPEND=">=virtual/jdk-1.4"
21 RDEPEND=">=virtual/jre-1.4"
22
23 S=${WORKDIR}/${P}-src
24
25 java_prepare() {
26 # https://issues.apache.org/jira/browse/DAEMON-154
27 find . -name "*.o" -delete -print || die
28
29 cd "${S}/src/native/unix"
30 sed -e "s/powerpc/powerpc|powerpc64/g" -i support/apsupport.m4
31 eautoconf
32 }
33
34 src_configure() {
35 java-ant-2_src_configure
36 cd "${S}/src/native/unix"
37 econf || die "configure failed"
38 }
39
40 src_compile() {
41 # compile native stuff
42 cd "${S}/src/native/unix"
43 emake || die "make failed"
44
45 # compile java stuff
46 cd "${S}"
47 java-pkg-2_src_compile
48 }
49
50 src_install() {
51 dobin src/native/unix/jsvc || die
52 java-pkg_newjar dist/*.jar
53
54 dodoc README RELEASE-NOTES.txt *.html || die
55 use doc && java-pkg_dohtml -r dist/docs/*
56 use examples && java-pkg_doexamples src/samples
57 use source && java-pkg_dosrc src/java/* src/native/unix/native
58 }

  ViewVC Help
Powered by ViewVC 1.1.20