diff options
Diffstat (limited to 'textproc/xincluder')
-rw-r--r-- | textproc/xincluder/Makefile | 57 | ||||
-rw-r--r-- | textproc/xincluder/distinfo | 2 | ||||
-rw-r--r-- | textproc/xincluder/files/patch-src_com_elharo_xml_xinclude_JDOMXIncluder.java | 24 | ||||
-rw-r--r-- | textproc/xincluder/files/xincluder.sh.in | 13 | ||||
-rw-r--r-- | textproc/xincluder/pkg-descr | 2 |
5 files changed, 0 insertions, 98 deletions
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. |