Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Dec 2013 13:35:02 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r335982 - head/misc/quotes
Message-ID:  <201312091335.rB9DZ2qT019932@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Mon Dec  9 13:35:01 2013
New Revision: 335982
URL: http://svnweb.freebsd.org/changeset/ports/335982

Log:
  - Remove MASTER_SITES sources, distfile unavailable.
  - Add stage support
  - Add DOCS and EXAMPLES options

Modified:
  head/misc/quotes/Makefile

Modified: head/misc/quotes/Makefile
==============================================================================
--- head/misc/quotes/Makefile	Mon Dec  9 13:24:51 2013	(r335981)
+++ head/misc/quotes/Makefile	Mon Dec  9 13:35:01 2013	(r335982)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312091335.rB9DZ2qT019932>