summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-01-08 00:03:10 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-01-08 00:03:10 +0000
commitee2d607144227041663bd7bf7e5e69b9046d7037 (patch)
treec2a7faaf0fe818581e02d7cf443ccf8235a1d09b /dev-java/javatar
parentfix install (Manifest recommit) (diff)
downloadgentoo-2-ee2d607144227041663bd7bf7e5e69b9046d7037.tar.gz
gentoo-2-ee2d607144227041663bd7bf7e5e69b9046d7037.tar.bz2
gentoo-2-ee2d607144227041663bd7bf7e5e69b9046d7037.zip
Initial import. Fixes #75343.
Diffstat (limited to 'dev-java/javatar')
-rw-r--r--dev-java/javatar/ChangeLog11
-rw-r--r--dev-java/javatar/Manifest3
-rw-r--r--dev-java/javatar/files/digest-javatar-2.51
-rw-r--r--dev-java/javatar/files/javatar-2.5-build.xml72
-rw-r--r--dev-java/javatar/javatar-2.5.ebuild55
-rw-r--r--dev-java/javatar/metadata.xml5
6 files changed, 147 insertions, 0 deletions
diff --git a/dev-java/javatar/ChangeLog b/dev-java/javatar/ChangeLog
new file mode 100644
index 000000000000..9ffc362a425e
--- /dev/null
+++ b/dev-java/javatar/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/javatar
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/javatar/ChangeLog,v 1.1 2005/01/08 00:03:10 luckyduck Exp $
+
+*javatar-2.5 (08 Jan 2005)
+
+ 08 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> +metadata.xml,
+ +files/javatar-2.5-build.xml, +javatar-2.5.ebuild:
+ Initial import. Ebuild based on the contribution of Paul Pacheco
+ <paul.pacheco@wavecode.com>. Fixes #75343.
+
diff --git a/dev-java/javatar/Manifest b/dev-java/javatar/Manifest
new file mode 100644
index 000000000000..ee6a6af1d965
--- /dev/null
+++ b/dev-java/javatar/Manifest
@@ -0,0 +1,3 @@
+MD5 10aa896a3d34f3cfcaefc337f5aca93e javatar-2.5.ebuild 1029
+MD5 72a80c98ad1dd5e73ea4567f9faf1897 files/digest-javatar-2.5 63
+MD5 ec07ac79c6fb74570a833928e2074434 files/javatar-2.5-gentoo.patch 1116
diff --git a/dev-java/javatar/files/digest-javatar-2.5 b/dev-java/javatar/files/digest-javatar-2.5
new file mode 100644
index 000000000000..4588c77d2040
--- /dev/null
+++ b/dev-java/javatar/files/digest-javatar-2.5
@@ -0,0 +1 @@
+MD5 7dae3b92b70c30cfb6fd9699a79f821c javatar-2.5.tar.gz 168790
diff --git a/dev-java/javatar/files/javatar-2.5-build.xml b/dev-java/javatar/files/javatar-2.5-build.xml
new file mode 100644
index 000000000000..267623a9b52c
--- /dev/null
+++ b/dev-java/javatar/files/javatar-2.5-build.xml
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+
+<project name="javatar" default="jar">
+ <!-- some properties -->
+ <property name="src.dir" value="source" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="dist.dir" value="dist" />
+ <property name="lib.dir" value="lib" />
+ <property name="jarfile" value="${dist.dir}/${ant.project.name}.jar" />
+ <property name="target.jdk" value="1.4" />
+
+ <!-- classpath -->
+ <path id="refcp">
+ <fileset dir="${lib.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </path>
+
+ <!-- init -->
+ <target name="init">
+ <mkdir dir="${dist.dir}" />
+ <mkdir dir="${build.dir}" />
+ <mkdir dir="${docs.dir}" />
+ </target>
+
+ <!-- compile everything -->
+ <target name="compile" depends="init">
+ <mkdir dir="${build.dir}" />
+ <javac srcdir="${src.dir}"
+ destdir="${build.dir}"
+ source="${target.jdk}"
+ target="${target.jdk}"
+ classpathref="refcp"/>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}">
+ <manifest>
+ <attribute name="Main-Class" value="com.ice.tar.tar" />
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="docs" depends="init">
+ <javadoc sourcepath="${src.dir}"
+ packagenames="com.*"
+ destdir="${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API" />
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ <delete dir="${lib.dir}" />
+ </target>
+
+ <!-- zip the sources -->
+ <target name="sourcezip">
+ <zip destfile="${dist.dir}/${ant.project.name}-src.zip">
+ <zipfileset dir="${src.dir}" />
+ </zip>
+ </target>
+
+</project>
diff --git a/dev-java/javatar/javatar-2.5.ebuild b/dev-java/javatar/javatar-2.5.ebuild
new file mode 100644
index 000000000000..a4fb08d2d5f7
--- /dev/null
+++ b/dev-java/javatar/javatar-2.5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/javatar/javatar-2.5.ebuild,v 1.1 2005/01/08 00:03:10 luckyduck Exp $
+
+inherit java-pkg eutils
+
+DESCRIPTION="Java library for creation and extraction of tar archives"
+HOMEPAGE="http://www.trustice.com/java/tar/"
+SRC_URI="ftp://ftp.gjt.org/pub/time/java/tar/${P}.tar.gz"
+
+DEPEND=">=virtual/jdk-1.4
+ >=dev-java/ant-1.4
+ jikes? ( dev-java/jikes )
+ dev-java/sun-jaf-bin"
+
+RDEPEND=">=virtual/jdk-1.4
+ dev-java/sun-jaf-bin"
+
+LICENSE="public-domain"
+SLOT="2.5"
+IUSE="jikes doc"
+KEYWORDS="~x86 ~amd64"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ cp ${FILESDIR}/javatar-2.5-build.xml build.xml
+
+ mkdir ${S}/lib
+ cd ${S}/lib
+ rm -f *.jar
+ java-pkg_jar-from sun-jaf-bin
+}
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} docs"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ ant ${antflags} || die "compile failed"
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ dodoc doc/LICENSE
+ use doc && java-pkg_dohtml -r docs/* doc/*.html
+
+ echo "#!/bin/sh" > ${PN}
+ echo "cp=\`java-config -p sun-jaf-bin\`" >> ${PN}
+ echo "cp=\${cp}:\`java-config -p javatar-2.5\`" >> ${PN}
+ echo "\`java-config -J\` -cp \${cp} com.ice.tar.tar" >> ${PN}
+
+ insinto /usr
+ dobin ${PN}
+}
diff --git a/dev-java/javatar/metadata.xml b/dev-java/javatar/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/javatar/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>java</herd>
+</pkgmetadata>