git: de61948ffdaf - main - textproc/xincluder: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Fri, 06 Jun 2025 22:00:53 UTC
The branch main has been updated by rene:

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

commit de61948ffdaf0538a94692d1c87b80f8db03a8a9
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-06-06 22:00:49 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-06-06 22:00:49 +0000

    textproc/xincluder: Remove expired port
    
    2025-06-04 textproc/xincluder: Depends on expiring java/jdom
---
 MOVED                                              |  1 +
 textproc/Makefile                                  |  1 -
 textproc/xincluder/Makefile                        | 57 ----------------------
 textproc/xincluder/distinfo                        |  2 -
 ...-src_com_elharo_xml_xinclude_JDOMXIncluder.java | 24 ---------
 textproc/xincluder/files/xincluder.sh.in           | 13 -----
 textproc/xincluder/pkg-descr                       |  2 -
 7 files changed, 1 insertion(+), 99 deletions(-)

diff --git a/MOVED b/MOVED
index 4cd94691d099..d598d16072b6 100644
--- a/MOVED
+++ b/MOVED
@@ -4499,3 +4499,4 @@ lang/ghc810||2025-06-04|Old version, unsupported upstream
 audio/mp3check||2025-06-06|Has expired: Depends on expired audio/id3tool
 audio/id3tool||2025-06-06|Has expired: Can't read ID3v2 tags which have been around for 20+ years and discontinued in 2005 feature-wise according to readme file
 science/py-pysal||2025-06-06|Has expired: Depends on expired math/py-spvcm
+textproc/xincluder||2025-06-06|Has expired: Depends on expiring java/jdom
diff --git a/textproc/Makefile b/textproc/Makefile
index d5dbf2222db5..9d969abcb64c 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -2149,7 +2149,6 @@
     SUBDIR += xhtml-basic
     SUBDIR += xhtml-modularization
     SUBDIR += xhtml1-xsd
-    SUBDIR += xincluder
     SUBDIR += xlhtml
     SUBDIR += xlnt
     SUBDIR += xlreader
diff --git a/textproc/xincluder/Makefile b/textproc/xincluder/Makefile
deleted file mode 100644
index e47c71337daa..000000000000
--- a/textproc/xincluder/Makefile
+++ /dev/null
@@ -1,57 +0,0 @@
-PORTNAME=	xincluder
-PORTVERSION=	1.0.d11
-PORTREVISION=	8
-CATEGORIES=	textproc java
-MASTER_SITES=	ftp://ftp.ibiblio.org/pub/languages/java/javafaq/
-DISTNAME=	${PORTNAME}-1.0d11
-
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Java-based XInclude processors
-WWW=		https://xincluder.sourceforge.net/
-
-LICENSE=	LGPL21
-LICENSE_FILE=	${WRKSRC}/lgpl.txt
-
-DEPRECATED=	Depends on expiring java/jdom
-EXPIRATION_DATE=2025-06-04
-
-BUILD_DEPENDS=	${JAVALIBDIR}/jdom.jar:java/jdom \
-		${JAVALIBDIR}/xercesImpl.jar:textproc/xerces-j
-RUN_DEPENDS=	${JAVALIBDIR}/jdom.jar:java/jdom \
-		${JAVALIBDIR}/xercesImpl.jar:textproc/xerces-j
-
-USES=		java:ant,run
-
-ALL_TARGET=	clean jar
-NO_ARCH=	yes
-
-WRKSRC=		${WRKDIR}/${PORTNAME}
-
-SUFFIXES=	-sax -dom -jdom
-PLIST_FILES=	${JAVAJARDIR}/${PORTNAME}.jar bin/xincluder ${SUFFIXES:S,^,bin/xincluder,}
-PORTDOCS=	apidoc index.html
-SUB_FILES=	xincluder.sh
-
-OPTIONS_DEFINE=	DOCS
-
-post-patch:
-	@${REINPLACE_CMD} \
-		-e "s,\./lib/jdom-1.0b9rc.jar,${JAVAJARDIR}/jdom.jar," \
-		-e "s,\./lib/xercesImpl-2.0.2.jar,${JAVAJARDIR}/xercesImpl.jar," \
-		-e "s,\./lib/xmlParserAPIs-2.0.2.jar,${JAVAJARDIR}/xml-apis.jar," \
-		-e 's,<javac srcdir,<javac source="1.8" target="1.8" debug="true" \
-			includeantruntime="false" srcdir,' \
-		${WRKSRC}/build.xml
-
-do-install:
-	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
-	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${STAGEDIR}${JAVAJARDIR}/
-	${INSTALL_SCRIPT} ${WRKDIR}/xincluder.sh ${STAGEDIR}${PREFIX}/bin/xincluder
-.for suffix in ${SUFFIXES}
-	${LN} -s xincluder ${STAGEDIR}${PREFIX}/bin/xincluder${suffix}
-.endfor
-
-do-install-DOCS-on:
-	@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
-
-.include <bsd.port.mk>
diff --git a/textproc/xincluder/distinfo b/textproc/xincluder/distinfo
deleted file mode 100644
index 7bcaa5e388e8..000000000000
--- a/textproc/xincluder/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (xincluder-1.0d11.tar.gz) = a46808b9392b521efec9cf89f8340ce22a06b538ec031f9452856a9342fe4bfd
-SIZE (xincluder-1.0d11.tar.gz) = 1939686
diff --git a/textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java b/textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java
deleted file mode 100644
index 6f0ff222e753..000000000000
--- a/textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java
+++ /dev/null
@@ -1,24 +0,0 @@
---- src/com/elharo/xml/xinclude/JDOMXIncluder.java.orig	2003-03-09 16:01:34 UTC
-+++ src/com/elharo/xml/xinclude/JDOMXIncluder.java
-@@ -54,6 +54,7 @@ import org.jdom.CDATA;
- import org.jdom.Namespace;
- import org.jdom.Comment;
- import org.jdom.CDATA;
-+import org.jdom.DocType;
- import org.jdom.Text;
- import org.jdom.JDOMException;
- import org.jdom.Attribute;
-@@ -404,6 +405,13 @@ public class JDOMXIncluder {
-                 // I need to return the full document child list including comments and PIs, 
-                 // not just the resolved root
-                 List topLevelNodes = doc.getContent();
-+                for (int i = 0; i < topLevelNodes.size(); i++) {
-+                    Object o = topLevelNodes.get(i);
-+                    if (o instanceof DocType) {
-+                      DocType docType = (DocType) o;
-+                      docType.detach();     
-+                    } 
-+                }
-                 int rootPosition = topLevelNodes.indexOf(root);
-                 List beforeRoot = topLevelNodes.subList(0, rootPosition);
-                 List afterRoot = topLevelNodes.subList(rootPosition+1, topLevelNodes.size());
diff --git a/textproc/xincluder/files/xincluder.sh.in b/textproc/xincluder/files/xincluder.sh.in
deleted file mode 100644
index 9c77b549fd8b..000000000000
--- a/textproc/xincluder/files/xincluder.sh.in
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-IAM=`basename "$0"`
-
-case "${IAM}" in
-	xincluder-sax) MAIN_CLASS=SAXXIncluder ;;
-	xincluder-dom) MAIN_CLASS=DOMXIncluder ;;
-	xincluder-jdom) MAIN_CLASS=JDOMXIncluder ;;
-	xincluder) MAIN_CLASS=SAXXIncluder ;;
-	*) echo "ERROR!" ; false ;;
-esac
-
-"%%LOCALBASE%%/bin/java" -cp "`"%%LOCALBASE%%/bin/classpath"`" "com.elharo.xml.xinclude.${MAIN_CLASS}" "$@"
diff --git a/textproc/xincluder/pkg-descr b/textproc/xincluder/pkg-descr
deleted file mode 100644
index 35afb6fa5478..000000000000
--- a/textproc/xincluder/pkg-descr
+++ /dev/null
@@ -1,2 +0,0 @@
-Java-based XInclude processors. This package contains 3 different
-XInclude processor implementations, based on SAX, DOM and JDOM.