ports/86597: [MAINTAINER] devel/itext: build from source, install API docs
Stefan Walter
sw at gegenunendlich.de
Mon Sep 26 13:30:19 UTC 2005
>Number: 86597
>Category: ports
>Synopsis: [MAINTAINER] devel/itext: build from source, install API docs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 26 13:30:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Stefan Walter
>Release: FreeBSD 5.4-STABLE i386
>Organization:
Infinity Approximation Task Force
>Environment:
System: FreeBSD kyuzo.dunkelkammer.void 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Aug 31 13:11:39 CEST 2005
>Description:
- build classes/JAR file from source instead of downloading the JAR file
- generate and install API documentation from source, too
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- itext-1.3.4_1,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/cvs/FreeBSD/ports/devel/itext/Makefile,v
retrieving revision 1.9
diff -u -u -r1.9 Makefile
--- Makefile 22 Sep 2005 17:16:01 -0000 1.9
+++ Makefile 26 Sep 2005 13:19:02 -0000
@@ -8,24 +8,36 @@
PORTNAME= itext
PORTVERSION= 1.3.4
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-${PORTVERSION}
-EXTRACT_SUFX= .jar
+DISTNAME= ${PORTNAME}-src-${PORTVERSION}
MAINTAINER= sw at gegenunendlich.de
COMMENT= A Java-PDF Library
+WRKSRC= ${WRKDIR}/src
+EXTRACT_AFTER_ARGS= | (${MKDIR} ${WRKSRC} && ${TAR} -xf - -C ${WRKSRC})
USE_JAVA= yes
JAVA_VERSION= 1.2+
-NO_BUILD= yes
-EXTRACT_ONLY= # empty
+USE_ANT= yes
+ALL_TARGET= jar
+.if !defined(NOPORTDOCS)
+ALL_TARGET+= javadoc
+PORTDOCS= *
+.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
do-install:
- ${INSTALL_DATA} ${_DISTDIR}/${DISTFILES} ${JAVAJARDIR}/${PORTNAME}.jar
+ @${INSTALL_DATA} ${WRKDIR}/build/bin/iText.jar \
+ ${JAVAJARDIR}/${PORTNAME}.jar
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}/apidocs
+ @${CP} -R ${WRKDIR}/build/docs/* ${DOCSDIR}/apidocs
+ @${CHOWN} -h -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/apidocs
+.endif
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/cvs/FreeBSD/ports/devel/itext/distinfo,v
retrieving revision 1.5
diff -u -u -r1.5 distinfo
--- distinfo 22 Sep 2005 17:16:01 -0000 1.5
+++ distinfo 26 Sep 2005 11:33:03 -0000
@@ -1,2 +1,2 @@
-MD5 (itext-1.3.4.jar) = 64477c3f3185cf8311119a5f4327b9a6
-SIZE (itext-1.3.4.jar) = 1207354
+MD5 (itext-src-1.3.4.tar.gz) = 0dcb961b30f1b4a8c1eb93e1f445897c
+SIZE (itext-src-1.3.4.tar.gz) = 1024724
--- itext-1.3.4_1,1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list