svn commit: r329290 - head/audio/abraca
Guido Falsi
madpilot at FreeBSD.org
Fri Oct 4 11:36:30 UTC 2013
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>
More information about the svn-ports-head
mailing list