ports/152089: [patch] audio/gimmix: add NLS option and portlint fixes
Sofian Brabez
sbrabez at gmail.com
Wed Nov 10 01:40:07 UTC 2010
>Number: 152089
>Category: ports
>Synopsis: [patch] audio/gimmix: add NLS option and portlint fixes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 10 01:40:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Sofian Brabez
>Release: FreeBSD 8.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD freebsd81 8.1-STABLE FreeBSD 8.1-STABLE #1: Tue Aug 31 22:46:46 CEST 2010
>Description:
- Respect Native Language Support OPTIONS
- Make happy portlint
- Remove dead code
- Bump PORTREVISION
Port maintainer (c-s at c-s.li) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- gimmix-0.5.7.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/audio/gimmix/Makefile /tmp/gimmix/Makefile
--- /usr/ports/audio/gimmix/Makefile 2010-11-04 21:29:38.000000000 +0100
+++ /tmp/gimmix/Makefile 2010-11-10 03:26:24.000000000 +0100
@@ -2,11 +2,12 @@
# Date created: 11 April 2007
# Whom: Matthieu Guegan <matt.guegan at free.fr>
#
-# $FreeBSD: ports/audio/gimmix/Makefile,v 1.17 2010/11/01 08:35:55 wen Exp $
+# $FreeBSD: ports/audio/gimmix/Makefile,v 1.16 2010/05/16 17:27:04 nork Exp $
#
PORTNAME= gimmix
PORTVERSION= 0.5.7.1
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_BERLIOS}
MASTER_SITE_SUBDIR= gimmix
@@ -20,9 +21,13 @@
LICENSE= GPLv2
+OPTIONS= NLS "Native Language Support" on
+
+.include <bsd.port.options.mk>
+
USE_GNOME= gtk20 intltool libglade2
USE_BZIP2= yes
-USE_GETTEXT= yes
+
GNU_CONFIGURE= yes
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
@@ -31,9 +36,18 @@
CONFIGURE_ENV= DATADIRNAME=share
+.if !defined(WITHOUT_NLS)
+CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lintl"
+CONFIGURE_ARGS+= --enable-nls
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
- ${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in
- @${REINPLACE_CMD} -e 's,libmpd-1.0\/libmpd,libmpd,' \
- ${WRKSRC}/src/gimmix.h
+ @${LN} -sf ${LOCALBASE}/share/intltool/Makefile.in.in ${WRKSRC}/po/Makefile.in.in
.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/audio/gimmix/distinfo /tmp/gimmix/distinfo
--- /usr/ports/audio/gimmix/distinfo 2010-11-04 21:29:38.000000000 +0100
+++ /tmp/gimmix/distinfo 2010-11-10 03:21:16.000000000 +0100
@@ -1,3 +1,2 @@
-MD5 (gimmix-0.5.7.1.tar.bz2) = d89f3d6a80a85e9e6f34f9abd2614c15
SHA256 (gimmix-0.5.7.1.tar.bz2) = f504e19615fe2032b958d14a88504fbf9c2684ccad3cbe0b177068173e538cba
SIZE (gimmix-0.5.7.1.tar.bz2) = 330368
diff -ruN --exclude=CVS /usr/ports/audio/gimmix/pkg-plist /tmp/gimmix/pkg-plist
--- /usr/ports/audio/gimmix/pkg-plist 2010-11-04 21:29:38.000000000 +0100
+++ /tmp/gimmix/pkg-plist 2010-11-10 03:04:39.000000000 +0100
@@ -1,9 +1,10 @@
+ at comment $FreeBSD$
bin/gimmix
-share/locale/de/LC_MESSAGES/gimmix.mo
-share/locale/fr/LC_MESSAGES/gimmix.mo
-share/locale/sv/LC_MESSAGES/gimmix.mo
-share/locale/tr/LC_MESSAGES/gimmix.mo
-share/locale/zh_TW/LC_MESSAGES/gimmix.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gimmix.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gimmix.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gimmix.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gimmix.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gimmix.mo
share/applications/gimmix.desktop
%%DATADIR%%/gimmix.glade
%%DATADIR%%/gimmix_firstrun.png
--- gimmix-0.5.7.1_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list