summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-02-27 21:41:21 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-02-27 21:41:21 +0000
commitc1781be7eb9bd9062322efe84638ee80e6c3390b (patch)
tree533852793e55654df1e850add432ee7cf8bb608b /dev-java/jclasslib/jclasslib-3.0-r1.ebuild
parentRemove CFLAG munging code from configure (diff)
downloadgentoo-2-c1781be7eb9bd9062322efe84638ee80e6c3390b.tar.gz
gentoo-2-c1781be7eb9bd9062322efe84638ee80e6c3390b.tar.bz2
gentoo-2-c1781be7eb9bd9062322efe84638ee80e6c3390b.zip
Migrate to generation 2 and add a launcher.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-java/jclasslib/jclasslib-3.0-r1.ebuild')
-rw-r--r--dev-java/jclasslib/jclasslib-3.0-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-java/jclasslib/jclasslib-3.0-r1.ebuild b/dev-java/jclasslib/jclasslib-3.0-r1.ebuild
new file mode 100644
index 000000000000..527a32887898
--- /dev/null
+++ b/dev-java/jclasslib/jclasslib-3.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jclasslib/jclasslib-3.0-r1.ebuild,v 1.1 2007/02/27 21:41:21 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PV=${PV/./_}
+DESCRIPTION="A bytecode viewer is a tool."
+HOMEPAGE="http://www.ej-technologies.com/products/jclasslib/overview.html"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_unix_${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+DEPEND=">=virtual/jdk-1.4"
+RDEPEND=">=virtual/jre-1.4"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -v bin/*.jar lib-compile/*.jar .install4j/*.jar || die
+ epatch "${FILESDIR}/${PN}-3.0-buildxml.patch"
+ epatch "${FILESDIR}/3.0-browser.patch"
+}
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+
+ #-pre relies on -java_args not being used
+ #if you need that, patch java-utils-2.eclass
+ java-pkg_dolauncher ${PN} \
+ -pre "${FILESDIR}/3.0-pre"
+
+ # has stuff other than javadoc too
+ use doc && java-pkg_dohtml -r doc/*
+ use source && java-pkg_dosrc src/*
+}
+
+pkg_postinst() {
+ elog "jclasslib by default uses firefox as the browser."
+ elog "Use the BROWSER environment variable to use something else."
+}