# Copyright 1999-2005 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.ebuild,v 1.14 2005/07/19 18:07:12 axxo Exp $ inherit java-pkg DESCRIPTION="Tools to allow java programs to run as unix daemons" SRC_URI="ftp://ftp.ibiblio.org/pub/mirrors/apache/jakarta/commons/daemon/source/daemon-1.0-Alpha.tar.gz" HOMEPAGE="http://jakarta.apache.org/commons/daemon/" LICENSE="Apache-1.1" SLOT="0" DEPEND=">=virtual/jdk-1.4 >=dev-java/ant-1.4 virtual/libc jikes? ( dev-java/jikes )" RDEPEND=">=virtual/jre-1.4" KEYWORDS="amd64 ~ppc ppc64 ~sparc x86" IUSE="jikes doc" S=${WORKDIR}/daemon-${PV}-Alpha src_compile() { cd src/native/unix sed -i.orig -r -e "s/sparc/sparc|x86_64|powerpc64/g" support/apsupport.m4 WANT_AUTOCONF="2.5" autoconf econf || die emake || die cd ${S} local antflags="jar" use jikes && antflags="${antflags} -Dbuild.compiler=jikes" use doc && antflags="${antflags} javadoc" ant ${antflags} || die "compilation problem" } src_install() { dobin src/native/unix/jsvc java-pkg_dojar dist/${PN}.jar || die "Unable to install" dodoc README RELEASE-NOTES.txt *.html cp -R src/samples ${D}/usr/share/doc/${P}/ use doc && java-pkg_dohtml -r dist/docs/* }