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
commitbd273ace2c569bddee969f26013e5a50e0e55602 (patch)
treea210d31b419a5ba6388f30b3be982e9ad91d1906 /dev-java/randomguid
parentnew version; closes bug #3760 (diff)
downloadhistorical-bd273ace2c569bddee969f26013e5a50e0e55602.tar.gz
historical-bd273ace2c569bddee969f26013e5a50e0e55602.tar.bz2
historical-bd273ace2c569bddee969f26013e5a50e0e55602.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"
+}