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

- Remove MASTER_SITES sources, distfile unavailable.

- Add stage support
- Add DOCS and EXAMPLES options
This commit is contained in:
Danilo Egea Gondolfo 2013-12-09 13:35:01 +00:00
parent 837edc5150
commit 3db6ff8458
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=335982

View File

@ -5,9 +5,7 @@ PORTNAME= quotes
DISTVERSION= 1.7-2
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_TUCOWS} \
http://freebsd.unixfreunde.de/sources/
MASTER_SITE_SUBDIR= console/office
MASTER_SITES= #
MAINTAINER= ports@FreeBSD.org
COMMENT= Quote, currency, and Slashdot headline fetcher based on Perl
@ -16,24 +14,19 @@ NO_BUILD= yes
USES= shebangfix perl5
SHEBANG_FILES= quotes quotesmailer QuExample.pm
NO_STAGE= yes
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -i '' -e "s:/usr/local/lib/Quotes:${PREFIX}/etc:" \
-e "s:/usr/local:${PREFIX}:" ${WRKSRC}/quotes
do-install:
@ ${INSTALL_SCRIPT} ${WRKSRC}/quotes ${PREFIX}/bin
@ ${INSTALL_SCRIPT} ${WRKSRC}/quotesmailer ${PREFIX}/bin
@ ${INSTALL_DATA} ${WRKSRC}/sample.quotesrc ${PREFIX}/etc/quotesrc.sample
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ ${INSTALL_DATA} ${WRKSRC}/quotes.txt ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@ ${MKDIR} ${EXAMPLESDIR}
@ ${INSTALL_DATA} ${WRKSRC}/QuExample.pm ${EXAMPLESDIR}
.endif
${INSTALL_SCRIPT} ${WRKSRC}/quotes ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/quotesmailer ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/sample.quotesrc ${STAGEDIR}${PREFIX}/etc/quotesrc.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/quotes.txt ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/QuExample.pm ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>