r25404 - in /packages/unstable/gksu/debian: changelog patches/99_intltool.patch

joss at users.alioth.debian.org joss at users.alioth.debian.org
Tue Oct 19 21:28:53 UTC 2010


Author: joss
Date: Tue Oct 19 21:28:52 2010
New Revision: 25404

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=25404
Log:
99_intltool.patch: update po/Makefile.in.in with a working intltool
version. Closes: #599424.

Added:
    packages/unstable/gksu/debian/patches/99_intltool.patch
Modified:
    packages/unstable/gksu/debian/changelog

Modified: packages/unstable/gksu/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gksu/debian/changelog?rev=25404&op=diff
==============================================================================
--- packages/unstable/gksu/debian/changelog [utf-8] (original)
+++ packages/unstable/gksu/debian/changelog [utf-8] Tue Oct 19 21:28:52 2010
@@ -1,9 +1,11 @@
-gksu (2.0.2-4) UNRELEASED; urgency=low
+gksu (2.0.2-4) unstable; urgency=low
 
   * New Brazilian Portuguese translation by Sérgio Cipolla. 
     Closes: #585484.
-
- -- Josselin Mouette <joss at debian.org>  Thu, 17 Jun 2010 00:09:11 +0200
+  * 99_intltool.patch: update po/Makefile.in.in with a working intltool
+    version. Closes: #599424.
+
+ -- Josselin Mouette <joss at debian.org>  Tue, 19 Oct 2010 23:23:24 +0200
 
 gksu (2.0.2-3) unstable; urgency=low
 

Added: packages/unstable/gksu/debian/patches/99_intltool.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/gksu/debian/patches/99_intltool.patch?rev=25404&op=file
==============================================================================
--- packages/unstable/gksu/debian/patches/99_intltool.patch (added)
+++ packages/unstable/gksu/debian/patches/99_intltool.patch [utf-8] Tue Oct 19 21:28:52 2010
@@ -1,0 +1,255 @@
+--- gksu-2.0.2.orig/po/Makefile.in.in	2008-05-09 19:42:02.000000000 +0200
++++ gksu-2.0.2/po/Makefile.in.in	2010-10-19 23:24:51.547443175 +0200
+@@ -1,10 +1,10 @@
+ # Makefile for program source directory in GNU NLS utilities package.
+ # Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper at gnu.ai.mit.edu>
++# Copyright (C) 2004-2008 Rodney Dawes <dobey.pwns at gmail.com>
+ #
+-# This file file be copied and used freely without restrictions.  It can
+-# be used in projects which are not available under the GNU Public License
++# This file may be copied and used freely without restrictions.  It may
++# be used in projects which are not available under a GNU Public License,
+ # but which still want to provide support for the GNU gettext functionality.
+-# Please note that the actual code is *not* freely available.
+ #
+ # - Modified by Owen Taylor <otaylor at redhat.com> to use GETTEXT_PACKAGE
+ #   instead of PACKAGE and to look for po2tbl in ./ not in intl/
+@@ -12,7 +12,7 @@
+ # - Modified by jacob berkman <jacob at ximian.com> to install
+ #   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
+ #
+-# - Modified by Rodney Dawes <dobey at novell.com> for use with intltool
++# - Modified by Rodney Dawes <dobey.pwns at gmail.com> for use with intltool
+ #
+ # We have the following line for use by intltoolize:
+ # INTLTOOL_MAKEFILE
+@@ -21,12 +21,11 @@
+ PACKAGE = @PACKAGE@
+ VERSION = @VERSION@
+ 
+-SHELL = /bin/sh
+- at SET_MAKE@
++SHELL = @SHELL@
+ 
+ srcdir = @srcdir@
+ top_srcdir = @top_srcdir@
+-top_builddir = ..
++top_builddir = @top_builddir@
+ VPATH = @srcdir@
+ 
+ prefix = @prefix@
+@@ -34,9 +33,8 @@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+ libdir = @libdir@
+-localedir = $(libdir)/locale
+-gnulocaledir = $(datadir)/locale
+-gettextsrcdir = $(datadir)/glib-2.0/gettext/po
++DATADIRNAME = @DATADIRNAME@
++itlocaledir = $(prefix)/$(DATADIRNAME)/locale
+ subdir = po
+ install_sh = @install_sh@
+ # Automake >= 1.8 provides @mkdir_p at .
+@@ -46,7 +44,6 @@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
+ 
+-CC = @CC@
+ GMSGFMT = @GMSGFMT@
+ MSGFMT = @MSGFMT@
+ XGETTEXT = @XGETTEXT@
+@@ -55,31 +52,26 @@
+ MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
+ GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
+ 
+-DEFS = @DEFS@
+-CFLAGS = @CFLAGS@
+-CPPFLAGS = @CPPFLAGS@
+-
+-INCLUDES = -I.. -I$(top_srcdir)/intl
+-
+-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
+-
+-SOURCES = 
+-POFILES = @POFILES@
+-GMOFILES = @GMOFILES@
+-DISTFILES = ChangeLog Makefile.in.in POTFILES.in \
+-$(POFILES) $(SOURCES)
+-EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
++ALL_LINGUAS = @ALL_LINGUAS@
++
++PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
++
++USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep \^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep \^$$lang$$`"; then printf "$$lang "; fi; done; fi)
++
++USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
++
++POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
++
++DISTFILES = Makefile.in.in POTFILES.in $(POFILES)
++EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
+ 
+ POTFILES = \
++# This comment gets stripped out
+ 
+-CATALOGS = @CATALOGS@
+-CATOBJEXT = @CATOBJEXT@
++CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
+ 
+ .SUFFIXES:
+-.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
+-
+-.c.o:
+-	$(COMPILE) $<
++.SUFFIXES: .po .pox .gmo .mo .msg .cat
+ 
+ .po.pox:
+ 	$(MAKE) $(GETTEXT_PACKAGE).pot
+@@ -105,76 +97,59 @@
+ $(GETTEXT_PACKAGE).pot: $(POTFILES)
+ 	$(GENPOT)
+ 
+-install: install-exec install-data
+-install-exec:
++install: install-data
+ install-data: install-data- at USE_NLS@
+ install-data-no: all
+ install-data-yes: all
+-	$(mkdir_p) $(DESTDIR)$(datadir)
+-	@catalogs='$(CATALOGS)'; \
+-	for cat in $$catalogs; do \
+-	  cat=`basename $$cat`; \
+-	  case "$$cat" in \
+-	    *.gmo) destdir=$(gnulocaledir);; \
+-	    *)     destdir=$(localedir);; \
+-	  esac; \
+-	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+-	  dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
++	linguas="$(USE_LINGUAS)"; \
++	for lang in $$linguas; do \
++	  dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
+ 	  $(mkdir_p) $$dir; \
+-	  if test -r $$cat; then \
+-	    $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE).mo; \
+-	    echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE).mo"; \
++	  if test -r $$lang.gmo; then \
++	    $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
++	    echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
+ 	  else \
+-	    $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE).mo; \
+-	    echo "installing $(srcdir)/$$cat as" \
++	    $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
++	    echo "installing $(srcdir)/$$lang.gmo as" \
+ 		 "$$dir/$(GETTEXT_PACKAGE).mo"; \
+ 	  fi; \
+-	  if test -r $$cat.m; then \
+-	    $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
+-	    echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
++	  if test -r $$lang.gmo.m; then \
++	    $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
++	    echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
+ 	  else \
+-	    if test -r $(srcdir)/$$cat.m ; then \
+-	      $(INSTALL_DATA) $(srcdir)/$$cat.m \
++	    if test -r $(srcdir)/$$lang.gmo.m ; then \
++	      $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
+ 		$$dir/$(GETTEXT_PACKAGE).mo.m; \
+-	      echo "installing $(srcdir)/$$cat as" \
++	      echo "installing $(srcdir)/$$lang.gmo.m as" \
+ 		   "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
+ 	    else \
+ 	      true; \
+ 	    fi; \
+ 	  fi; \
+ 	done
+-	if test "$(PACKAGE)" = "glib"; then \
+-	  $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
+-	  $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
+-			  $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+-	else \
+-	  : ; \
+-	fi
++
++# Empty stubs to satisfy archaic automake needs
++dvi info ctags tags CTAGS TAGS ID:
+ 
+ # Define this as empty until I found a useful application.
+-installcheck:
++install-exec installcheck:
+ 
+ uninstall:
+-	catalogs='$(CATALOGS)'; \
+-	for cat in $$catalogs; do \
+-	  cat=`basename $$cat`; \
+-	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+-	  rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
+-	  rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
+-	  rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
+-	  rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
++	linguas="$(USE_LINGUAS)"; \
++	for lang in $$linguas; do \
++	  rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
++	  rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
+ 	done
+-	if test "$(PACKAGE)" = "glib"; then \
+-	  rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
+-	fi
+ 
+ check: all $(GETTEXT_PACKAGE).pot
+-
+-dvi info tags TAGS ID:
++	rm -f missing notexist
++	srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
++	if [ -r missing -o -r notexist ]; then \
++	  exit 1; \
++	fi
+ 
+ mostlyclean:
+-	rm -f core core.* *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
+-	rm -fr *.o
++	rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
+ 	rm -f .intltool-merge-cache
+ 
+ clean: mostlyclean
+@@ -188,7 +163,7 @@
+ 	@echo "it deletes files that may require special tools to rebuild."
+ 	rm -f Makefile.in.in
+ 
+-distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
++distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
+ dist distdir: $(DISTFILES)
+ 	dists="$(DISTFILES)"; \
+ 	extra_dists="$(EXTRA_DISTFILES)"; \
+@@ -204,10 +179,8 @@
+ update-po: Makefile
+ 	$(MAKE) $(GETTEXT_PACKAGE).pot
+ 	tmpdir=`pwd`; \
+-	catalogs='$(CATALOGS)'; \
+-	for cat in $$catalogs; do \
+-	  cat=`basename $$cat`; \
+-	  lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
++	linguas="$(USE_LINGUAS)"; \
++	for lang in $$linguas; do \
+ 	  echo "$$lang:"; \
+ 	  result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
+ 	  if $$result; then \
+@@ -223,7 +196,7 @@
+ 	      fi; \
+ 	    fi; \
+ 	  else \
+-	    echo "msgmerge for $$cat failed!"; \
++	    echo "msgmerge for $$lang.gmo failed!"; \
+ 	    rm -f $$tmpdir/$$lang.new.po; \
+ 	  fi; \
+ 	done
+@@ -234,8 +207,8 @@
+ 	  $(MAKE) stamp-it; \
+ 	fi
+ 
+-stamp-it: Makefile.in.in ../config.status POTFILES.in
+-	cd .. \
++stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
++	cd $(top_builddir) \
+ 	  && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
+ 	       $(SHELL) ./config.status
+ 




More information about the pkg-gnome-commits mailing list