Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2012 07:22:17 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305239 - head/devel/cscope
Message-ID:  <201210040722.q947MHKv093304@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Thu Oct  4 07:22:16 2012
New Revision: 305239
URL: http://svn.freebsd.org/changeset/ports/305239

Log:
  - Convert to OptionsNG

Modified:
  head/devel/cscope/Makefile   (contents, props changed)

Modified: head/devel/cscope/Makefile
==============================================================================
--- head/devel/cscope/Makefile	Thu Oct  4 07:21:06 2012	(r305238)
+++ head/devel/cscope/Makefile	Thu Oct  4 07:22:16 2012	(r305239)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# ports collection makefile for:	cscope
-# Date created:		1998-11-21
-# Whom:			Castor Fu
-#
+# Created by: Castor Fu
 # $FreeBSD$
-#
 
 PORTNAME=	cscope
 PORTVERSION=	15.8
@@ -14,7 +9,8 @@ MASTER_SITES=	SF
 MAINTAINER=	gahr@FreeBSD.org
 COMMENT=	An interactive C program browser
 
-OPTIONS=	XCSCOPE "Install (X)Emacs package" off
+OPTIONS_DEFINE=	XCSCOPE
+XCSCOPE_DESC=	Install (X)Emacs package
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
@@ -22,23 +18,20 @@ GNU_CONFIGURE=	yes
 EMACSLISPDIR=	${PREFIX}/share/emacs/site-lisp
 XEMACSLISPDIR=	${PREFIX}/lib/xemacs/site-lisp
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_XCSCOPE)
+.if ${PORT_OPTIONS:MXCSCOPE}
 PLIST_SUB+=	XCSCOPE=""
-.else
-PLIST_SUB+=	XCSCOPE="@comment "
-.endif
-
-MAN1=		cscope.1
-
-.if defined(WITH_XCSCOPE)
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/contrib/xcscope/cscope-indexer ${PREFIX}/bin
 	${MKDIR} ${EMACSLISPDIR}
 	${INSTALL_DATA} ${WRKSRC}/contrib/xcscope/xcscope.el ${EMACSLISPDIR}
 	${MKDIR} ${XEMACSLISPDIR}
 	${LN} -sf ${EMACSLISPDIR}/xcscope.el ${XEMACSLISPDIR}
+.else
+PLIST_SUB+=	XCSCOPE="@comment "
 .endif
 
-.include <bsd.port.post.mk>
+MAN1=		cscope.1
+
+.include <bsd.port.mk>



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