Date: Wed, 8 Aug 2012 09:36:21 +0000 (UTC) From: Gabor Pali <pgj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r302278 - head/lang/whitespace Message-ID: <201208080936.q789aLQX067542@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pgj Date: Wed Aug 8 09:36:20 2012 New Revision: 302278 URL: http://svn.freebsd.org/changeset/ports/302278 Log: - Use the new options framework Obtained from: FreeBSD Haskell Modified: head/lang/whitespace/Makefile head/lang/whitespace/pkg-plist Modified: head/lang/whitespace/Makefile ============================================================================== --- head/lang/whitespace/Makefile Wed Aug 8 09:36:08 2012 (r302277) +++ head/lang/whitespace/Makefile Wed Aug 8 09:36:20 2012 (r302278) @@ -7,7 +7,7 @@ PORTNAME= whitespace PORTVERSION= 0.3 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= lang MASTER_SITES= http://compsoc.dur.ac.uk/whitespace/downloads/ DISTNAME= wspace-${PORTVERSION} @@ -26,13 +26,23 @@ WRKSRC= ${WRKDIR}/WSpace USE_GMAKE= yes ALL_TARGET= ${TARGET} +OPTIONS_DEFINE= DOCS EXAMPLES +OPTIONS_DEFAULT= DOCS EXAMPLES + +PORTEXAMPLES= * +PORTDOCS= * + +.include <bsd.port.options.mk> + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/wspace ${PREFIX}/bin post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR} +.endif +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/tutorial.html ${DOCSDIR} .endif Modified: head/lang/whitespace/pkg-plist ============================================================================== --- head/lang/whitespace/pkg-plist Wed Aug 8 09:36:08 2012 (r302277) +++ head/lang/whitespace/pkg-plist Wed Aug 8 09:36:20 2012 (r302278) @@ -1,11 +1 @@ bin/wspace -%%PORTDOCS%%%%DOCSDIR%%/tutorial.html -%%PORTDOCS%%%%EXAMPLESDIR%%/calc.ws -%%PORTDOCS%%%%EXAMPLESDIR%%/count.ws -%%PORTDOCS%%%%EXAMPLESDIR%%/fact.ws -%%PORTDOCS%%%%EXAMPLESDIR%%/hanoi.ws -%%PORTDOCS%%%%EXAMPLESDIR%%/hworld.ws -%%PORTDOCS%%%%EXAMPLESDIR%%/loctest.ws -%%PORTDOCS%%%%EXAMPLESDIR%%/name.ws -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% -%%PORTDOCS%%@dirrm %%DOCSDIR%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208080936.q789aLQX067542>