summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2007-05-07 10:58:46 +0000
committerVlastimil Babka <caster@gentoo.org>2007-05-07 10:58:46 +0000
commitdf5541ddcc8e1b766e507364a3dcc6de8cbac71e (patch)
tree393e8eabb8d9a619c17c0d61991db75d8ce0577d /dev-java/xsd2jibx
parentStable on Alpha, IA64 and x86 + fix digest issue reported in bug 177440. (diff)
downloadgentoo-2-df5541ddcc8e1b766e507364a3dcc6de8cbac71e.tar.gz
gentoo-2-df5541ddcc8e1b766e507364a3dcc6de8cbac71e.tar.bz2
gentoo-2-df5541ddcc8e1b766e507364a3dcc6de8cbac71e.zip
Initial commit as dependency of app-misc/freemind.
(Portage version: 2.1.2.6)
Diffstat (limited to 'dev-java/xsd2jibx')
-rw-r--r--dev-java/xsd2jibx/ChangeLog11
-rw-r--r--dev-java/xsd2jibx/Manifest28
-rw-r--r--dev-java/xsd2jibx/files/Manifest65
-rw-r--r--dev-java/xsd2jibx/files/build.xml69
-rw-r--r--dev-java/xsd2jibx/files/digest-xsd2jibx-0.2a_beta3
-rw-r--r--dev-java/xsd2jibx/files/xsd2jibx-0.2a_beta-freemind.patch74
-rw-r--r--dev-java/xsd2jibx/metadata.xml5
-rw-r--r--dev-java/xsd2jibx/xsd2jibx-0.2a_beta.ebuild57
8 files changed, 312 insertions, 0 deletions
diff --git a/dev-java/xsd2jibx/ChangeLog b/dev-java/xsd2jibx/ChangeLog
new file mode 100644
index 000000000000..fb67212c90a3
--- /dev/null
+++ b/dev-java/xsd2jibx/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/xsd2jibx
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xsd2jibx/ChangeLog,v 1.1 2007/05/07 10:58:46 caster Exp $
+
+*xsd2jibx-0.2a_beta (07 May 2007)
+
+ 07 May 2007; Vlastimil Babka <caster@gentoo.org>
+ +files/xsd2jibx-0.2a_beta-freemind.patch, +files/build.xml, +metadata.xml,
+ +xsd2jibx-0.2a_beta.ebuild:
+ Initial commit as dependency of app-misc/freemind.
+
diff --git a/dev-java/xsd2jibx/Manifest b/dev-java/xsd2jibx/Manifest
new file mode 100644
index 000000000000..357a67c72205
--- /dev/null
+++ b/dev-java/xsd2jibx/Manifest
@@ -0,0 +1,28 @@
+AUX Manifest 2315 RMD160 cfa3996b075cc9e33b54a5aeb5cc818fc399bf7f SHA1 1f5561b597f91d59844d9dbcdcb52c7387228f51 SHA256 5201595492ce188576c18415aca69229681c860b5bbb7747a1ec89c7d67744de
+MD5 a432fb45663a9d83bbfa7e8de4d04034 files/Manifest 2315
+RMD160 cfa3996b075cc9e33b54a5aeb5cc818fc399bf7f files/Manifest 2315
+SHA256 5201595492ce188576c18415aca69229681c860b5bbb7747a1ec89c7d67744de files/Manifest 2315
+AUX build.xml 2458 RMD160 19b9999e5d03fc604ba4673fecd690c98111ec5a SHA1 4d9011ee6b744cbd5c92d806370a000e8619be07 SHA256 53cec632269f65210b4cafe6563b92b0cfb2f214b372a886e00b416e4713b84c
+MD5 8883f910428cef5fc178a03c02b02394 files/build.xml 2458
+RMD160 19b9999e5d03fc604ba4673fecd690c98111ec5a files/build.xml 2458
+SHA256 53cec632269f65210b4cafe6563b92b0cfb2f214b372a886e00b416e4713b84c files/build.xml 2458
+AUX xsd2jibx-0.2a_beta-freemind.patch 3010 RMD160 b1829f98e2d2205ccbe2bafc381c7b6e8e5e85af SHA1 dd6aaba997bdf42464a11210b911b35b2e408d1c SHA256 df51d6a5141f026c44265be3d7528f2ef2f03364bfd345bccc101f94e2e0ee69
+MD5 fad9d78ea59c5b9d858ee39c48a9e94b files/xsd2jibx-0.2a_beta-freemind.patch 3010
+RMD160 b1829f98e2d2205ccbe2bafc381c7b6e8e5e85af files/xsd2jibx-0.2a_beta-freemind.patch 3010
+SHA256 df51d6a5141f026c44265be3d7528f2ef2f03364bfd345bccc101f94e2e0ee69 files/xsd2jibx-0.2a_beta-freemind.patch 3010
+DIST xsd2jibx-beta2a.zip 961258 RMD160 a1516ee9e3e042248928d7960116f47dfa2350e7 SHA1 d5cc4c971d696a58ab8d8e321c15803d84cddedf SHA256 615d573d944d361dfa23ff1099c543c78fae1943af0735c7a7743a0472c865db
+EBUILD xsd2jibx-0.2a_beta.ebuild 1386 RMD160 2bcfdc7e6324544ac38722589a5a45c41560f8b9 SHA1 c8e610130599053a31f7026fc4ae01d9f4df79f7 SHA256 7dc60d718e6830059d9ab1d9bf383468c56fb770fb77064466abce354f2e22cb
+MD5 c2dd05ba7f3fbe5bf134abe7deac5ed4 xsd2jibx-0.2a_beta.ebuild 1386
+RMD160 2bcfdc7e6324544ac38722589a5a45c41560f8b9 xsd2jibx-0.2a_beta.ebuild 1386
+SHA256 7dc60d718e6830059d9ab1d9bf383468c56fb770fb77064466abce354f2e22cb xsd2jibx-0.2a_beta.ebuild 1386
+MISC ChangeLog 365 RMD160 9252877f2ddfb94d1a37673641d82f2b93ca7d19 SHA1 8a7e778b2694139ea24a9c4cba6c6caa45af3fac SHA256 0ba0ee200190005915dcf57f3dcd36f6be31f4b62bdb94663995d0d4883b8909
+MD5 60c697590717cb8049334f13ebd8216f ChangeLog 365
+RMD160 9252877f2ddfb94d1a37673641d82f2b93ca7d19 ChangeLog 365
+SHA256 0ba0ee200190005915dcf57f3dcd36f6be31f4b62bdb94663995d0d4883b8909 ChangeLog 365
+MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9
+MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
+RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157
+SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 metadata.xml 157
+MD5 9e3760ac73f525339d5fb58818f256ad files/digest-xsd2jibx-0.2a_beta 238
+RMD160 39141310608b54a828ef8980ba8ab70da80471c5 files/digest-xsd2jibx-0.2a_beta 238
+SHA256 f30f914ba6cca6adf20abc04604debc0234dba42907a30440c3b5967cf7a894c files/digest-xsd2jibx-0.2a_beta 238
diff --git a/dev-java/xsd2jibx/files/Manifest b/dev-java/xsd2jibx/files/Manifest
new file mode 100644
index 000000000000..856a721ea14c
--- /dev/null
+++ b/dev-java/xsd2jibx/files/Manifest
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+
+<project basedir="." default="jar">
+
+ <!-- JiBX binding compiler task definition -->
+ <property environment="env"/>
+ <property name="jibxhome" value="${env.JIBX_HOME}"/>
+ <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
+ <classpath>
+ <pathelement location="${jibxhome}/lib/bcel.jar"/>
+ <pathelement location="${jibxhome}/lib/jibx-bind.jar"/>
+ <pathelement location="${jibxhome}/lib/jibx-run.jar"/>
+ <pathelement location="${jibxhome}/lib/jibx-extras.jar"/>
+ <pathelement location="${jibxhome}/lib/xpp3.jar"/>
+ </classpath>
+ </taskdef>
+
+ <!-- compile the class files -->
+ <target name="compile">
+ <delete quiet="true" dir="${basedir}/classes"/>
+ <mkdir dir="${basedir}/classes"/>
+ <javac srcdir="${basedir}/src/main"
+ destdir="${basedir}/classes"
+ excludes="org/jibx/xsd2jibx/GeneratorAntTask.java"
+ debug="true"
+ deprecation="on">
+ <classpath>
+ <fileset dir="${basedir}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${jibxhome}/lib">
+ <include name="jibx-run.jar"/>
+ <include name="xpp3.jar"/>
+ </fileset>
+ </classpath>
+ </javac>
+ <copy todir="${basedir}/classes/org/jibx/xsd2jibx">
+ <fileset dir="${basedir}/src/main/org/jibx/xsd2jibx" includes="**/*.xsl"/>
+ </copy>
+ </target>
+
+ <!-- bind the class files -->
+ <target name="bind" depends="compile">
+ <echo message="Running binding compiler..."/>
+ <bind verbose="true" load="true">
+ <bindingfileset dir="${basedir}/src/main/org/jibx/xsd2jibx">
+ <include name="xsd.jibx.xml"/>
+ <include name="jibx.jibx.xml"/>
+ </bindingfileset>
+ <classpathset dir="${basedir}/classes"/>
+ </bind>
+ </target>
+
+ <!-- Build the jar files for the distribution -->
+ <target name="jar" depends="bind">
+ <delete file="${basedir}/lib/xsd2jibx.jar" quiet="true"/>
+ <jar jarfile="${basedir}/lib/xsd2jibx.jar" basedir="${basedir}/classes">
+ <manifest>
+ <attribute name="Main-Class" value="org/jibx/xsd2jibx/Generate"/>
+ <attribute name="Class-Path" value="commons-lang-2.0.jar commons-logging-1.0.4.jar jaxme-js-0.3.jar log4j-1.2.8.jar jibx-run.jar xpp3.jar"/>
+ </manifest>
+ </jar>
+ </target>
+
+</project>
diff --git a/dev-java/xsd2jibx/files/build.xml b/dev-java/xsd2jibx/files/build.xml
new file mode 100644
index 000000000000..b41ca64cf949
--- /dev/null
+++ b/dev-java/xsd2jibx/files/build.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0"?>
+
+<project basedir="." default="jar">
+
+ <!-- JiBX binding compiler task definition -->
+ <property environment="env"/>
+ <property name="jibxhome" value="${env.JIBX_HOME}"/>
+ <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
+ <classpath>
+ <pathelement location="${jibxhome}/lib/bcel.jar"/>
+ <pathelement location="${jibxhome}/lib/jibx-bind.jar"/>
+ <pathelement location="${jibxhome}/lib/jibx-run.jar"/>
+ <pathelement location="${jibxhome}/lib/jibx-extras.jar"/>
+ <pathelement location="${jibxhome}/lib/xpp3.jar"/>
+ </classpath>
+ </taskdef>
+
+ <!-- compile the class files -->
+ <target name="compile">
+ <delete quiet="true" dir="${basedir}/classes"/>
+ <mkdir dir="${basedir}/classes"/>
+ <javac srcdir="${basedir}/src/main"
+ destdir="${basedir}/classes"
+ excludes="org/jibx/xsd2jibx/GeneratorAntTask.java"
+ debug="true"
+ deprecation="on">
+ <classpath>
+ <fileset dir="${basedir}/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${jibxhome}/lib">
+ <include name="jibx-run.jar"/>
+ <include name="xpp3.jar"/>
+ </fileset>
+ </classpath>
+ </javac>
+ <copy todir="${basedir}/classes/org/jibx/xsd2jibx">
+ <fileset dir="${basedir}/src/main/org/jibx/xsd2jibx" includes="**/*.xsl"/>
+ </copy>
+ </target>
+
+ <!-- bind the class files -->
+ <target name="bind" depends="compile">
+ <echo message="Running binding compiler..."/>
+ <bind verbose="true" load="true">
+ <bindingfileset dir="${basedir}/src/main/org/jibx/xsd2jibx">
+ <include name="xsd.jibx.xml"/>
+ <include name="jibx.jibx.xml"/>
+ </bindingfileset>
+ <classpathset dir="${basedir}/classes"/>
+ </bind>
+ </target>
+
+ <target name="javadoc" description="Produce JavaDoc">
+ <javadoc sourcepath="${basedir}/src/main" destdir="${basedir}/api"/>
+ </target>
+
+ <!-- Build the jar files for the distribution -->
+ <target name="jar" depends="bind">
+ <delete file="${basedir}/lib/xsd2jibx.jar" quiet="true"/>
+ <jar jarfile="${basedir}/lib/xsd2jibx.jar" basedir="${basedir}/classes">
+ <manifest>
+ <attribute name="Main-Class" value="org/jibx/xsd2jibx/Generate"/>
+ <attribute name="Class-Path" value="commons-lang-2.0.jar commons-logging-1.0.4.jar jaxme-js-0.3.jar log4j-1.2.8.jar jibx-run.jar xpp3.jar"/>
+ </manifest>
+ </jar>
+ </target>
+
+</project>
diff --git a/dev-java/xsd2jibx/files/digest-xsd2jibx-0.2a_beta b/dev-java/xsd2jibx/files/digest-xsd2jibx-0.2a_beta
new file mode 100644
index 000000000000..b5ab20961bf7
--- /dev/null
+++ b/dev-java/xsd2jibx/files/digest-xsd2jibx-0.2a_beta
@@ -0,0 +1,3 @@
+MD5 992119b8178d878be836aef8f6460a12 xsd2jibx-beta2a.zip 961258
+RMD160 a1516ee9e3e042248928d7960116f47dfa2350e7 xsd2jibx-beta2a.zip 961258
+SHA256 615d573d944d361dfa23ff1099c543c78fae1943af0735c7a7743a0472c865db xsd2jibx-beta2a.zip 961258
diff --git a/dev-java/xsd2jibx/files/xsd2jibx-0.2a_beta-freemind.patch b/dev-java/xsd2jibx/files/xsd2jibx-0.2a_beta-freemind.patch
new file mode 100644
index 000000000000..bcd67e9eece4
--- /dev/null
+++ b/dev-java/xsd2jibx/files/xsd2jibx-0.2a_beta-freemind.patch
@@ -0,0 +1,74 @@
+Index: src/main/org/jibx/xsd2jibx/JSource.java
+===================================================================
+RCS file: /cvsroot/jibx/xsd2jibx/src/main/org/jibx/xsd2jibx/JSource.java,v
+retrieving revision 1.6
+diff -u -B -r1.6 JSource.java
+--- src/main/org/jibx/xsd2jibx/JSource.java 19 Feb 2005 20:02:31 -0000 1.6
++++ src/main/org/jibx/xsd2jibx/JSource.java 6 May 2007 21:16:33 -0000
+@@ -89,6 +89,12 @@
+ jm.addParam(jqname, element.getFieldName());
+ jm.addLine(element.getFieldList() + ".add(" + element.getFieldName() + ");");
+
++ // create add to position method:
++ jm = source.newJavaMethod(element.getAddPositionMethod(), JQName.VOID.getJavaQName(), PUBLIC);
++ jm.addParam(JQName.INT.getJavaQName(), "position");
++ jm.addParam(jqname, element.getFieldName());
++ jm.addLine(element.getFieldList() + ".add(position, " + element.getFieldName() + ");");
++
+ // create getMethod
+ jm = source.newJavaMethod(element.getGetMethod(), jqname, PUBLIC);
+ jm.addParam(JQName.INT.getJavaQName(), "index");
+@@ -97,6 +103,13 @@
+ //create size method
+ jm = source.newJavaMethod(element.getSizeMethod(), JQName.INT.getJavaQName(), JavaSource.PUBLIC);
+ jm.addLine("return " + element.getFieldList() + ".size();");
++
++ //create clear method
++ jm = source.newJavaMethod(element.getClearMethod(), JQName.VOID.getJavaQName(), JavaSource.PUBLIC);
++ jm.addLine(element.getFieldList() + ".clear();");
++ //create unmodified method
++ jm = source.newJavaMethod(element.getListMethod(), "java.util.List", JavaSource.PUBLIC);
++ jm.addLine("return java.util.Collections.unmodifiableList("+element.getFieldList() + ");");
+ } else { // it is not a collection
+ newBeanProperty(element);
+ }
+Index: src/main/org/jibx/xsd2jibx/XsdElement.java
+===================================================================
+RCS file: /cvsroot/jibx/xsd2jibx/src/main/org/jibx/xsd2jibx/XsdElement.java,v
+retrieving revision 1.6
+diff -u -B -r1.6 XsdElement.java
+--- src/main/org/jibx/xsd2jibx/XsdElement.java 19 Feb 2005 20:02:31 -0000 1.6
++++ src/main/org/jibx/xsd2jibx/XsdElement.java 6 May 2007 21:16:33 -0000
+@@ -60,6 +60,12 @@
+ return sb.toString();
+ }
+
++ public String getAddPositionMethod() {
++ StringBuffer sb = new StringBuffer("addAt");
++ sb.append(NameUtil.toUpperCamelCase(getJavaName()));
++ return sb.toString();
++ }
++
+ public String getSizeMethod() {
+ StringBuffer sb = new StringBuffer("size");
+ sb.append(NameUtil.toUpperCamelCase(getJavaName()));
+@@ -67,6 +73,19 @@
+ return sb.toString();
+ }
+
++ public String getClearMethod() {
++ StringBuffer sb = new StringBuffer("clear");
++ sb.append(NameUtil.toUpperCamelCase(getJavaName()));
++ sb.append(NameUtil.addListSuffix);
++ return sb.toString();
++ }
++ public String getListMethod() {
++ StringBuffer sb = new StringBuffer("getList");
++ sb.append(NameUtil.toUpperCamelCase(getJavaName()));
++ sb.append(NameUtil.addListSuffix);
++ return sb.toString();
++ }
++
+ protected void importRef() {
+
+ if (this.ref != null) {
diff --git a/dev-java/xsd2jibx/metadata.xml b/dev-java/xsd2jibx/metadata.xml
new file mode 100644
index 000000000000..838c00a4a448
--- /dev/null
+++ b/dev-java/xsd2jibx/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>
diff --git a/dev-java/xsd2jibx/xsd2jibx-0.2a_beta.ebuild b/dev-java/xsd2jibx/xsd2jibx-0.2a_beta.ebuild
new file mode 100644
index 000000000000..4435f3f4236e
--- /dev/null
+++ b/dev-java/xsd2jibx/xsd2jibx-0.2a_beta.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/xsd2jibx/xsd2jibx-0.2a_beta.ebuild,v 1.1 2007/05/07 10:58:46 caster Exp $
+
+JAVA_PKG_IUSE="doc source"
+inherit java-pkg-2 java-ant-2
+
+MY_PV="beta2a"
+
+DESCRIPTION="JiBX binding and code from schema generator"
+HOMEPAGE="http://jibx.sourceforge.net/xsd2jibx/"
+SRC_URI="mirror://sourceforge/jibx/${PN}-${MY_PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+COMMON_DEP="dev-java/commons-logging
+ dev-java/xpp3
+ dev-java/ant-core
+ dev-java/jaxme
+ dev-java/jibx
+ =dev-java/commons-lang-2.0*"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ cp "${FILESDIR}/build.xml" .
+ # patch from freemind authors, freemind won't build without it
+ # they sent upstream (that's how I found it) which said he's preparing
+ # complete rewrite. It only adds non-abstract functionality.
+ epatch "${FILESDIR}/${P}-freemind.patch"
+
+ cd "${S}/lib"
+ rm -v *.jar
+ java-pkg_jar-from commons-logging,xpp3,ant-core,jaxme,jibx,commons-lang
+}
+
+EANT_ANT_TASKS="jibx"
+EANT_EXTRA_ARGS="-Djibxhome=/usr/share/jibx/"
+
+src_install() {
+ java-pkg_dojar lib/${PN}.jar
+
+ dohtml -R docs/*
+ use doc && java-pkg_dojavadoc api
+ use source && java-pkg_dosrc src/main/org
+}