summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2005-06-29 18:37:51 +0000
committerThomas Matthijs <axxo@gentoo.org>2005-06-29 18:37:51 +0000
commitd7e67dee0f180a6195d1680b7696c26a1e540664 (patch)
tree7f36fc420501f9914ccf2c2a43d7e95cc753c0bd /dev-java/jsr173
parentnew packages, dep of dom4j, ebuild contributed by Josh Nichols <nichoj@alum.r... (diff)
downloadgentoo-2-d7e67dee0f180a6195d1680b7696c26a1e540664.tar.gz
gentoo-2-d7e67dee0f180a6195d1680b7696c26a1e540664.tar.bz2
gentoo-2-d7e67dee0f180a6195d1680b7696c26a1e540664.zip
new packages, dep of dom4j, ebuild contributed by Josh Nichols <nichoj@alum.rpi.edu>
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'dev-java/jsr173')
-rw-r--r--dev-java/jsr173/ChangeLog11
-rw-r--r--dev-java/jsr173/Manifest3
-rw-r--r--dev-java/jsr173/files/build-1.0.xml61
-rw-r--r--dev-java/jsr173/files/digest-jsr173-1.01
-rw-r--r--dev-java/jsr173/jsr173-1.0.ebuild51
-rw-r--r--dev-java/jsr173/metadata.xml5
6 files changed, 132 insertions, 0 deletions
diff --git a/dev-java/jsr173/ChangeLog b/dev-java/jsr173/ChangeLog
new file mode 100644
index 000000000000..b8455b6d008f
--- /dev/null
+++ b/dev-java/jsr173/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/jsr173
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr173/ChangeLog,v 1.1 2005/06/29 18:34:20 axxo Exp $
+
+*jsr173-1.0 (29 Jun 2005)
+
+ 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> +files/build-1.0.xml,
+ +metadata.xml, +jsr173-1.0.ebuild:
+ new packages, dep of dom4j, ebuild contributed by Josh Nichols
+ <nichoj@alum.rpi.edu>
+
diff --git a/dev-java/jsr173/Manifest b/dev-java/jsr173/Manifest
new file mode 100644
index 000000000000..fa7f40f71899
--- /dev/null
+++ b/dev-java/jsr173/Manifest
@@ -0,0 +1,3 @@
+MD5 b83442291ef5719c84f6b1ac1e79c04f jsr173-1.0.ebuild 1053
+MD5 c089b7d34f96c556a34bb8c402794023 files/build-1.0.xml 1546
+MD5 792db1cd7ea6dc98f85d378d93640840 files/digest-jsr173-1.0 55
diff --git a/dev-java/jsr173/files/build-1.0.xml b/dev-java/jsr173/files/build-1.0.xml
new file mode 100644
index 000000000000..0fadc3fb4655
--- /dev/null
+++ b/dev-java/jsr173/files/build-1.0.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!---
+ @author: Saleem Abdulrasool <compnerd@gentoo.org>
+ @date: 5/9/2005
+ @revision: 1.0_alpha
+
+ @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name}
+-->
+
+<project name="Gentoo_Builder" default="jar" basedir=".">
+ <property name="src" value="src"/>
+ <property name="build" value="build"/>
+ <property name="dist" value="dist"/>
+ <property name="dist.docs" value="${dist}/doc/api"/>
+
+ <property name="libdir" value="lib"/>
+
+ <property name="pkg" value="${package.name}"/>
+ <property name="jar" value="${project.name}.jar"/>
+
+ <path id="lib.classpath">
+ <fileset dir="${libdir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <!-- Override any defined properties -->
+ <property file="build.properties"/>
+
+ <target name="init">
+ <tstamp/>
+ <mkdir dir="${build}"/>
+ <mkdir dir="${dist}"/>
+ <mkdir dir="${dist}/doc"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <javac srcdir="${src}" destdir="${build}" classpathref="lib.classpath"/>
+ </target>
+
+ <target name="manifest" depends="init">
+ <manifest file="${build}/MANIFEST.MF" mode="update">
+ <attribute name="Built-By" value="Gentoo Portage"/>
+ </manifest>
+ </target>
+
+ <target name="jar" depends="compile,manifest">
+ <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF">
+ <fileset dir="${build}"/>
+ </jar>
+ </target>
+
+ <target name="javadoc" depends="compile">
+ <javadoc sourcepath="${src}" destdir="${dist.docs}" packagenames="*" classpathref="lib.classpath"/>
+ </target>
+
+ <target name="clean">
+ <delete dir="${build}"/>
+ <delete dir="${dist}"/>
+ </target>
+</project>
diff --git a/dev-java/jsr173/files/digest-jsr173-1.0 b/dev-java/jsr173/files/digest-jsr173-1.0
new file mode 100644
index 000000000000..03e77cf9cc92
--- /dev/null
+++ b/dev-java/jsr173/files/digest-jsr173-1.0
@@ -0,0 +1 @@
+MD5 e4b93b2e95f0038da09bf257da0ea073 jsr173.jar 639734
diff --git a/dev-java/jsr173/jsr173-1.0.ebuild b/dev-java/jsr173/jsr173-1.0.ebuild
new file mode 100644
index 000000000000..92c5320277ba
--- /dev/null
+++ b/dev-java/jsr173/jsr173-1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr173/jsr173-1.0.ebuild,v 1.1 2005/06/29 18:34:20 axxo Exp $
+
+inherit java-pkg
+
+DESCRIPTION="The Streaming API for XML (StAX) is a groundbreaking new Java API for parsing and writing XML easily and efficiently"
+HOMEPAGE="http://dev2dev.bea.com/xml/stax.html"
+SRC_URI="http://ftpna2.bea.com/pub/downloads/${PN}.jar"
+
+LICENSE="bea.ri.jsr173"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc jikes source"
+
+RDEPEND=">=virtual/jre-1.3
+ dev-java/jaxme"
+DEPEND=">=virtual/jdk-1.3
+ jikes? ( dev-java/jikes )
+ dev-java/ant-core
+ ${RDEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ cd ${S}
+ jar xvf ${DISTDIR}/${A} || die "failed to unpack"
+
+ cp ${FILESDIR}/build-${PVR}.xml build.xml
+
+ jar xvf ${P//-/_}_src.jar || die "failed to unpack"
+ rm *.jar
+ cd lib
+ rm *.jar
+ java-pkg_jarfrom jaxme
+}
+
+src_compile() {
+ local antflags="-Dproject.name=${PN} jar"
+ use jikes && antflags="-Dbuild.compiler=jikes ${antflags}"
+ use doc && antflags="${antflags} javadoc"
+
+ ant ${antflags} || die "Compilation failed"
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ use doc && java-pkg_dohtml -r dist/doc/api
+ use source && java-pkg_dosrc src/*
+}
diff --git a/dev-java/jsr173/metadata.xml b/dev-java/jsr173/metadata.xml
new file mode 100644
index 000000000000..7303cef96964
--- /dev/null
+++ b/dev-java/jsr173/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>