git: ee36b0932f12 - main - textproc/jaxup: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sun, 04 May 2025 11:26:55 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ee36b0932f12b5c8928f390690417b498fd12b36

commit ee36b0932f12b5c8928f390690417b498fd12b36
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-05-04 11:26:50 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-05-04 11:26:50 +0000

    textproc/jaxup: Remove expired port
    
    2025-04-30 textproc/jaxup: Abandonware and obsolete, last release in 2003
---
 MOVED                                  |  1 +
 textproc/Makefile                      |  1 -
 textproc/jaxup/Makefile                | 86 ----------------------------------
 textproc/jaxup/distinfo                |  2 -
 textproc/jaxup/files/DOMXUpdater.java  | 50 --------------------
 textproc/jaxup/files/build.xml         | 61 ------------------------
 textproc/jaxup/files/jaxup-xupdater.sh |  3 --
 textproc/jaxup/files/patch-build.xml   | 11 -----
 textproc/jaxup/pkg-descr               | 12 -----
 9 files changed, 1 insertion(+), 226 deletions(-)

diff --git a/MOVED b/MOVED
index 21b11f9d6ee4..ecdfe8c0f4fb 100644
--- a/MOVED
+++ b/MOVED
@@ -4358,3 +4358,4 @@ textproc/p5-Search-Saryer||2025-05-04|Has expired: Depends on deprecated port te
 textproc/sary||2025-05-04|Has expired: Last release in 2005 and unmaintained in tree for years
 textproc/mifluz||2025-05-04|Has expired: Obsolete, no activity upstream since 2014 and unmaintained in tree for years
 textproc/atom||2025-05-04|Has expired: Upstream is gone and utility is considered obsolete
+textproc/jaxup||2025-05-04|Has expired: Abandonware and obsolete, last release in 2003
diff --git a/textproc/Makefile b/textproc/Makefile
index 7a680d3401f5..0caa4e37f118 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -339,7 +339,6 @@
     SUBDIR += jalingo
     SUBDIR += jaq
     SUBDIR += jarnal
-    SUBDIR += jaxup
     SUBDIR += jdictionary
     SUBDIR += jdictionary-int-eng
     SUBDIR += jid
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