1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc examples source"
8 inherit autotools java-pkg-2 java-ant-2
10 DESCRIPTION="Tools to allow Java programs to run as UNIX daemons"
11 SRC_URI="mirror://apache/commons/daemon/source/${P}-src.tar.gz"
12 HOMEPAGE="https://commons.apache.org/daemon/"
16 KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
19 CDEPEND="kernel_linux? ( sys-libs/libcap )"
29 S="${WORKDIR}/${P}-src"
33 cd "${S}/src/native/unix" || die
34 sed -i "s/powerpc/powerpc|powerpc64/g" support/apsupport.m4 || die
39 java-ant-2_src_configure
40 cd "${S}/src/native/unix" || die
45 java-pkg-2_src_compile
46 cd "${S}/src/native/unix" || die
51 dobin src/native/unix/jsvc
52 java-pkg_newjar dist/*.jar
54 dodoc README RELEASE-NOTES.txt PROPOSAL.html
55 use doc && java-pkg_dohtml -r dist/docs/*
56 use examples && java-pkg_doexamples src/samples
57 use source && java-pkg_dosrc src/main/java/*