summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaik Schreiber <blizzy@gentoo.org>2002-07-08 18:05:06 +0000
committerMaik Schreiber <blizzy@gentoo.org>2002-07-08 18:05:06 +0000
commitc19f04c69b8ae7f07c64a864f3077388095df004 (patch)
tree1f5cfa3d75284a45985f1946c4f01a581cf250f8 /dev-java/randomguid
parentrepoman QA issues (diff)
downloadgentoo-2-c19f04c69b8ae7f07c64a864f3077388095df004.tar.gz
gentoo-2-c19f04c69b8ae7f07c64a864f3077388095df004.tar.bz2
gentoo-2-c19f04c69b8ae7f07c64a864f3077388095df004.zip
initial import
Diffstat (limited to 'dev-java/randomguid')
-rw-r--r--dev-java/randomguid/ChangeLog9
-rw-r--r--dev-java/randomguid/files/digest-randomguid-1.21
-rw-r--r--dev-java/randomguid/randomguid-1.2.ebuild52
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-java/randomguid/ChangeLog b/dev-java/randomguid/ChangeLog
new file mode 100644
index 000000000000..ac5d897d4d01
--- /dev/null
+++ b/dev-java/randomguid/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-java/randomguid
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/randomguid/ChangeLog,v 1.1 2002/07/08 18:05:05 blizzy Exp $
+
+*randomguid-1.2 (08 Jul 2002)
+
+ 08 Jul 2002; Maik Schreiber <bZ@iq-computing.de> :
+
+ Initial import, closes bug #3767.
diff --git a/dev-java/randomguid/files/digest-randomguid-1.2 b/dev-java/randomguid/files/digest-randomguid-1.2
new file mode 100644
index 000000000000..96c406a60e15
--- /dev/null
+++ b/dev-java/randomguid/files/digest-randomguid-1.2
@@ -0,0 +1 @@
+MD5 fadb02b0419b8ed024ffc845fcfd7864 RandomGUID.tar 20480
diff --git a/dev-java/randomguid/randomguid-1.2.ebuild b/dev-java/randomguid/randomguid-1.2.ebuild
new file mode 100644
index 000000000000..61078e4ec5ff
--- /dev/null
+++ b/dev-java/randomguid/randomguid-1.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/dev-java/randomguid/randomguid-1.2.ebuild,v 1.1 2002/07/08 18:05:05 blizzy Exp $
+
+A="RandomGUID.tar"
+S=${WORKDIR}
+SRC_URI="ftp://www.javaexchange.com/javaexchange/${A}"
+DESCRIPTION="Generate truly random, cryptographically strong GUIDs"
+HOMEPAGE="http://www.javaexchange.com"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="*"
+
+RDEPEND=">=virtual/jdk-1.2"
+DEPEND="${RDEPEND}
+ jikes? ( >=dev-java/jikes-1.15 )"
+
+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
+
+ if [ `use jikes` ] ; then
+ jikes RandomGUID.java || die "compile problem"
+ else
+ javac RandomGUID.java || die "compile problem"
+ fi
+
+ # don't want .java files in jar
+ rm RandomGUID.java*
+
+ cd ${S}
+ jar cf RandomGUID.jar com || die "jar problem"
+}
+
+src_install() {
+ dojar RandomGUID.jar
+ dodoc RandomGUIDdemo.java
+}
+
+pkg_postinst() {
+ einfo "RandomGUID.class has been moved from the <default>"
+ einfo "package into com.javaexchange, so the fully qualified"
+ einfo "class name is now: com.javaexchange.RandomGUID"
+}