From owner-svn-ports-head@FreeBSD.ORG Fri Oct 4 11:36:30 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 29CFF87F; Fri, 4 Oct 2013 11:36:30 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1691227B6; Fri, 4 Oct 2013 11:36:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r94BaTjN094807; Fri, 4 Oct 2013 11:36:29 GMT (envelope-from madpilot@svn.freebsd.org) Received: (from madpilot@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r94BaT8T094806; Fri, 4 Oct 2013 11:36:29 GMT (envelope-from madpilot@svn.freebsd.org) Message-Id: <201310041136.r94BaT8T094806@svn.freebsd.org> From: Guido Falsi Date: Fri, 4 Oct 2013 11:36:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r329290 - head/audio/abraca X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 11:36:30 -0000 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 +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 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