From: Petteri Räty Date: Tue, 27 Feb 2007 21:41:21 +0000 (+0000) Subject: Migrate to generation 2 and add a launcher. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8d8918b32c342a7b8ab210d43d233a14b5de2ab;p=gentoo.git Migrate to generation 2 and add a launcher. Package-Manager: portage-2.1.2-r9 --- diff --git a/dev-java/jclasslib/ChangeLog b/dev-java/jclasslib/ChangeLog index 147c7b08dae8..c494e1b085cd 100644 --- a/dev-java/jclasslib/ChangeLog +++ b/dev-java/jclasslib/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/jclasslib # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jclasslib/ChangeLog,v 1.6 2007/02/09 01:58:57 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jclasslib/ChangeLog,v 1.7 2007/02/27 21:41:21 betelgeuse Exp $ + +*jclasslib-3.0-r1 (27 Feb 2007) + + 27 Feb 2007; Petteri Räty + +files/3.0-browser.patch, +files/3.0-pre, +jclasslib-3.0-r1.ebuild: + Migrate to generation 2 and add a launcher. 09 Feb 2007; Diego Pettenò ChangeLog: Regenerate digest in Manifest2 format. diff --git a/dev-java/jclasslib/Manifest b/dev-java/jclasslib/Manifest index 13b673435670..2432a9d0a55e 100644 --- a/dev-java/jclasslib/Manifest +++ b/dev-java/jclasslib/Manifest @@ -1,6 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX 3.0-browser.patch 750 RMD160 eb05ec8339e324b4077326f8a4122f88c02e497e SHA1 0a5aa328cdd946d7a6a69e5176e3b1808a51f82f SHA256 0bf260f8abd58f0972019dcb0b120f5260997db05257feb597b30805e3e39bc0 +MD5 ecbd7df580b7b22ed02cd19ef7edc7c2 files/3.0-browser.patch 750 +RMD160 eb05ec8339e324b4077326f8a4122f88c02e497e files/3.0-browser.patch 750 +SHA256 0bf260f8abd58f0972019dcb0b120f5260997db05257feb597b30805e3e39bc0 files/3.0-browser.patch 750 +AUX 3.0-pre 81 RMD160 563b2a3fc444edd352030854ec2f678bed3fcbe0 SHA1 f878ba1e3e1e646cbb8ef5a17164e9fc893e2bb2 SHA256 aca92f4a67fe119dd38682e3c336ea461bf57f47de15fbf0636efeff8d77f16c +MD5 a75a9b913347a3f4c45b2f33479c5d7f files/3.0-pre 81 +RMD160 563b2a3fc444edd352030854ec2f678bed3fcbe0 files/3.0-pre 81 +SHA256 aca92f4a67fe119dd38682e3c336ea461bf57f47de15fbf0636efeff8d77f16c files/3.0-pre 81 AUX build.xml.patch 857 RMD160 b27b219b359a359cea63952408ed1fedf6013ed4 SHA1 56397a162d52cb14bb85075cbe27a3788f434359 SHA256 7738d8452bf8b216ec36546bb770c09a19657ceba30a38c4e015a6a623c5d609 MD5 be1d000b16835290b454e72c2ba1eacf files/build.xml.patch 857 RMD160 b27b219b359a359cea63952408ed1fedf6013ed4 files/build.xml.patch 857 @@ -15,14 +23,18 @@ EBUILD jclasslib-2.0.ebuild 1250 RMD160 51240691c92d6bc70a8a19fe8f8bc7c4068b194c MD5 8aff2aadc56abe45f1e27dbb1a938f25 jclasslib-2.0.ebuild 1250 RMD160 51240691c92d6bc70a8a19fe8f8bc7c4068b194c jclasslib-2.0.ebuild 1250 SHA256 577d6586c606ed5567a6d018d59887cd59c8a2faf1c83753b9ba3409c0365e50 jclasslib-2.0.ebuild 1250 +EBUILD jclasslib-3.0-r1.ebuild 1266 RMD160 18d12325aa7d4a059f6692af1c925d18845579a4 SHA1 60dbe4e5022b145fb465fde7825311dcbbd9a182 SHA256 d1fb2b98048d6c517b6ce6757a6e98550dbf56c17164f782b529c4b66fe7a517 +MD5 bb7c2f00f33f932267131aad225a22d2 jclasslib-3.0-r1.ebuild 1266 +RMD160 18d12325aa7d4a059f6692af1c925d18845579a4 jclasslib-3.0-r1.ebuild 1266 +SHA256 d1fb2b98048d6c517b6ce6757a6e98550dbf56c17164f782b529c4b66fe7a517 jclasslib-3.0-r1.ebuild 1266 EBUILD jclasslib-3.0.ebuild 1326 RMD160 47d451ba962fe79e6a0d71051fb112f7cc12ebb4 SHA1 00f30b9c06a50edcb1ee9196bb2d2e03582e3c16 SHA256 a7dd0c9dfb0d320a29d4349d452938c55e9df35e6ad217dc81f66c6959176ed6 MD5 039a0f2562886822a31f5753dffb7e31 jclasslib-3.0.ebuild 1326 RMD160 47d451ba962fe79e6a0d71051fb112f7cc12ebb4 jclasslib-3.0.ebuild 1326 SHA256 a7dd0c9dfb0d320a29d4349d452938c55e9df35e6ad217dc81f66c6959176ed6 jclasslib-3.0.ebuild 1326 -MISC ChangeLog 1142 RMD160 81af203a6319df1b8f7c1ad3f041c4d4cd538645 SHA1 61e9d95c8b9da938130b1fdea9930b1900200e96 SHA256 75a769dc9b1b1130e15601f66dba26a041ee201a998702b6b48c49c3161c4219 -MD5 55468a2f340ca5801bccab47c590a2d0 ChangeLog 1142 -RMD160 81af203a6319df1b8f7c1ad3f041c4d4cd538645 ChangeLog 1142 -SHA256 75a769dc9b1b1130e15601f66dba26a041ee201a998702b6b48c49c3161c4219 ChangeLog 1142 +MISC ChangeLog 1346 RMD160 34ea9009a1e196db4812f4d665e1db467a326a0d SHA1 e23e9a38230e7eda7b8dba5fda0a0b684c9d5f4a SHA256 c7ffcc045ad610aef5b69c39c0b539df8d052dd7b101a29d941fd5bf3fefe6b7 +MD5 ca09d3fa88ad7e83fb80dac29c0241e1 ChangeLog 1346 +RMD160 34ea9009a1e196db4812f4d665e1db467a326a0d ChangeLog 1346 +SHA256 c7ffcc045ad610aef5b69c39c0b539df8d052dd7b101a29d941fd5bf3fefe6b7 ChangeLog 1346 MISC metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 SHA1 77cd509a8b3c377b9a24480b48a5d5481b7874f1 SHA256 ea882ceccfd160b16cf7e79de423bdcc12b3fa000f124491a6df36f5783894fb MD5 123cf9440c1d4ac78f2caba1624765f9 metadata.xml 158 RMD160 493079b5fb71d66863beea1b023901c90ba81be5 metadata.xml 158 @@ -33,10 +45,13 @@ SHA256 01e37b5b53273416d9e52da2a91dd1acacbd2b620418a8255cee2cf025707e2f files/di MD5 e44e1a2ea7037a214f7ef6f2bf576aa3 files/digest-jclasslib-3.0 259 RMD160 47396d9f1cd107e89014955d4dcfe9d2dfdd790b files/digest-jclasslib-3.0 259 SHA256 d7c8dab015eea437c3af72abeb624d802fb8b7312bdfd0b7697cdcaa846e60ba files/digest-jclasslib-3.0 259 +MD5 e44e1a2ea7037a214f7ef6f2bf576aa3 files/digest-jclasslib-3.0-r1 259 +RMD160 47396d9f1cd107e89014955d4dcfe9d2dfdd790b files/digest-jclasslib-3.0-r1 259 +SHA256 d7c8dab015eea437c3af72abeb624d802fb8b7312bdfd0b7697cdcaa846e60ba files/digest-jclasslib-3.0-r1 259 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.2 (GNU/Linux) -iD8DBQFFy9VnAiZjviIA2XgRAqMvAJ9ZGfQykPmXlIV9ruKhMz5r178fZwCfSXzp -lls4uihlFiY+Cw0AzLKPqjk= -=5K8p +iD8DBQFF5KJYcxLzpIGCsLQRAkH4AJ9zWhpuFp8YHap+iB+uyh6vFGwtsQCeOq2g +FL3ZRlJ6E0lLU4ewuMku6DA= +=h20m -----END PGP SIGNATURE----- diff --git a/dev-java/jclasslib/files/3.0-browser.patch b/dev-java/jclasslib/files/3.0-browser.patch new file mode 100644 index 000000000000..33635d693e74 --- /dev/null +++ b/dev-java/jclasslib/files/3.0-browser.patch @@ -0,0 +1,12 @@ +diff -ur jclasslib.old/src/org/gjt/jclasslib/browser/BrowserMDIFrame.java jclasslib/src/org/gjt/jclasslib/browser/BrowserMDIFrame.java +--- jclasslib.old/src/org/gjt/jclasslib/browser/BrowserMDIFrame.java 2007-02-27 22:37:56.000000000 +0200 ++++ jclasslib/src/org/gjt/jclasslib/browser/BrowserMDIFrame.java 2007-02-27 22:47:48.000000000 +0200 +@@ -633,7 +633,7 @@ + if (System.getProperty("os.name").startsWith("Windows")) { + commandLine = "rundll32.exe url.dll,FileProtocolHandler " + urlSpec; + } else { +- commandLine = "netscape " + urlSpec; ++ commandLine = System.getProperty("gentoo.browser", "firefox") + " " + urlSpec; + } + try { + Runtime.getRuntime().exec(commandLine); diff --git a/dev-java/jclasslib/files/3.0-pre b/dev-java/jclasslib/files/3.0-pre new file mode 100644 index 000000000000..b84f5b9d705a --- /dev/null +++ b/dev-java/jclasslib/files/3.0-pre @@ -0,0 +1 @@ +[[ ${BROWSER} ]] && gjl_java_args="${gjl_java_args} -Dgentoo.browser=${BROWSER}" diff --git a/dev-java/jclasslib/files/digest-jclasslib-3.0-r1 b/dev-java/jclasslib/files/digest-jclasslib-3.0-r1 new file mode 100644 index 000000000000..dde1c7de9c5f --- /dev/null +++ b/dev-java/jclasslib/files/digest-jclasslib-3.0-r1 @@ -0,0 +1,3 @@ +MD5 818c152bcdc1ce9ea3336f4de04216a2 jclasslib_unix_3_0.tar.gz 1774938 +RMD160 8c85c3ffab6b04046023986ec0bef751b4cfc6f1 jclasslib_unix_3_0.tar.gz 1774938 +SHA256 eec6d971b913802904e1f76758ff9b739680489bdaced18543a359308390405c jclasslib_unix_3_0.tar.gz 1774938 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." +}