[gdk-pixbuf] Remove gross gettext pot file hack



commit 996750edc89326bfb6123db2e2ddcb19d91fda2c
Author: David King <amigadave amigadave com>
Date:   Tue Jan 27 11:18:31 2015 +0000

    Remove gross gettext pot file hack
    
    Use the PO_DEPENDS_ON_POT variable to (properly) ignore the timestamp of
    the pot file, avoiding the need to touch the pot file in autogen.sh.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=743574

 autogen.sh   |    4 ----
 configure.ac |    2 +-
 po/Makevars  |   11 +++++++++++
 3 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 9ec09e5..4a373e9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,10 +7,6 @@ test -n "$srcdir" || srcdir=.
 olddir=`pwd`
 cd "$srcdir"
 
-# GNU gettext automake support doesn't get along with git.
-# https://bugzilla.gnome.org/show_bug.cgi?id=661128
-touch -t 200001010000 po/gdk-pixbuf.pot
-
 GTKDOCIZE=`which gtkdocize`
 if test -z $GTKDOCIZE; then
         echo "*** No GTK-Doc found, please install it ***"
diff --git a/configure.ac b/configure.ac
index fdf6b2b..114ddb2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -339,7 +339,7 @@ if test "$gtk_ok" = "yes"; then
 fi
 
 # i18n stuff
-AM_GNU_GETTEXT_VERSION([0.17])
+AM_GNU_GETTEXT_VERSION([0.19])
 AM_GNU_GETTEXT([external])
 
 GETTEXT_PACKAGE="$PACKAGE"
diff --git a/po/Makevars b/po/Makevars
index 9b3e368..e437d44 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -56,3 +56,14 @@ MSGID_BUGS_ADDRESS =
 # This is the list of locale categories, beyond LC_MESSAGES, for which the
 # message catalogs shall be used.  It is usually empty.
 EXTRA_LOCALE_CATEGORIES =
+
+# Ignore the timestamp of the .pot file, as git clones do not have
+# deterministic timestamps, and .po files are updated by translators
+# (only) in GNOME projects.
+PO_DEPENDS_ON_POT = no
+
+# This tells whether or not to forcibly update $(DOMAIN).pot and
+# regenerate PO files on "make dist".  Possible values are "yes" and
+# "no".  Set this to no if the POT file and PO files are maintained
+# externally.
+DIST_DEPENDS_ON_UPDATE_PO = no


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]