summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-02-05 00:22:59 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-02-05 00:22:59 +0000
commit4399cf5d9a1a21dcd7c41a190061e2d8d20ed9d6 (patch)
tree327b0b29569cfa65869a5588d3eac71d377be743 /dev-java
parentMarking libmsn-4.0_beta4 ~ppc for bug 257114 (diff)
downloadgentoo-2-4399cf5d9a1a21dcd7c41a190061e2d8d20ed9d6.tar.gz
gentoo-2-4399cf5d9a1a21dcd7c41a190061e2d8d20ed9d6.tar.bz2
gentoo-2-4399cf5d9a1a21dcd7c41a190061e2d8d20ed9d6.zip
Initial addition from java-experimental. Fixes bug #257512. Ebuild written by Mike Weissman <mike@weisso.com>.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28-gentoo i686)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jettison/ChangeLog11
-rw-r--r--dev-java/jettison/files/build.xml63
-rw-r--r--dev-java/jettison/jettison-1.0.ebuild41
-rw-r--r--dev-java/jettison/metadata.xml16
4 files changed, 131 insertions, 0 deletions
diff --git a/dev-java/jettison/ChangeLog b/dev-java/jettison/ChangeLog
new file mode 100644
index 000000000000..e3afcae00bbe
--- /dev/null
+++ b/dev-java/jettison/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/jettison
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jettison/ChangeLog,v 1.1 2009/02/05 00:22:59 betelgeuse Exp $
+
+*jettison-1.0 (05 Feb 2009)
+
+ 05 Feb 2009; Petteri Räty <betelgeuse@gentoo.org> +files/build.xml,
+ +metadata.xml, +jettison-1.0.ebuild:
+ Initial addition from java-experimental. Fixes bug #257512. Ebuild written
+ by Mike Weissman <mike@weisso.com>.
+
diff --git a/dev-java/jettison/files/build.xml b/dev-java/jettison/files/build.xml
new file mode 100644
index 000000000000..b6b95dff7a2a
--- /dev/null
+++ b/dev-java/jettison/files/build.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+
+<project name="jettison" default="jar" basedir=".">
+ <!-- some properties -->
+ <property name="src.dir" value="org/codehaus/jettison" />
+ <property name="build.dir" value="build" />
+ <property name="docs.dir" value="docs" />
+ <property name="lib.dir" value="lib"/>
+ <property name="dist.dir" value="dist" />
+ <property name="jarfile" value="${dist.dir}/jettison.jar" />
+ <property name="pkg" value="${package.name}"/>
+ <property name="target.jdk" value="1.5" />
+
+
+ <available file="${lib}" type="dir" property="libdir.exists"/>
+
+
+ <!-- init -->
+ <target name="init">
+ <tstamp/>
+ <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}"
+ classpath="${gentoo.classpath}">
+ </javac>
+ </target>
+
+ <!-- build the jar file -->
+ <target name="jar" depends="compile">
+ <jar jarfile="${jarfile}" basedir="${build.dir}" />
+ </target>
+
+ <!-- generate javadocs -->
+ <target name="javadoc" depends="compile">
+ <javadoc packagenames="org.*"
+ sourcepath="${src.dir}"
+ defaultexcludes="yes"
+ destdir="./${docs.dir}"
+ author="true"
+ version="true"
+ use="true"
+ windowtitle="${ant.project.name} API" >
+ <fileset dir="${src.dir}"/>
+ </javadoc>
+ </target>
+
+ <!-- clean up -->
+ <target name="clean">
+ <delete dir="${build.dir}" />
+ <delete dir="${docs.dir}" />
+ <delete dir="${dist.dir}" />
+ </target>
+
+</project>
diff --git a/dev-java/jettison/jettison-1.0.ebuild b/dev-java/jettison/jettison-1.0.ebuild
new file mode 100644
index 000000000000..d8d3a81fc87b
--- /dev/null
+++ b/dev-java/jettison/jettison-1.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jettison/jettison-1.0.ebuild,v 1.1 2009/02/05 00:22:59 betelgeuse Exp $
+
+EAPI=2
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="A JSON StAX implementation"
+HOMEPAGE="http://jettison.codehaus.org/"
+SRC_URI="http://repository.codehaus.org/org/codehaus/${PN}/${PN}/${PV}/${P}-sources.jar"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE=""
+
+COMMON_DEP=""
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+
+#Don't need to make one
+S="${WORKDIR}"
+
+src_prepare(){
+ #no supplied Build file
+ cp -v "${FILESDIR}"/build.xml "${S}/build.xml" || die
+}
+
+src_install() {
+ java-pkg_dojar dist/"${PN}.jar"
+ use doc && java-pkg_dojavadoc docs
+ use source && java-pkg_dosrc org
+}
+
diff --git a/dev-java/jettison/metadata.xml b/dev-java/jettison/metadata.xml
new file mode 100644
index 000000000000..ce736f710d02
--- /dev/null
+++ b/dev-java/jettison/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <maintainer>
+ <email>mike@weisso.com</email>
+ <name>Mike Weissman</name>
+ </maintainer>
+ <longdescription lang="en">
+ Jettison is a collection of Java APIs (like STaX and DOM) which read and
+ write JSON. This allows nearly transparent enablement of JSON based web
+ services in services frameworks like CXF or XML serialization frameworks
+ like XStream.
+ </longdescription>
+</pkgmetadata>
+