svn commit: r302278 - head/lang/whitespace
Gabor Pali
pgj at FreeBSD.org
Wed Aug 8 09:36:21 UTC 2012
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%%
More information about the svn-ports-all
mailing list