Fri Oct 24 23:45:34 2008 UTC ()
give this the same msgfmt treatment as www/gtkhtml314


(jnemeth)
diff -r1.16 -r1.17 pkgsrc/x11/gnome-control-center/Makefile
diff -r0 -r1.1 pkgsrc/x11/gnome-control-center/files/msgfmtstrip

cvs diff -r1.16 -r1.17 pkgsrc/x11/gnome-control-center/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/x11/gnome-control-center/Attic/Makefile 2008/10/24 23:26:25 1.16
+++ pkgsrc/x11/gnome-control-center/Attic/Makefile 2008/10/24 23:45:34 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.16 2008/10/24 23:26:25 jnemeth Exp $ 1# $NetBSD: Makefile,v 1.17 2008/10/24 23:45:34 jnemeth Exp $
2# 2#
3 3
4DISTNAME= gnome-control-center-2.24.0.1 4DISTNAME= gnome-control-center-2.24.0.1
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= x11 gnome 6CATEGORIES= x11 gnome
7MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-control-center/2.24/} 7MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-control-center/2.24/}
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.gnome.org/ 11HOMEPAGE= http://www.gnome.org/
12COMMENT= GNOME2 configuration utility 12COMMENT= GNOME2 configuration utility
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
@@ -50,26 +50,34 @@ BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.2 @@ -50,26 +50,34 @@ BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.2
50 50
51PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-control-center 51PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-control-center
52PKG_SUPPORTED_OPTIONS= evolution 52PKG_SUPPORTED_OPTIONS= evolution
53PKG_SUGGESTED_OPTIONS= evolution 53PKG_SUGGESTED_OPTIONS= evolution
54.include "../../mk/bsd.options.mk" 54.include "../../mk/bsd.options.mk"
55PLIST_VARS+= evolution 55PLIST_VARS+= evolution
56.if !empty(PKG_OPTIONS:Mevolution) 56.if !empty(PKG_OPTIONS:Mevolution)
57CONFIGURE_ARGS+= --enable-aboutme 57CONFIGURE_ARGS+= --enable-aboutme
58PLIST.evolution= yes 58PLIST.evolution= yes
59.endif 59.endif
60 60
61_TOOLS_USE_MSGFMT_SH= yes 61_TOOLS_USE_MSGFMT_SH= yes
62 62
 63# The gettext version in pkgsrc cannot handle the .po files, so
 64# we strip out usage of the newer features (context and fuzzy matches)
 65post-patch:
 66 for f in ${WRKSRC}/po/*.po ; do \
 67 mv $$f $$f.original ; \
 68 ${AWK} -f ${FILESDIR}/msgfmtstrip $$f.original > $$f ; \
 69 done
 70
63.include "../../audio/esound/buildlink3.mk" 71.include "../../audio/esound/buildlink3.mk"
64.include "../../audio/libcanberra/buildlink3.mk" 72.include "../../audio/libcanberra/buildlink3.mk"
65.include "../../devel/gettext-lib/buildlink3.mk" 73.include "../../devel/gettext-lib/buildlink3.mk"
66.include "../../devel/GConf/schemas.mk" 74.include "../../devel/GConf/schemas.mk"
67.include "../../devel/glib2/buildlink3.mk" 75.include "../../devel/glib2/buildlink3.mk"
68.include "../../devel/libbonobo/buildlink3.mk" 76.include "../../devel/libbonobo/buildlink3.mk"
69.include "../../devel/libbonoboui/buildlink3.mk" 77.include "../../devel/libbonoboui/buildlink3.mk"
70.include "../../devel/libglade/buildlink3.mk" 78.include "../../devel/libglade/buildlink3.mk"
71.include "../../devel/libgnome/buildlink3.mk" 79.include "../../devel/libgnome/buildlink3.mk"
72.include "../../devel/libgnomeui/buildlink3.mk" 80.include "../../devel/libgnomeui/buildlink3.mk"
73.include "../../fonts/fontconfig/buildlink3.mk" 81.include "../../fonts/fontconfig/buildlink3.mk"
74.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 82.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
75.if !empty(PKG_OPTIONS:Mevolution) 83.if !empty(PKG_OPTIONS:Mevolution)

File Added: pkgsrc/x11/gnome-control-center/files/Attic/msgfmtstrip
# $Id: msgfmtstrip,v 1.1 2008/10/24 23:45:34 jnemeth Exp $
# Simple awk script to strip out .po entries with "msgctxt" or "#~|", so the
# resultant file can be handled by the msgfmt 0.14.4 in NetBSD 4.0
{
if (/^$/) { entry_end(); }
else if ($1 == "msgctxt" || $2 == "msgctxt") { skip = 1; }
else if ($1 == "#~|") { skip = 1; }
else { entry = entry $0 "\n" }
}

END { entry_end(); }

function entry_end() {
    if (!skip)
	print entry;
    entry = "";
    skip = 0;
}