summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-01-10 10:26:37 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-01-10 10:26:37 +0000
commit72ae78e0c4980fc388d049edb996b5d078d431cc (patch)
tree49c05ae265326cd302659ded77b5e3abe2586bf7 /dev-java/randomguid
parentVersion bump, bug #148776. Dropped old versions. (diff)
downloadgentoo-2-72ae78e0c4980fc388d049edb996b5d078d431cc.tar.gz
gentoo-2-72ae78e0c4980fc388d049edb996b5d078d431cc.tar.bz2
gentoo-2-72ae78e0c4980fc388d049edb996b5d078d431cc.zip
Migrated to generation 2 and added wrapper installation.
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'dev-java/randomguid')
-rw-r--r--dev-java/randomguid/ChangeLog8
-rw-r--r--dev-java/randomguid/files/digest-randomguid-1.2.12
-rw-r--r--dev-java/randomguid/files/digest-randomguid-1.2.1-r13
-rw-r--r--dev-java/randomguid/randomguid-1.2.1-r1.ebuild51
4 files changed, 63 insertions, 1 deletions
diff --git a/dev-java/randomguid/ChangeLog b/dev-java/randomguid/ChangeLog
index ea60fcd1e454..1a105bdbe934 100644
--- a/dev-java/randomguid/ChangeLog
+++ b/dev-java/randomguid/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/randomguid
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/randomguid/ChangeLog,v 1.12 2007/01/05 23:34:55 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/randomguid/ChangeLog,v 1.13 2007/01/10 10:26:37 betelgeuse Exp $
+
+*randomguid-1.2.1-r1 (10 Jan 2007)
+
+ 10 Jan 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +randomguid-1.2.1-r1.ebuild:
+ Migrated to generation 2 and added wrapper installation.
05 Jan 2007; Vlastimil Babka <caster@gentoo.org> randomguid-1.2.1.ebuild:
Convert einfo to elog.
diff --git a/dev-java/randomguid/files/digest-randomguid-1.2.1 b/dev-java/randomguid/files/digest-randomguid-1.2.1
index 9ed83d2db2f8..6b82be98a54a 100644
--- a/dev-java/randomguid/files/digest-randomguid-1.2.1
+++ b/dev-java/randomguid/files/digest-randomguid-1.2.1
@@ -1 +1,3 @@
MD5 b7beff4d03ce58f08c5250db7e18cbbe RandomGUID.tar 20480
+RMD160 040bdcd974770b6322761c50f41fbfd577389786 RandomGUID.tar 20480
+SHA256 1f5383a2cbb1fd51653d75770c2ccf0b16832c91e6c87f49e79b2ca715c97c3b RandomGUID.tar 20480
diff --git a/dev-java/randomguid/files/digest-randomguid-1.2.1-r1 b/dev-java/randomguid/files/digest-randomguid-1.2.1-r1
new file mode 100644
index 000000000000..6b82be98a54a
--- /dev/null
+++ b/dev-java/randomguid/files/digest-randomguid-1.2.1-r1
@@ -0,0 +1,3 @@
+MD5 b7beff4d03ce58f08c5250db7e18cbbe RandomGUID.tar 20480
+RMD160 040bdcd974770b6322761c50f41fbfd577389786 RandomGUID.tar 20480
+SHA256 1f5383a2cbb1fd51653d75770c2ccf0b16832c91e6c87f49e79b2ca715c97c3b RandomGUID.tar 20480
diff --git a/dev-java/randomguid/randomguid-1.2.1-r1.ebuild b/dev-java/randomguid/randomguid-1.2.1-r1.ebuild
new file mode 100644
index 000000000000..878358c58336
--- /dev/null
+++ b/dev-java/randomguid/randomguid-1.2.1-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/randomguid/randomguid-1.2.1-r1.ebuild,v 1.1 2007/01/10 10:26:37 betelgeuse Exp $
+
+inherit java-pkg-2
+
+DESCRIPTION="Generate truly random, cryptographically strong GUIDs"
+HOMEPAGE="http://www.javaexchange.com"
+SRC_URI="ftp://www.javaexchange.com/javaexchange/RandomGUID.tar"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.4"
+
+S=${WORKDIR}
+
+src_compile() {
+ mkdir -p com/javaexchange
+ mv RandomGUID.java com/javaexchange/RandomGUID.java~
+
+ # We need to move RandomGUID.class into the
+ # com.javaexchange package. This is necessary to prevent
+ # class lookup failures, such as when used with Tomcat
+ # (which has a different <default> package for JSP files).
+ cd com/javaexchange
+ echo >RandomGUID.java "package com.javaexchange;"
+ cat RandomGUID.java~ >>RandomGUID.java
+
+ ejavac RandomGUID.java || die "compile problem"
+
+ # don't want .java files in jar
+ rm RandomGUID.java*
+
+ cd ${S}
+ jar cf RandomGUID.jar com || die "jar problem"
+}
+
+src_install() {
+ java-pkg_dojar RandomGUID.jar
+ java-pkg_dolauncher ${PN} \
+ --main com.javaexchange.RandomGUID
+ dodoc RandomGUIDdemo.java
+}
+
+pkg_postinst() {
+ elog "RandomGUID.class has been moved from the <default>"
+ elog "package into com.javaexchange, so the fully qualified"
+ elog "class name is now: com.javaexchange.RandomGUID"
+}