summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-09-12 20:19:29 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-09-12 20:19:29 +0000
commitd9a60c96e3a32cf6dcdb9d3378070c83d961acd0 (patch)
tree8d1e7252076fb43895041536e3fe8748b506501e /dev-java/jicmp
parentRemove setting S to default and add a comment to note that danarmak is retired. (diff)
downloadgentoo-2-d9a60c96e3a32cf6dcdb9d3378070c83d961acd0.tar.gz
gentoo-2-d9a60c96e3a32cf6dcdb9d3378070c83d961acd0.tar.bz2
gentoo-2-d9a60c96e3a32cf6dcdb9d3378070c83d961acd0.zip
Add doc and source use flags and cleanup ebuild.
(Portage version: 2.1.3.7)
Diffstat (limited to 'dev-java/jicmp')
-rw-r--r--dev-java/jicmp/ChangeLog5
-rw-r--r--dev-java/jicmp/jicmp-1.0.2.ebuild31
2 files changed, 19 insertions, 17 deletions
diff --git a/dev-java/jicmp/ChangeLog b/dev-java/jicmp/ChangeLog
index 17fbfa796ee6..690936ee183a 100644
--- a/dev-java/jicmp/ChangeLog
+++ b/dev-java/jicmp/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-java/jicmp
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jicmp/ChangeLog,v 1.2 2007/09/12 05:20:22 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jicmp/ChangeLog,v 1.3 2007/09/12 20:19:29 betelgeuse Exp $
+
+ 12 Sep 2007; Petteri Räty <betelgeuse@gentoo.org> jicmp-1.0.2.ebuild:
+ Add doc and source use flags and cleanup ebuild.
12 Sep 2007; William L. Thomson Jr. <wltjr@gentoo.org> jicmp-1.0.2.ebuild:
License correction, removed commented code.
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
}