Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2012 03:44:20 +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: r301932 - head/lang/nhc98
Message-ID:  <201208030344.q733iKjU067002@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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