diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-01-08 20:39:22 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-01-08 20:39:22 +0000 |
commit | 32f1e44300ca752620f10aa664fa9216b1eb574f (patch) | |
tree | 119360474d5a9c718bb9a960814e23b2a653d71e /devel/apache-ant | |
parent | a31541b0d21af4529fd3ea09b9697366f9b1c4aa (diff) | |
download | ports-32f1e44300ca752620f10aa664fa9216b1eb574f.tar.gz ports-32f1e44300ca752620f10aa664fa9216b1eb574f.zip |
Notes
Diffstat (limited to 'devel/apache-ant')
-rw-r--r-- | devel/apache-ant/Makefile | 32 | ||||
-rw-r--r-- | devel/apache-ant/distinfo | 8 | ||||
-rw-r--r-- | devel/apache-ant/pkg-plist | 2 |
3 files changed, 22 insertions, 20 deletions
diff --git a/devel/apache-ant/Makefile b/devel/apache-ant/Makefile index 06ad9ced2a8d..4b89c38006be 100644 --- a/devel/apache-ant/Makefile +++ b/devel/apache-ant/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= apache-ant -PORTVERSION= 1.8.4 +PORTVERSION= 1.9.3 CATEGORIES= devel java MASTER_SITES= ${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/binaries/:bin,} \ LOCAL/hq:man @@ -17,6 +17,8 @@ LICENSE= APACHE20 RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper +OPTIONS_DEFINE= DOCS + ANT_DISTFILE= ${PORTNAME}-${PORTVERSION}-bin.tar.bz2 MANPAGE_DISTFILE= ${PORTNAME}-manpage-${MANPAGE_VERSION}.tgz MANPAGE_VERSION= 20030908 @@ -29,7 +31,9 @@ DATADIR= ${JAVASHAREDIR}/${PORTNAME} READMES= LICENSE README WHATSNEW -.if !defined(NOPORTDOCS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} DISTFILES+= ${PORTNAME}-${PORTVERSION}-manual.tar.bz2:doc MASTER_SITES+= ${MASTER_SITE_APACHE:S,%SUBDIR%/,ant/manual/:doc,} PORTDOCS= * @@ -40,42 +44,38 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MANPAGE_SUBDIR= apache-ant-manpage MANPAGE_WRKSRC= ${WRKSRC}/${MANPAGE_SUBDIR} -MAN1= ant.1 -MAN5= build.xml.5 - SUB_FILES= ant.sh -NO_STAGE= yes post-extract: @${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${MANPAGE_DISTFILE} do-install: @${ECHO_MSG} -n ">> Installing scripts..." - @${MKDIR} ${DATADIR}/bin - @${INSTALL_SCRIPT} ${WRKDIR}/ant.sh ${PREFIX}/bin/ant - @${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${DATADIR}/bin/ + @${MKDIR} ${STAGEDIR}${DATADIR}/bin + @${INSTALL_SCRIPT} ${WRKDIR}/ant.sh ${STAGEDIR}${PREFIX}/bin/ant + @${INSTALL_SCRIPT} ${WRKSRC}/bin/antRun ${STAGEDIR}${DATADIR}/bin/ @${ECHO_MSG} " [ DONE ]" .for d in etc lib @${ECHO_MSG} -n ">> Installing data directory '${d}'..." - @cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}/ + @cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}/ @${ECHO_MSG} " [ DONE ]" .endfor @${ECHO_MSG} -n ">> Installing manpages..." - @${INSTALL_MAN} ${MANPAGE_WRKSRC}/ant.1 ${MAN1PREFIX}/man/man1 - @${INSTALL_MAN} ${MANPAGE_WRKSRC}/build.xml.5 ${MAN5PREFIX}/man/man5 + @${INSTALL_MAN} ${MANPAGE_WRKSRC}/ant.1 ${STAGEDIR}${PREFIX}/man/man1 + @${INSTALL_MAN} ${MANPAGE_WRKSRC}/build.xml.5 ${STAGEDIR}${PREFIX}/man/man5 @${ECHO_MSG} " [ DONE ]" -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} @${ECHO_MSG} -n ">> Installing readme files..." - @${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${DOCSDIR} + @${INSTALL_DATA} ${READMES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} @${ECHO_MSG} " [ DONE ]" @${ECHO_MSG} -n ">> Installing documentation files..." - @cd ${WRKSRC} && ${COPYTREE_SHARE} manual ${DOCSDIR}/ + @cd ${WRKSRC} && ${COPYTREE_SHARE} manual ${STAGEDIR}${DOCSDIR}/ @${ECHO_MSG} " [ DONE ]" .endif diff --git a/devel/apache-ant/distinfo b/devel/apache-ant/distinfo index 4e41f7d87d68..98dcb5c37122 100644 --- a/devel/apache-ant/distinfo +++ b/devel/apache-ant/distinfo @@ -1,6 +1,6 @@ -SHA256 (apache-ant-1.8.4-bin.tar.bz2) = aeaed7d5c2b1e73ffc195d713931047ecc113b8c9844df5cbac2797007455069 -SIZE (apache-ant-1.8.4-bin.tar.bz2) = 4257152 +SHA256 (apache-ant-1.9.3-bin.tar.bz2) = ca14a31b2b47edd069624520f64957ad502c0905421da5f46dd41229b8ba4cbf +SIZE (apache-ant-1.9.3-bin.tar.bz2) = 4320310 SHA256 (apache-ant-manpage-20030908.tgz) = 721981f64fae3577c04c527232edab9bfa0755af08319049cec206584dc8830c SIZE (apache-ant-manpage-20030908.tgz) = 9735 -SHA256 (apache-ant-1.8.4-manual.tar.bz2) = d3f47ee52f9b8e75279d259106232da9c3919fb7ea9f9e48bd3f2c7a0303716e -SIZE (apache-ant-1.8.4-manual.tar.bz2) = 1875282 +SHA256 (apache-ant-1.9.3-manual.tar.bz2) = 0e0cbeea81967fb965050eb2b5a917fc96d14d9d94be7584f38c2b5e4d01825e +SIZE (apache-ant-1.9.3-manual.tar.bz2) = 1911505 diff --git a/devel/apache-ant/pkg-plist b/devel/apache-ant/pkg-plist index 020923503a44..a560795fb867 100644 --- a/devel/apache-ant/pkg-plist +++ b/devel/apache-ant/pkg-plist @@ -1,5 +1,7 @@ @comment $FreeBSD$ bin/ant +man/man1/ant.1.gz +man/man5/build.xml.5.gz %%DATADIR%%/bin/antRun %%DATADIR%%/etc/ant-bootstrap.jar %%DATADIR%%/etc/changelog.xsl |