mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Update 0.20.3 -> 0.20.4. And additional modifications as follows:
o USE_JAVA=1.2+ and NO_BUILD_DEPENDS_JAVA o Fop installs DOCSDIR and DATADIR going around bsd.port.mk o fop.sh script suited to FreeBSD and install ${PREFIX}/bin/fop
This commit is contained in:
parent
114ce8a69d
commit
717e8f0a4b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=64331
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= fop
|
||||
PORTVERSION= 0.20.3
|
||||
PORTVERSION= 0.20.4
|
||||
CATEGORIES= textproc java
|
||||
MASTER_SITES= http://xml.apache.org/dist/fop/ \
|
||||
http://xml.apache.org/dist/fop/recent/
|
||||
@ -14,28 +14,30 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
|
||||
MAINTAINER= kiri@FreeBSD.org
|
||||
|
||||
RUN_DEPENDS= ${LOCALBASE}/jdk${JDKVERSION}/bin/java:${PORTSDIR}/java/jdk11 \
|
||||
${LOCALBASE}/share/java/classes/xerces.jar:${PORTSDIR}/textproc/xerces-j
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
||||
NO_BUILD= yes
|
||||
PLIST_SUB= PORTVERSION="${PORTVERSION}"
|
||||
|
||||
JDKVERSION= 1.1.8
|
||||
JAVACLASSDIR= ${PREFIX}/share/java/classes
|
||||
JAVADATADIR= ${PREFIX}/share/java/${PKGNAME}
|
||||
USE_JAVA= 1.2+
|
||||
NO_BUILD_DEPENDS_JAVA= YES
|
||||
|
||||
JAVA_LIBDIR= ${PREFIX}/share/java/classes
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${JAVACLASSDIR} ${JAVADATADIR}
|
||||
${MKDIR} ${JAVA_LIBDIR} ${DATADIR} ${DOCSDIR}
|
||||
find ${WRKSRC} \( -name \*.orig -o -name \*~ -o -name CVS \) -exec ${RM} -rf \{} \;
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC}; \
|
||||
${INSTALL_DATA} build/fop.jar lib/batik.jar lib/stylebook.jar \
|
||||
${JAVACLASSDIR}; \
|
||||
${INSTALL_DATA} build/fop.jar ${JAVA_LIBDIR}; \
|
||||
${INSTALL_DATA} CHANGES LICENSE README ReleaseNotes.html \
|
||||
STATUS build.xml buildtools.xml ${JAVADATADIR}; \
|
||||
${INSTALL_SCRIPT} build.sh fop.sh ${JAVADATADIR}; \
|
||||
${CP} -R conf docs hyph javadocs lib src ${JAVADATADIR}
|
||||
STATUS build.xml buildtools.xml ${DATADIR}; \
|
||||
${INSTALL_SCRIPT} build.sh fop.sh ${DATADIR}; \
|
||||
${LN} -sf ${DATADIR}/fop.sh ${PREFIX}/bin/fop; \
|
||||
${CP} -R build conf hyph lib ${DATADIR}
|
||||
.if !defined(NOPORTDOCS)
|
||||
(cd ${WRKSRC}/docs && \
|
||||
${TAR} -cf - . | ${TAR} -xf - -C ${DOCSDIR})
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (fop-0.20.3-src.tar.gz) = a73b14262fb39df1cb95af4b8f36a6ba
|
||||
MD5 (fop-0.20.4-src.tar.gz) = e91accadc15c67a6c365f0ffbf2c38cc
|
||||
|
40
textproc/fop/files/patch-aa
Normal file
40
textproc/fop/files/patch-aa
Normal file
@ -0,0 +1,40 @@
|
||||
--- fop.sh.orig Sat Jul 6 03:06:22 2002
|
||||
+++ fop.sh Sat Aug 3 14:45:50 2002
|
||||
@@ -1,5 +1,28 @@
|
||||
#! /bin/sh
|
||||
#
|
||||
+# Common variables
|
||||
+PREFIX=/usr/local
|
||||
+
|
||||
+# Default JAVACMD, JAVA_HOME, FOP_HOME
|
||||
+JAVACMD=${JAVACMD:-`which javavm`}
|
||||
+if [ -f ${PREFIX}/etc/javavms ]; then
|
||||
+ JAVA_HOME=`head -1 /usr/local/etc/javavms | sed -e 's,/bin/java *#.*$,,'`
|
||||
+elif [ -n "`echo ${PREFIX}/jdk*/bin/java 2> /dev/null`" ]; then
|
||||
+ JAVA_HOME=`ls -d /usr/local/jdk*/bin/java | sort -r | head -1 | sed -e 's,/bin/java *$,,'`
|
||||
+fi
|
||||
+SHAREDIR=${PREFIX}/share
|
||||
+FOP_HOME=${SHAREDIR}/fop
|
||||
+DIRLIBS="\
|
||||
+ ${FOP_HOME}/lib/xalan-2.3.1.jar
|
||||
+ ${FOP_HOME}/lib/ant-1.4.1.jar
|
||||
+ ${FOP_HOME}/lib/avalon-framework-cvs-20020315.jar
|
||||
+ ${FOP_HOME}/lib/batik.jar
|
||||
+ ${FOP_HOME}/lib/bsf.jar
|
||||
+ ${FOP_HOME}/lib/buildtools.jar
|
||||
+ ${FOP_HOME}/lib/stylebook.jar
|
||||
+ ${FOP_HOME}/lib/xercesImpl-2.0.1.jar
|
||||
+ ${FOP_HOME}/lib/xml-apis.jar"
|
||||
+
|
||||
# Shell script to run FOP, adapted from the Jakarta-Ant project.
|
||||
|
||||
if [ -f $HOME/.foprc ] ; then
|
||||
@@ -79,7 +102,7 @@
|
||||
LOCALCLASSPATH=${FOP_HOME}/build/fop.jar:$LOCALCLASSPATH
|
||||
|
||||
# add in the dependency .jar files, which reside in $FOP_HOME/lib
|
||||
-DIRLIBS=${FOP_HOME}/lib/*.jar
|
||||
+
|
||||
for i in ${DIRLIBS}
|
||||
do
|
||||
# if the directory is empty, then it will return the input string
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user