summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jal')
-rw-r--r--dev-java/jal/ChangeLog8
-rw-r--r--dev-java/jal/Manifest5
-rw-r--r--dev-java/jal/files/buildxml.patch18
-rw-r--r--dev-java/jal/files/digest-jal-200311171
-rw-r--r--dev-java/jal/jal-20031117.ebuild57
-rw-r--r--dev-java/jal/metadata.xml15
6 files changed, 104 insertions, 0 deletions
diff --git a/dev-java/jal/ChangeLog b/dev-java/jal/ChangeLog
new file mode 100644
index 000000000000..7d31b00c6328
--- /dev/null
+++ b/dev-java/jal/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-java/jal
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed unde the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jal/ChangeLog,v 1.7 2004/12/04 12:49:34 karltk Exp $
+
+*jal-20031117 (04 Dec 2004)
+
+ 04 Dec 2004; Karl Trygve Kalleberg <karltk@gentoo.org> jal-20031117.ebuild:
+ Initial import. Ebuild submitted by Jan Brinkmann <lucky@the-luckyduck.de>.
diff --git a/dev-java/jal/Manifest b/dev-java/jal/Manifest
new file mode 100644
index 000000000000..0f8453b966b6
--- /dev/null
+++ b/dev-java/jal/Manifest
@@ -0,0 +1,5 @@
+MD5 0f642450764af4e53e4a6afcfce82169 jal-20031117.ebuild 1380
+MD5 b4d07dac4415f767fdca06324c2a6792 ChangeLog 305
+MD5 0637a933ecb6e8cedfc4ddfcf3491728 metadata.xml 310
+MD5 9b77e4f20dadfbe6d50c82470c8a5599 files/buildxml.patch 482
+MD5 6dc56919a415fcf91bbeae37322eada8 files/digest-jal-20031117 67
diff --git a/dev-java/jal/files/buildxml.patch b/dev-java/jal/files/buildxml.patch
new file mode 100644
index 000000000000..16e39c93e222
--- /dev/null
+++ b/dev-java/jal/files/buildxml.patch
@@ -0,0 +1,18 @@
+diff -uprN jal-20031117.orig/build.xml jal-20031117/build.xml
+--- jal-20031117.orig/build.xml 2004-11-22 17:00:41.200663880 +0100
++++ jal-20031117/build.xml 2004-11-22 20:00:39.322099904 +0100
+@@ -16,11 +16,13 @@
+ debug="on"
+ optimize="on"
+ destdir="${build}"
++ source="1.4"
++ target="1.4"
+ />
+ </target>
+
+ <target name="jar" depends="compile">
+- <jar jarfile="jal-${version}.jar"
++ <jar jarfile="jal.jar"
+ basedir="${build}"
+ />
+ </target>
diff --git a/dev-java/jal/files/digest-jal-20031117 b/dev-java/jal/files/digest-jal-20031117
new file mode 100644
index 000000000000..a8979a5859bf
--- /dev/null
+++ b/dev-java/jal/files/digest-jal-20031117
@@ -0,0 +1 @@
+MD5 22b70a75145bba28e41108b4fbf2cb30 jal-20031117-src.tar.gz 48793
diff --git a/dev-java/jal/jal-20031117.ebuild b/dev-java/jal/jal-20031117.ebuild
new file mode 100644
index 000000000000..584ebbdd7689
--- /dev/null
+++ b/dev-java/jal/jal-20031117.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jal/jal-20031117.ebuild,v 1.7 2004/12/04 12:49:34 karltk Exp $
+
+inherit eutils java-pkg
+
+DESCRIPTION="Jal is a partial port of the STL by the C++ Standard Template Library."
+SRC_URI="http://vigna.dsi.unimi.it/jal/${P}-src.tar.gz"
+HOMEPAGE="http://vigna.dsi.unimi.it/jal/"
+LICENSE="X11"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="doc jikes"
+DEPEND=">=virtual/jdk-1.4
+ jikes?( >=dev-java/jikes-1.21 )"
+RDEPEND=">=virtual/jre-1.4
+ >=dev-java/fastutil-3.1"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/buildxml.patch
+
+ # we have to generate the sources first
+ ./instantiate -n byte bytes
+ ./instantiate -n short shorts
+ ./instantiate -n char chars
+ ./instantiate -n int ints
+ ./instantiate -n long longs
+ ./instantiate -n float floats
+ ./instantiate -n double doubles
+ ./instantiate Object objects
+ ./instantiate String strings
+ mkdir -p src/jal
+ mv bytes shorts chars ints longs floats doubles objects strings src/jal
+
+}
+
+src_compile () {
+ local antflags="jar"
+ if use doc; then
+ antflags="${antflags} javadoc"
+ fi
+ if use jikes; then
+ antflags="${antflags} -Dbuild.compiler=jikes"
+ fi
+ ant ${antflags}
+}
+
+src_install() {
+ java-pkg_dojar ${PN}.jar
+ if use doc; then
+ java-pkg_dohtml -r docs/*
+ fi
+}
+
diff --git a/dev-java/jal/metadata.xml b/dev-java/jal/metadata.xml
new file mode 100644
index 000000000000..b0674eea3dc3
--- /dev/null
+++ b/dev-java/jal/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+Jal is a partial port of the STL by the C++ Standard Template Library, done by
+Matthew Austern and Alexander Stepanov.
+
+It contains several useful algorithms that cannot be found elsewhere (e.g.,
+linear-time n-th order statistics and sorting arrays using arbitrary
+predicates).
+</longdescription>
+</pkgmetadata>