aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2012-08-08 17:36:20 +0800
committerpgj <pgj@FreeBSD.org>2012-08-08 17:36:20 +0800
commitcb1f952d0368197e6f38b67e418a70b3160ca6e3 (patch)
tree7bf46f0ea310f44de04b682300533fb77fecdbe1 /lang
parent57f13151dc6d6b6713464ef15c10e0cb06cfa048 (diff)
downloadfreebsd-ports-graphics-cb1f952d0368197e6f38b67e418a70b3160ca6e3.tar.gz
freebsd-ports-graphics-cb1f952d0368197e6f38b67e418a70b3160ca6e3.tar.zst
freebsd-ports-graphics-cb1f952d0368197e6f38b67e418a70b3160ca6e3.zip
- Use the new options framework
Obtained from: FreeBSD Haskell
Diffstat (limited to 'lang')
-rw-r--r--lang/whitespace/Makefile14
-rw-r--r--lang/whitespace/pkg-plist10
2 files changed, 12 insertions, 12 deletions
diff --git a/lang/whitespace/Makefile b/lang/whitespace/Makefile
index 8462ed52902..5492d207d33 100644
--- a/lang/whitespace/Makefile
+++ b/lang/whitespace/Makefile
@@ -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
diff --git a/lang/whitespace/pkg-plist b/lang/whitespace/pkg-plist
index ee3ec5a10f2..01f5e5987eb 100644
--- a/lang/whitespace/pkg-plist
+++ b/lang/whitespace/pkg-plist
@@ -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%%