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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Mar 16 18:31:51 2011 UTC (3 years, 5 months ago) by xarthisius
Branch: MAIN
Changes since 1.3: +3 -3 lines
ppc/ppc64 stable wrt #348595

(Portage version: 2.2.0_alpha27/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.4.ebuild,v 1.3 2010/12/18 21:02:32 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 rm src/samples/build/classes/*.class || die
30
31 cd "${S}/src/native/unix"
32 sed -e "s/powerpc/powerpc|powerpc64/g" -i support/apsupport.m4
33 eautoconf
34 }
35
36 src_configure() {
37 java-ant-2_src_configure
38 cd "${S}/src/native/unix"
39 econf || die "configure failed"
40 }
41
42 src_compile() {
43 # compile native stuff
44 cd "${S}/src/native/unix"
45 emake || die "make failed"
46
47 # compile java stuff
48 cd "${S}"
49 java-pkg-2_src_compile
50 }
51
52 src_install() {
53 dobin src/native/unix/jsvc || die
54 java-pkg_newjar dist/*.jar
55
56 dodoc README RELEASE-NOTES.txt *.html || die
57 use doc && java-pkg_dohtml -r dist/docs/*
58 use examples && java-pkg_doexamples src/samples
59 use source && java-pkg_dosrc src/java/* src/native/unix/native
60 }

  ViewVC Help
Powered by ViewVC 1.1.20