summaryrefslogtreecommitdiff
path: root/textproc/jaxup
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/jaxup')
-rw-r--r--textproc/jaxup/Makefile86
-rw-r--r--textproc/jaxup/distinfo2
-rw-r--r--textproc/jaxup/files/DOMXUpdater.java50
-rw-r--r--textproc/jaxup/files/build.xml61
-rw-r--r--textproc/jaxup/files/jaxup-xupdater.sh3
-rw-r--r--textproc/jaxup/files/patch-build.xml11
-rw-r--r--textproc/jaxup/pkg-descr12
7 files changed, 0 insertions, 225 deletions
diff --git a/textproc/jaxup/Makefile b/textproc/jaxup/Makefile
deleted file mode 100644
index 852fc48c7de8..000000000000
--- a/textproc/jaxup/Makefile
+++ /dev/null
@@ -1,86 +0,0 @@
-PORTNAME= jaxup
-PORTVERSION= 1.01
-PORTREVISION= 5
-CATEGORIES= textproc java
-MASTER_SITES= http://klomp.org/jaxup/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-src
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Java XUpdate engine
-WWW= https://klomp.org/jaxup/
-
-DEPRECATED= Abandonware and obsolete, last release in 2003
-EXPIRATION_DATE=2025-04-30
-
-BUILD_DEPENDS= ${JAR_DEPENDS}
-RUN_DEPENDS= ${JAR_DEPENDS}
-
-JAR_DEPENDS= ${JAVALIBDIR}/jdom.jar:java/jdom \
- ${JAVALIBDIR}/jaxen-full.jar:java/jaxen \
- ${JAVALIBDIR}/xercesImpl.jar:textproc/xerces-j
-
-USES= java:ant,run zip
-
-WRKSRC= ${WRKDIR}/${PORTNAME}
-
-DATADIR= ${JAVASHAREDIR}/${PORTNAME}
-
-OPTIONS_DEFINE= DOCS
-
-ALL_TARGET= jar
-DOCS_ALL_TARGET=docs
-
-PLIST_FILES+= %%DATADIR%%/jaxup-xupdater.jar bin/jaxup-xupdater \
- %%JAVAJARDIR%%/${PORTNAME}.jar
-
-PORTDOCS= LICENSE.txt api index.html jaxup_files xupdate-wd.html xupdate-wd_files
-
-.include <bsd.port.pre.mk>
-
-UTIL_CLASSPATH_JARS= jaxen-full saxpath xercesImpl
-UTIL_CLASSPATH!= ${ECHO_CMD} ${UTIL_CLASSPATH_JARS:S,^,${JAVALIBDIR}/,:S,$,.jar,} | ${TR} " " ":"
-
-.if ${PORT_OPTIONS:MDOCS}
-JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.[4-5] -maxdepth 1 -name api -type d 2>/dev/null || ${ECHO_CMD}) | ${TAIL} -n 1
-.if ${JDK_API} != ""
-MAKE_ARGS+= -Dj2se.apidocs="${JDK_API}"
-.endif
-JAXEN_API!= (${FIND} -s ${LOCALBASE}/share/doc/jaxen -maxdepth 1 -name javadoc -type d 2>/dev/null || ${ECHO_CMD}) | ${TAIL} -n 1
-.if ${JAXEN_API} != ""
-MAKE_ARGS+= -Djaxen.apidocs="${JAXEN_API}"
-.endif
-.endif
-
-post-extract:
- ${CP} ${FILESDIR}/build.xml ${WRKSRC}/
- ${CP} ${FILESDIR}/DOMXUpdater.java ${WRKDIR}/
- ${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g ; s,%%DATADIR%%,${DATADIR},g' \
- ${FILESDIR}/jaxup-xupdater.sh >${WRKDIR}/jaxup-xupdater
-
-post-build:
- @${ECHO_MSG} ">> Building utility classes..."
- cd ${WRKDIR} && ${JAVAC} -classpath "${UTIL_CLASSPATH}:${WRKSRC}/build/lib/jaxup.jar" DOMXUpdater.java
- ${ECHO_CMD} "Main-Class: DOMXUpdater" >${WRKDIR}/MANIFEST
- cd ${WRKDIR} && ${JAR} -cmf MANIFEST jaxup-xupdater.jar DOMXUpdater.class
-
-do-install:
- @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
- @${MKDIR} ${STAGEDIR}${JAVAJARDIR}
- ${INSTALL_DATA} ${WRKSRC}/build/lib/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
- @${ECHO_MSG} " [ DONE ]"
- @${ECHO_MSG} ">> Installing utility scripts and classes..."
- ${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKDIR}/jaxup-xupdater.jar ${STAGEDIR}${DATADIR}/
- ${INSTALL_SCRIPT} ${WRKDIR}/jaxup-xupdater ${STAGEDIR}${PREFIX}/bin/
- @${ECHO_MSG} " [ DONE ]"
-.if ${PORT_OPTIONS:MDOCS}
- @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- cd ${WRKSRC}/build/docs \
- && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
- ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${STAGEDIR}${DOCSDIR}/
- @${ECHO_MSG} " [ DONE ]"
-.endif
-
-.include <bsd.port.post.mk>
diff --git a/textproc/jaxup/distinfo b/textproc/jaxup/distinfo
deleted file mode 100644
index 8e8f13a340eb..000000000000
--- a/textproc/jaxup/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (jaxup-1.01-src.zip) = 06675a6ec3a943d878c824688ff9a3f24cbefa0c1747cfbf280bfaf83b85d7a6
-SIZE (jaxup-1.01-src.zip) = 1836884
diff --git a/textproc/jaxup/files/DOMXUpdater.java b/textproc/jaxup/files/DOMXUpdater.java
deleted file mode 100644
index 7cae303e8c1a..000000000000
--- a/textproc/jaxup/files/DOMXUpdater.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * DOMXUpdater: a command-line XUpdate processor.
- */
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-
-import org.apache.xml.serialize.OutputFormat;
-import org.apache.xml.serialize.XMLSerializer;
-import org.jaxen.dom.DocumentNavigator;
-import org.jaxup.dom.DOMDocumentUpdater;
-import org.jaxup.xupdate.XUpdate;
-import org.w3c.dom.Document;
-
-public class DOMXUpdater
-{
- public static void main(String[] args)
- {
- if (args.length != 2)
- {
- System.out.println("usage: DOMXUpdater <source document url> <XUpdate document url>");
- System.exit(1);
- }
-
- try
- {
- DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
- factory.setNamespaceAware(true);
- DocumentBuilder builder=factory.newDocumentBuilder();
-
- Document doc=builder.parse(args[0]);
- Document updateDoc=builder.parse(args[1]);
-
- XUpdate updater=new XUpdate(new DOMDocumentUpdater(), DocumentNavigator.getInstance());
- updater.runUpdate(doc, updateDoc.getDocumentElement());
-
- OutputFormat o=new OutputFormat("xml", "ISO-8859-1", true);
- o.setIndenting(true);
- o.setIndent(2);
- o.setPreserveSpace(true);
- XMLSerializer serial=new XMLSerializer(System.out, o);
- serial.serialize(doc);
- System.out.println();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- System.exit(1);
- }
- }
-}
diff --git a/textproc/jaxup/files/build.xml b/textproc/jaxup/files/build.xml
deleted file mode 100644
index 49711cd623d3..000000000000
--- a/textproc/jaxup/files/build.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<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/files/jaxup-xupdater.sh b/textproc/jaxup/files/jaxup-xupdater.sh
deleted file mode 100644
index 35208b9c3e69..000000000000
--- a/textproc/jaxup/files/jaxup-xupdater.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-%%LOCALBASE%%/bin/java -cp "`"%%LOCALBASE%%/bin/classpath"`:%%DATADIR%%/jaxup-xupdater.jar" "DOMXUpdater" "$@"
diff --git a/textproc/jaxup/files/patch-build.xml b/textproc/jaxup/files/patch-build.xml
deleted file mode 100644
index 1c6731ab361a..000000000000
--- a/textproc/jaxup/files/patch-build.xml
+++ /dev/null
@@ -1,11 +0,0 @@
---- build.xml.orig Thu Dec 9 14:14:21 2004
-+++ build.xml Thu Dec 9 14:16:44 2004
-@@ -57,6 +57,8 @@
- <javadoc destdir="${build.apidocs.dir}" windowtitle="${project.fullname}" author="true" version="true" use="true">
- <fileset dir="${src.java.dir}"/>
- <classpath refid="project.classpath"/>
-+ <link href="${jaxen.apidocs}"/>
-+ <link href="${j2se.apidocs}"/>
- </javadoc>
- </target>
-
diff --git a/textproc/jaxup/pkg-descr b/textproc/jaxup/pkg-descr
deleted file mode 100644
index a9c3c879e9fd..000000000000
--- a/textproc/jaxup/pkg-descr
+++ /dev/null
@@ -1,12 +0,0 @@
-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