Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Oct 2013 11:36:29 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329290 - head/audio/abraca
Message-ID:  <201310041136.r94BaT8T094806@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Fri Oct  4 11:36:29 2013
New Revision: 329290
URL: http://svnweb.freebsd.org/changeset/ports/329290

Log:
  - Convert to scons USES
  - Use option helpers
  - Fix NLS option logic

Modified:
  head/audio/abraca/Makefile

Modified: head/audio/abraca/Makefile
==============================================================================
--- head/audio/abraca/Makefile	Fri Oct  4 11:31:21 2013	(r329289)
+++ head/audio/abraca/Makefile	Fri Oct  4 11:36:29 2013	(r329290)
@@ -3,6 +3,7 @@
 
 PORTNAME=	abraca
 PORTVERSION=	0.7.1
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	http://cloud.github.com/downloads/Abraca/Abraca/
 
@@ -13,30 +14,24 @@ BUILD_DEPENDS=	${LOCALBASE}/bin/valac:${
 LIB_DEPENDS=	libxmmsclient.so:${PORTSDIR}/audio/xmms2 \
 		libgee.so:${PORTSDIR}/devel/libgee06
 
-USES=		pkgconfig
-USE_SCONS=	yes
+USES=		pkgconfig scons
 USE_GNOME=	gtk30
 
-SCONS_ARGS=	MANDIR=${MANPREFIX}/man DESTDIR=${STAGEDIR}
+MAKE_ARGS=	MANDIR=${MANPREFIX}/man
 
 OPTIONS_DEFINE=	NLS
 OPTIONS_DEFAULT=	NLS
 
-.include <bsd.port.options.mk>
+OPTIONS_SUB=	yes
+NLS_USES=	gettext
 
-.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+=	--disable-nls
-PLIST_SUB+=	NLS='@comment '
-.else
-PLIST_SUB+=	NLS=''
-USES+=		gettext
-.endif
+.include <bsd.port.options.mk>
 
 post-configure:
 .if ${PORT_OPTIONS:MNLS}
-	@${REINPLACE_CMD} -e 's/%%NLS%%/0/' ${WRKSRC}/SConstruct
-.else
 	@${REINPLACE_CMD} -e 's/%%NLS%%/1/' ${WRKSRC}/SConstruct
+.else
+	@${REINPLACE_CMD} -e 's/%%NLS%%/0/' ${WRKSRC}/SConstruct
 .endif
 
 .include <bsd.port.mk>



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