svn commit: r301932 - head/lang/nhc98

Gabor Pali pgj at FreeBSD.org
Fri Aug 3 03:44:20 UTC 2012


Author: pgj
Date: Fri Aug  3 03:44:20 2012
New Revision: 301932
URL: http://svn.freebsd.org/changeset/ports/301932

Log:
  - Use the new options framework
  
  Obtained from:	FreeBSD Haskell

Modified:
  head/lang/nhc98/Makefile

Modified: head/lang/nhc98/Makefile
==============================================================================
--- head/lang/nhc98/Makefile	Fri Aug  3 03:29:59 2012	(r301931)
+++ head/lang/nhc98/Makefile	Fri Aug  3 03:44:20 2012	(r301932)
@@ -6,7 +6,7 @@
 
 PORTNAME=	nhc98
 PORTVERSION=	1.18
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	lang haskell
 MASTER_SITES=	ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
 DISTFILES=	${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX} ${PORTNAME}-${PORTVERSION}-library-interfaces${EXTRACT_SUFX}
@@ -25,8 +25,15 @@ USE_GMAKE=	yes
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS+=--prefix=${PREFIX} --buildwith=gcc
 
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE=		DOCS
+OPTIONS_DEFAULT=	DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
 CONFIGURE_ARGS+=	--docdir=${DOCSDIR} +docs
+.else
+CONFIGURE_ARGS+=	-docs
 .endif
 
 MAN1=		harch.1 hmake.1 hp2graph.1 nhc98.1 hi.1
@@ -46,7 +53,7 @@ post-install:
 	       < ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix
 	${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1
 	${RM} ${WRKSRC}/man/nhc98.1.fix
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 .for directory in . bugs examples hmake implementation-notes libs
 	${RM} -r ${DOCSDIR}/${directory}/CVS
 .endfor



More information about the svn-ports-all mailing list