You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
13 years ago
|
# Copyright 1999-2012 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-daemon/commons-daemon-1.0.8.ebuild,v 1.2 2012/01/30 13:02:39 sera Exp $
|
||
|
|
||
|
EAPI="4"
|
||
|
|
||
|
WANT_AUTOCONF=2.5
|
||
|
JAVA_PKG_IUSE="doc examples source"
|
||
|
|
||
|
inherit eutils autotools java-pkg-2 java-ant-2
|
||
|
|
||
|
DESCRIPTION="Tools to allow Java programs to run as UNIX daemons"
|
||
|
SRC_URI="mirror://apache/commons/daemon/source/${P}-src.tar.gz"
|
||
|
HOMEPAGE="http://commons.apache.org/daemon/"
|
||
|
|
||
|
LICENSE="Apache-2.0"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||
|
IUSE="kernel_linux"
|
||
|
|
||
|
COMMON_DEP="
|
||
|
kernel_linux? ( sys-libs/libcap )"
|
||
|
DEPEND="${COMMON_DEP}
|
||
|
>=virtual/jdk-1.4"
|
||
|
RDEPEND="${COMMON_DEP}
|
||
|
>=virtual/jre-1.4"
|
||
|
|
||
|
S="${WORKDIR}/${P}-src"
|
||
|
|
||
|
java_prepare() {
|
||
|
cd "${S}/src/native/unix" || die
|
||
|
sed -i "s/powerpc/powerpc|powerpc64/g" support/apsupport.m4 || die
|
||
|
eautoconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
java-ant-2_src_configure
|
||
|
cd "${S}/src/native/unix" || die
|
||
|
default
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
java-pkg-2_src_compile
|
||
|
cd "${S}/src/native/unix" || die
|
||
|
default
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin src/native/unix/jsvc
|
||
|
java-pkg_newjar dist/*.jar
|
||
|
|
||
|
dodoc README RELEASE-NOTES.txt *.html src/native/unix/CHANGES.txt
|
||
|
use doc && java-pkg_dohtml -r dist/docs/*
|
||
|
use examples && java-pkg_doexamples src/samples
|
||
|
use source && java-pkg_dosrc src/main/java/*
|
||
|
}
|