From 701f289a2408423945c99ce7fc6e78b6b66bfbe4 Mon Sep 17 00:00:00 2001 From: hq Date: Mon, 3 Oct 2005 13:35:23 +0000 Subject: - Build classes/JAR file from source instead of downloading the JAR file - Generate and install API documentation from source, too - Bump PORTREVISION as new files are installed PR: 86597 Submitted by: maintainer --- devel/itext/Makefile | 22 +++++++++++++++++----- devel/itext/distinfo | 4 ++-- 2 files changed, 19 insertions(+), 7 deletions(-) (limited to 'devel') diff --git a/devel/itext/Makefile b/devel/itext/Makefile index 81839472b9ff..3cbe52b8267d 100644 --- a/devel/itext/Makefile +++ b/devel/itext/Makefile @@ -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@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 diff --git a/devel/itext/distinfo b/devel/itext/distinfo index de0cdccb068f..92826e54bb7e 100644 --- a/devel/itext/distinfo +++ b/devel/itext/distinfo @@ -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 -- cgit