From 3db6ff8458d117c8b4eedee96cbad961c1ad7d14 Mon Sep 17 00:00:00 2001 From: Danilo Egea Gondolfo Date: Mon, 9 Dec 2013 13:35:01 +0000 Subject: [PATCH] - Remove MASTER_SITES sources, distfile unavailable. - Add stage support - Add DOCS and EXAMPLES options --- misc/quotes/Makefile | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/misc/quotes/Makefile b/misc/quotes/Makefile index d8a333ee2f02..13edac4698ea 100644 --- a/misc/quotes/Makefile +++ b/misc/quotes/Makefile @@ -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 +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