- 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
This commit is contained in:
Herve Quiroz 2005-10-03 13:35:23 +00:00
parent 95f1dbb4c5
commit a921804a53
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144060
2 changed files with 19 additions and 7 deletions

View file

@ -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 <bsd.port.mk>

View file

@ -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