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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 30 13:02:39 2012 UTC (2 years, 10 months ago) by sera
Branch: MAIN
Changes since 1.1: +2 -2 lines
Fix installation of source files. Thanks to Krzysztof Magusiak <chrmag@poczta.onet.pl>. #401271

(Portage version: 2.1.10.44/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20