diff options
Diffstat (limited to 'dev-java/jicmp/jicmp-1.0.2.ebuild')
-rw-r--r-- | dev-java/jicmp/jicmp-1.0.2.ebuild | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/dev-java/jicmp/jicmp-1.0.2.ebuild b/dev-java/jicmp/jicmp-1.0.2.ebuild index c8e3804b905a..a6527749f1f8 100644 --- a/dev-java/jicmp/jicmp-1.0.2.ebuild +++ b/dev-java/jicmp/jicmp-1.0.2.ebuild @@ -1,34 +1,33 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jicmp/jicmp-1.0.2.ebuild,v 1.2 2007/09/12 05:20:22 wltjr Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jicmp/jicmp-1.0.2.ebuild,v 1.3 2007/09/12 20:19:29 betelgeuse Exp $ -inherit eutils java-pkg-2 +JAVA_PKG_IUSE="doc source" -DESCRIPTION="Java Interface to Tobias Oetiker's RRDtool" +inherit eutils base java-pkg-2 -SLOT="0" +DESCRIPTION="Java Interface to Tobias Oetiker's RRDtool" SRC_URI="mirror://sourceforge/opennms/${P}.tar.gz" HOMEPAGE="http://www.opennms.org/" KEYWORDS="~amd64 ~x86" LICENSE="GPL-2" -RDEPEND=">=virtual/jre-1.5" +SLOT="0" +RDEPEND=">=virtual/jre-1.5" DEPEND=">=virtual/jdk-1.5" -S="${WORKDIR}/${P}" - -src_compile(){ - cd "${S}" - econf || die "Could not configure ${P}" - emake || die "Could not build ${P}" +src_compile() { + base_src_compile + if use doc; then + javadoc -d javadoc $(find org -name "*.java") || die "Javadoc failed" + fi } src_install() { - cd "${S}" - java-pkg_newjar "${S}/${PN}.jar" - make DESTDIR="${D}" install || die "Could not install lib${PN}.so" -# ugly but effective - rm -fR "${D}/usr/share/java" || die "Could not remove extra jar" + java-pkg_newjar *.jar + java-pkg_doso .libs/*.so + use source && java-pkg_dosrc org + use doc && java-pkg_dojavadoc javadoc } |