r10203 - in packages/branches/zaz/miriam-i18n/debian: . patches

Miriam Ruiz miriam at alioth.debian.org
Mon Aug 24 21:26:25 UTC 2009


Author: miriam
Date: 2009-08-24 21:26:24 +0000 (Mon, 24 Aug 2009)
New Revision: 10203

Added:
   packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch
   packages/branches/zaz/miriam-i18n/debian/patches/configure_miss.patch
Modified:
   packages/branches/zaz/miriam-i18n/debian/control
   packages/branches/zaz/miriam-i18n/debian/patches/no_music.patch
   packages/branches/zaz/miriam-i18n/debian/patches/series
   packages/branches/zaz/miriam-i18n/debian/rules
Log:
Initial support for i18n



Modified: packages/branches/zaz/miriam-i18n/debian/control
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/control	2009-08-24 20:40:45 UTC (rev 10202)
+++ packages/branches/zaz/miriam-i18n/debian/control	2009-08-24 21:26:24 UTC (rev 10203)
@@ -3,7 +3,8 @@
 Priority: extra
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
 Uploaders: Miriam Ruiz <little_miry at yahoo.es>
-Build-Depends: debhelper (>= 7), quilt, dh-buildinfo, autotools-dev, pkg-config,
+Build-Depends: debhelper (>= 7), quilt, dh-buildinfo, pkg-config,
+ autotools-dev, automake, autoconf, libtool,
  ttf-freefont, libgl1-mesa-dev, libglu1-mesa-dev, libsdl1.2-dev, libxext-dev,
  libsdl-image1.2-dev, libftgl-dev, libvorbis-dev, libtheora-dev
 Standards-Version: 3.8.3

Added: packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch	                        (rev 0)
+++ packages/branches/zaz/miriam-i18n/debian/patches/add_gettext.patch	2009-08-24 21:26:24 UTC (rev 10203)
@@ -0,0 +1,89 @@
+--- zaz-0.2.6.orig/src/Makefile.am
++++ zaz-0.2.6/src/Makefile.am
+@@ -58,7 +58,9 @@
+ 	hiscores.h \
+ 	hiscores.cpp \
+ 	lineeditor.h \
+-	lineeditor.cpp
++	lineeditor.cpp \
++	i18n.h \
++	i18n.cpp
+ 
+ 
+ zaz_LDFLAGS = 
+--- /dev/null
++++ zaz-0.2.6/src/i18n.cpp
+@@ -0,0 +1,31 @@
++// (c) 2009 Miriam Ruiz <little_miry at yahoo.es>
++//
++// This code is free software; you can redistribute it and/or
++// modify it under the terms of the GNU Library General Public
++// License as published by the Free Software Foundation; either
++// version 2 of the License, or (at your option) any later version.
++//
++// This code is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++// Library General Public License for more details.
++
++#include "i18n.h"
++
++#include <libintl.h>
++#include <locale.h>
++
++GetTextInit::GetTextInit()
++{
++	if  (!IsInit)
++	{
++		IsInit = true;
++		setlocale (LC_MESSAGES, "");
++		setlocale (LC_CTYPE, "");
++		setlocale (LC_COLLATE, "");
++		textdomain ("fluid");
++		bindtextdomain ("fluid", NULL);
++	}
++}
++
++bool GetTextInit::IsInit = false;
+--- /dev/null
++++ zaz-0.2.6/src/i18n.h
+@@ -0,0 +1,29 @@
++// (c) 2009 Miriam Ruiz <little_miry at yahoo.es>
++//
++// This code is free software; you can redistribute it and/or
++// modify it under the terms of the GNU Library General Public
++// License as published by the Free Software Foundation; either
++// version 2 of the License, or (at your option) any later version.
++//
++// This code is distributed in the hope that it will be useful,
++// but WITHOUT ANY WARRANTY; without even the implied warranty of
++// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++// Library General Public License for more details.
++
++#ifndef __I18N_H__
++#define __I18N_H__
++
++#include <libintl.h>
++#define _(String) gettext (String)
++
++class GetTextInit
++{
++	protected:
++		static bool IsInit;
++	public:
++		GetTextInit();
++};
++
++static GetTextInit gettext_init;
++
++#endif // __I18N_H__
+--- zaz-0.2.6.orig/src/common.h
++++ zaz-0.2.6/src/common.h
+@@ -40,6 +40,7 @@
+ #include <FTGL/ftgl.h>
+ #include <GL/gl.h>
+ 
++#include "i18n.h"
+ #include "error.h"
+ #include "settings.h"
+ #include "hiscores.h"

Added: packages/branches/zaz/miriam-i18n/debian/patches/configure_miss.patch
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/patches/configure_miss.patch	                        (rev 0)
+++ packages/branches/zaz/miriam-i18n/debian/patches/configure_miss.patch	2009-08-24 21:26:24 UTC (rev 10203)
@@ -0,0 +1,17 @@
+--- zaz-0.2.6.orig/configure.ac
++++ zaz-0.2.6/configure.ac
+@@ -22,6 +22,14 @@
+ AC_CHECK_HEADER(GL/glu.h, [], AC_MSG_ERROR(no GL/glu.h found))
+ AC_CHECK_HEADER(SDL/SDL_image.h, [], AC_MSG_ERROR(no SDL/SDL_image.h found))
+ 
++AC_CHECK_FUNCS([memset])
++AC_CHECK_FUNCS([mkdir])
++AC_CHECK_FUNCS([pow])
++AC_CHECK_FUNCS([sqrt])
++AC_FUNC_MALLOC
++AC_HEADER_STDBOOL
++AC_TYPE_SIZE_T
++
+ AC_OUTPUT([
+ Makefile
+ data/Makefile

Modified: packages/branches/zaz/miriam-i18n/debian/patches/no_music.patch
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/patches/no_music.patch	2009-08-24 20:40:45 UTC (rev 10202)
+++ packages/branches/zaz/miriam-i18n/debian/patches/no_music.patch	2009-08-24 21:26:24 UTC (rev 10203)
@@ -11,19 +11,6 @@
  	pull.ogg\
  	push.ogg\
  	ouch.ogg\
---- zaz-0.2.6.orig/data/Makefile.in
-+++ zaz-0.2.6/data/Makefile.in
-@@ -166,10 +166,6 @@
- 	player.png\
- 	FreeSans.ttf\
- 	FreeMonoBold.ttf\
--	mus1.ogg\
--	mus2.ogg\
--	mus3.ogg\
--	mus4.ogg\
- 	pull.ogg\
- 	push.ogg\
- 	ouch.ogg\
 --- zaz-0.2.6.orig/src/mainmenu.cpp
 +++ zaz-0.2.6/src/mainmenu.cpp
 @@ -89,8 +89,8 @@

Modified: packages/branches/zaz/miriam-i18n/debian/patches/series
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/patches/series	2009-08-24 20:40:45 UTC (rev 10202)
+++ packages/branches/zaz/miriam-i18n/debian/patches/series	2009-08-24 21:26:24 UTC (rev 10203)
@@ -1 +1,3 @@
+configure_miss.patch
 no_music.patch
+add_gettext.patch

Modified: packages/branches/zaz/miriam-i18n/debian/rules
===================================================================
--- packages/branches/zaz/miriam-i18n/debian/rules	2009-08-24 20:40:45 UTC (rev 10202)
+++ packages/branches/zaz/miriam-i18n/debian/rules	2009-08-24 21:26:24 UTC (rev 10203)
@@ -17,6 +17,7 @@
 config-stamp: 
 	dh_testdir
 	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
+	autoreconf --force
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 	cp -f /usr/share/misc/config.sub config.sub
 endif
@@ -44,7 +45,17 @@
 	dh_testroot
 	rm -f build-stamp config-stamp
 	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -f config.sub config.guess
+	rm -f config.sub config.guess config.log config.cache
+
+	rm -f configure
+	rm -f aclocal.m4
+	rm -f configure.scan
+	rm -f config.h.in
+	rm -f Makefile.in
+	rm -f data/Makefile.in
+	rm -f extra/Makefile.in
+	rm -f src/Makefile.in
+
 	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
 	dh_clean 
 




More information about the Pkg-games-commits mailing list