1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Stage support

This commit is contained in:
Tim Bishop 2014-05-09 22:01:34 +00:00
parent 256e6797b3
commit 78e2945cc4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353527
3 changed files with 21 additions and 23 deletions

View File

@ -23,10 +23,9 @@ DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= jalbum.sh
NO_STAGE= yes
do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${TAR} -cf - * | ${TAR} -xf - -C ${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/jalbum.sh ${PREFIX}/bin/jalbum
${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${TAR} -cf - * | ${TAR} -xf - -C ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/jalbum.sh ${STAGEDIR}${PREFIX}/bin/jalbum
.include <bsd.port.mk>

View File

@ -6,34 +6,24 @@ PORTVERSION= 1.5.0
PORTREVISION= 1
CATEGORIES= irc java
MASTER_SITES= http://www.jibble.org/files/ \
ftp://ftp.i-scream.org/pub/www.jibble.org/files/ \
http://www.i-scream.org/pub/www.jibble.org/files/
MAINTAINER= tdb@FreeBSD.org
COMMENT= PircBot Java IRC Bot Framework
LICENSE= GPLv2
USES= zip
NO_BUILD= yes
NO_ARCH= yes
USE_JAVA= yes
NO_STAGE= yes
do-install:
${INSTALL_DATA} ${WRKSRC}/pircbot.jar ${JAVAJARDIR}
.ifndef(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${CP} -r ${WRKSRC}/javadocs/* ${DOCSDIR}/
.endif
SUB_FILES= pkg-message
SUB_LIST= JAVAJARDIR=${JAVAJARDIR}
post-install:
@${ECHO_MSG} " ---------------------------------------------------------------"
@${ECHO_MSG} " To use pircbot add ${JAVAJARDIR}/pircbot.jar to"
@${ECHO_MSG} " your classpath. A short tutorial can be found here:"
@${ECHO_MSG} " http://www.jibble.org/pircbot.php"
.ifndef(NOPORTDOCS)
@${ECHO_MSG} " pircbot javadoc documentation has also been installed in:"
@${ECHO_MSG} " ${DOCSDIR}"
.endif
@${ECHO_MSG} " ---------------------------------------------------------------"
do-install:
${INSTALL_DATA} ${WRKSRC}/pircbot.jar ${STAGEDIR}${JAVAJARDIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -r ${WRKSRC}/javadocs/* ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>

View File

@ -0,0 +1,9 @@
---------------------------------------------------------------
To use pircbot add %%JAVAJARDIR%%/pircbot.jar to
your classpath. A short tutorial can be found here:
http://www.jibble.org/pircbot.php
If you have the DOCS option enabled the pircbot javadoc
documentation will also have been installed in:
%%DOCSDIR%%
---------------------------------------------------------------