diff options
author | hq <hq@FreeBSD.org> | 2004-11-17 03:02:13 +0000 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2004-11-17 03:02:13 +0000 |
commit | 6e09698229326176d348cd05ba8557fba5072988 (patch) | |
tree | 285472c6e1848aa9d2161d2a9299e7e051d52f9f /textproc | |
parent | 722c6033fec8c159e1ed3127f730f815f0b77b79 (diff) | |
download | FreeBSD-ports-6e09698229326176d348cd05ba8557fba5072988.zip FreeBSD-ports-6e09698229326176d348cd05ba8557fba5072988.tar.gz |
A Java XML Update engine
Jaxup defines an interface to update XML documents, through which clients can
work without knowledge of the exact object model that the document uses. The
interface is called Updater, and the idea behind it is the same as with Jaxen's
Navigator interface. In addition, an implementation of xmldb.org's proposed
XUpdate specification is provided. The implementation is in the XUpdate class.
Implementations of the Updater interface are provided for the following object
models:
- DOM
- Dom4j
- JDom
WWW: http://klomp.org/jaxup/
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/jaxup/Makefile | 56 | ||||
-rw-r--r-- | textproc/jaxup/distinfo | 2 | ||||
-rw-r--r-- | textproc/jaxup/files/build.xml | 63 | ||||
-rw-r--r-- | textproc/jaxup/pkg-descr | 14 |
5 files changed, 136 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index c9f2499..7d5a70c 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -174,6 +174,7 @@ SUBDIR += jade SUBDIR += java2html SUBDIR += javacc + SUBDIR += jaxup SUBDIR += jdictionary SUBDIR += jdictionary-int-eng SUBDIR += jing diff --git a/textproc/jaxup/Makefile b/textproc/jaxup/Makefile new file mode 100644 index 0000000..f0370d7 --- /dev/null +++ b/textproc/jaxup/Makefile @@ -0,0 +1,56 @@ +# Ports collection makefile for: Jaxup +# Date created: 17 November 2004 +# Whom: Herve Quiroz <hq@FreeBSD.org> +# +# $FreeBSD$ + +PORTNAME= jaxup +PORTVERSION= 1.01 +CATEGORIES= textproc java +MASTER_SITES= http://klomp.org/jaxup/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= hq@FreeBSD.org +COMMENT= Java XUpdate engine + +RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \ + ${JAVALIBDIR}/jaxen-core.jar:${PORTSDIR}/java/jaxen \ + ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j + +USE_ZIP= yes +WRKSRC= ${WRKDIR}/${PORTNAME} + +USE_JAVA= yes +JAVA_VERSION= 1.3+ + +USE_ANT= yes +ALL_TARGET= jar +.if !defined(NOPORTDOCS) +ALL_TARGET+= docs +.endif + +PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar + +.if !defined(NOPORTDOCS) +PORTDOCS= LICENSE.txt api index.html jaxup_files xupdate-wd.html xupdate-wd_files +.endif + +post-extract: + @${CP} ${FILESDIR}/build.xml ${WRKSRC}/ + +do-install: + @${ECHO_MSG} -n ">> Installing JAR files as ${JAVAJARDIR}/${PORTNAME}.jar..." + @${MKDIR} ${JAVAJARDIR} + @${INSTALL_DATA} ${WRKSRC}/build/lib/${PORTNAME}.jar ${JAVAJARDIR}/ + @${ECHO_MSG} " [ DONE ]" +.if !defined(NOPORTDOCS) + @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..." + @${MKDIR} ${DOCSDIR} + @cd ${WRKSRC}/build/docs \ + && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \ + && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; + @${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DOCSDIR}/ + @${ECHO_MSG} " [ DONE ]" +.endif + +.include <bsd.port.mk> diff --git a/textproc/jaxup/distinfo b/textproc/jaxup/distinfo new file mode 100644 index 0000000..483c061 --- /dev/null +++ b/textproc/jaxup/distinfo @@ -0,0 +1,2 @@ +MD5 (jaxup-1.01-src.zip) = b7ec19cdf4e27fb165a60782d986bdc2 +SIZE (jaxup-1.01-src.zip) = 1836884 diff --git a/textproc/jaxup/files/build.xml b/textproc/jaxup/files/build.xml new file mode 100644 index 0000000..bd3fa60 --- /dev/null +++ b/textproc/jaxup/files/build.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $FreeBSD$ --> + +<project name="jaxup" default="jar" basedir="."> + + <property name="project.version" value="1.01"/> + + <property name="build.dir" value="build"/> + <property name="build.classes.dir" value="${build.dir}/classes"/> + <property name="build.lib.dir" value="${build.dir}/lib"/> + <property name="build.docs.dir" value="${build.dir}/docs"/> + <property name="build.apidocs.dir" value="${build.docs.dir}/api"/> + <property name="src.dir" value="src"/> + <property name="src.java.dir" value="${src.dir}/java"/> + <property name="src.docs.dir" value="${src.dir}/doc"/> + <property name="src.tests.dir" value="${src.dir}/test"/> + <property name="lib.dir" value="lib"/> + <property name="project.fullname" value="${ant.project.name}-${project.version}"/> + <property name="jar.file" value="${build.lib.dir}/${ant.project.name}.jar"/> + + <path id="project.classpath"> + <pathelement path="${build.classes.dir}"/> + <fileset dir="${lib.dir}" includes="**.jar"/> + </path> + + <target name="build" description="Compile Core Java sources"> + <mkdir dir="${build.classes.dir}"/> + <javac srcdir="${src.java.dir}" destdir="${build.classes.dir}" deprecation="true" debug="Yes"> + <classpath refid="project.classpath"/> + </javac> + </target> + + <target name="clean" description="Delete built classes, docs, and JAR files"> + <delete dir="${build.dir}"/> + </target> + + <target name="rebuild" depends="clean, build" description="(Re)compile Java sources"/> + + <target name="jar" depends="build" description="Pack the JARs"> + <mkdir dir="${build.lib.dir}"/> + <jar destfile="${jar.file}"> + <manifest> + <attribute name="Built-By" value="${user.name}"/> + </manifest> + <fileset dir="${build.classes.dir}" includes="**/*.class"/> + </jar> + </target> + + <target name="docs" depends="apidocs" description="Build project docs"> + <copy todir="${build.docs.dir}"> + <fileset dir="${src.docs.dir}"/> + </copy> + </target> + + <target name="apidocs" depends="build" unless="noapidocs" description="Build the API docs (with javadoc)"> + <mkdir dir="${build.apidocs.dir}"/> + <javadoc destdir="${build.apidocs.dir}" windowtitle="${project.fullname}" author="true" version="true" use="true"> + <fileset dir="${src.java.dir}"/> + <classpath refid="project.classpath"/> + </javadoc> + </target> + +</project> diff --git a/textproc/jaxup/pkg-descr b/textproc/jaxup/pkg-descr new file mode 100644 index 0000000..9acaff3 --- /dev/null +++ b/textproc/jaxup/pkg-descr @@ -0,0 +1,14 @@ +Jaxup defines an interface to update XML documents, through which clients can +work without knowledge of the exact object model that the document uses. The +interface is called Updater, and the idea behind it is the same as with Jaxen's +Navigator interface. In addition, an implementation of xmldb.org's proposed +XUpdate specification is provided. The implementation is in the XUpdate class. + +Implementations of the Updater interface are provided for the following object +models: + + - DOM + - Dom4j + - JDom + +WWW: http://klomp.org/jaxup/ |