[Pkg-sdl-commits] r94 - tarballs unstable unstable/sdlpango
unstable/sdlpango/debian unstable/sdlpango/debian/patches
Josselin Mouette
joss at costa.debian.org
Thu Sep 28 21:36:26 UTC 2006
Author: joss
Date: 2006-09-28 21:36:21 +0000 (Thu, 28 Sep 2006)
New Revision: 94
Added:
tarballs/sdlpango_0.1.2.orig.tar.gz
unstable/sdlpango/
unstable/sdlpango/debian/
unstable/sdlpango/debian/changelog
unstable/sdlpango/debian/compat
unstable/sdlpango/debian/control
unstable/sdlpango/debian/copyright
unstable/sdlpango/debian/libsdl-pango-dev.examples
unstable/sdlpango/debian/libsdl-pango-dev.install
unstable/sdlpango/debian/libsdl-pango1.install
unstable/sdlpango/debian/patches/
unstable/sdlpango/debian/patches/SDL_Pango-0.1.2-API-adds.patch
unstable/sdlpango/debian/rules
Log:
sdlpango (0.1.2-1) unstable; urgency=low
* Initial release (closes: #389648).
Added: tarballs/sdlpango_0.1.2.orig.tar.gz
===================================================================
(Binary files differ)
Property changes on: tarballs/sdlpango_0.1.2.orig.tar.gz
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: unstable/sdlpango/debian/changelog
===================================================================
--- unstable/sdlpango/debian/changelog (rev 0)
+++ unstable/sdlpango/debian/changelog 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,5 @@
+sdlpango (0.1.2-1) unstable; urgency=low
+
+ * Initial release (closes: #389648).
+
+ -- Josselin Mouette <joss at debian.org> Thu, 28 Sep 2006 23:34:20 +0200
Added: unstable/sdlpango/debian/compat
===================================================================
--- unstable/sdlpango/debian/compat (rev 0)
+++ unstable/sdlpango/debian/compat 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1 @@
+5
Added: unstable/sdlpango/debian/control
===================================================================
--- unstable/sdlpango/debian/control (rev 0)
+++ unstable/sdlpango/debian/control 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,31 @@
+Source: sdlpango
+Section: libs
+Priority: optional
+Maintainer: Josselin Mouette <joss at debian.org>
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5), cdbs, libsdl1.2-dev (>= 1.2.4), libpango1.0-dev (>= 1.2.0)
+
+Package: libsdl-pango1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Section: libs
+Description: text rendering with Pango in SDL applications (shared library)
+ SDL_pango is a Simple Directmedia Layer extension for rendering text
+ with the Pango library. Its use cases are similar to those of SDL_ttf,
+ but it benefits from the superior Pango font selection engine for
+ improved rendering of internationalized text.
+ .
+ This package contains the runtime shared library.
+
+Package: libsdl-pango-dev
+Architecture: any
+Depends: libsdl-pango1 (= ${Source-Version}), libsdl1.2-dev (>= 1.2.4), libpango1.0-dev (>= 1.2.0)
+Section: libdevel
+Description: text rendering with Pango in SDL applications (development)
+ SDL_pango is a Simple Directmedia Layer extension for rendering text
+ with the Pango library. Its use cases are similar to those of SDL_ttf,
+ but it benefits from the superior Pango font selection engine for
+ improved rendering of internationalized text.
+ .
+ This package contains the static library and development headers needed
+ to build applications using SDL_pango.
Added: unstable/sdlpango/debian/copyright
===================================================================
--- unstable/sdlpango/debian/copyright (rev 0)
+++ unstable/sdlpango/debian/copyright 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,29 @@
+This package was debianized by Josselin Mouette <joss at debian.org> on
+Thu, 28 Sep 2006 23:17:07 +0200.
+
+It was downloaded from http://sourceforge.net/projects/sdlpango/
+
+Upstream Author: NAKAMURA Ken'ichi <nakamura at sbp.fp.a.u-tokyo.ac.jp>
+
+License:
+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This package 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+
+The Debian packaging is ©2006, Josselin Mouette <joss at debian.org> and
+is licensed under the LGPL, version 2.1, as well.
Added: unstable/sdlpango/debian/libsdl-pango-dev.examples
===================================================================
--- unstable/sdlpango/debian/libsdl-pango-dev.examples (rev 0)
+++ unstable/sdlpango/debian/libsdl-pango-dev.examples 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,5 @@
+test/configure.ac
+test/Makefile.am
+test/README
+test/*.c
+test/markup.txt
Added: unstable/sdlpango/debian/libsdl-pango-dev.install
===================================================================
--- unstable/sdlpango/debian/libsdl-pango-dev.install (rev 0)
+++ unstable/sdlpango/debian/libsdl-pango-dev.install 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,4 @@
+debian/tmp/usr/include
+debian/tmp/usr/lib/*.a
+debian/tmp/usr/lib/*.so
+debian/tmp/usr/lib/pkgconfig
Added: unstable/sdlpango/debian/libsdl-pango1.install
===================================================================
--- unstable/sdlpango/debian/libsdl-pango1.install (rev 0)
+++ unstable/sdlpango/debian/libsdl-pango1.install 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1 @@
+debian/tmp/usr/lib/lib*.so.*
Added: unstable/sdlpango/debian/patches/SDL_Pango-0.1.2-API-adds.patch
===================================================================
--- unstable/sdlpango/debian/patches/SDL_Pango-0.1.2-API-adds.patch (rev 0)
+++ unstable/sdlpango/debian/patches/SDL_Pango-0.1.2-API-adds.patch 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,116 @@
+--- SDL_Pango.c 2004-12-10 10:06:33.000000000 +0100
++++ /tmp/SDL_Pango.c 2006-09-24 22:46:24.000000000 +0200
+@@ -723,13 +723,8 @@
+ SDL_UnlockSurface(surface);
+ }
+
+-/*!
+- Create a context which contains Pango objects.
+-
+- @return A pointer to the context as a SDLPango_Context*.
+-*/
+ SDLPango_Context*
+-SDLPango_CreateContext()
++SDLPango_CreateContext_GivenFontDesc(const char* font_desc)
+ {
+ SDLPango_Context *context = g_malloc(sizeof(SDLPango_Context));
+ G_CONST_RETURN char *charset;
+@@ -743,8 +738,7 @@
+ pango_context_set_language (context->context, pango_language_from_string (charset));
+ pango_context_set_base_dir (context->context, PANGO_DIRECTION_LTR);
+
+- context->font_desc = pango_font_description_from_string(
+- MAKE_FONT_NAME (DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
++ context->font_desc = pango_font_description_from_string(font_desc);
+
+ context->layout = pango_layout_new (context->context);
+
+@@ -762,6 +756,17 @@
+ }
+
+ /*!
++ Create a context which contains Pango objects.
++
++ @return A pointer to the context as a SDLPango_Context*.
++*/
++SDLPango_Context*
++SDLPango_CreateContext()
++{
++ SDLPango_CreateContext_GivenFontDesc(MAKE_FONT_NAME(DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE));
++}
++
++/*!
+ Free a context.
+
+ @param *context [i/o] Context to be free
+@@ -1053,6 +1058,20 @@
+ pango_layout_set_font_description (context->layout, context->font_desc);
+ }
+
++void
++SDLPango_SetText_GivenAlignment(
++ SDLPango_Context *context,
++ const char *text,
++ int length,
++ SDLPango_Alignment alignment)
++{
++ pango_layout_set_attributes(context->layout, NULL);
++ pango_layout_set_text (context->layout, text, length);
++ pango_layout_set_auto_dir (context->layout, TRUE);
++ pango_layout_set_alignment (context->layout, alignment);
++ pango_layout_set_font_description (context->layout, context->font_desc);
++}
++
+ /*!
+ Set plain text to context.
+ Text must be utf-8.
+@@ -1067,11 +1086,7 @@
+ const char *text,
+ int length)
+ {
+- pango_layout_set_attributes(context->layout, NULL);
+- pango_layout_set_text (context->layout, text, length);
+- pango_layout_set_auto_dir (context->layout, TRUE);
+- pango_layout_set_alignment (context->layout, PANGO_ALIGN_LEFT);
+- pango_layout_set_font_description (context->layout, context->font_desc);
++ SDLPango_SetText_GivenAlignment(context, text, length, SDLPANGO_ALIGN_LEFT);
+ }
+
+ /*!
+--- SDL_Pango.h 2004-12-10 10:06:33.000000000 +0100
++++ /tmp/SDL_Pango.h 2006-09-24 22:46:01.000000000 +0200
+@@ -109,12 +109,20 @@
+ SDLPANGO_DIRECTION_NEUTRAL /*! Neutral */
+ } SDLPango_Direction;
+
+-
++/*!
++ Specifies alignment of text. See Pango reference for detail
++*/
++typedef enum {
++ SDLPANGO_ALIGN_LEFT,
++ SDLPANGO_ALIGN_CENTER,
++ SDLPANGO_ALIGN_RIGHT
++} SDLPango_Alignment;
+
+ extern DECLSPEC int SDLCALL SDLPango_Init();
+
+ extern DECLSPEC int SDLCALL SDLPango_WasInit();
+
++extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext_GivenFontDesc(const char* font_desc);
+ extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext();
+
+ extern DECLSPEC void SDLCALL SDLPango_FreeContext(
+@@ -157,6 +165,12 @@
+ const char *markup,
+ int length);
+
++extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment(
++ SDLPango_Context *context,
++ const char *text,
++ int length,
++ SDLPango_Alignment alignment);
++
+ extern DECLSPEC void SDLCALL SDLPango_SetText(
+ SDLPango_Context *context,
+ const char *markup,
Added: unstable/sdlpango/debian/rules
===================================================================
--- unstable/sdlpango/debian/rules (rev 0)
+++ unstable/sdlpango/debian/rules 2006-09-28 21:36:21 UTC (rev 94)
@@ -0,0 +1,4 @@
+#! /usr/bin/make -f
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
Property changes on: unstable/sdlpango/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
More information about the Pkg-sdl-commits
mailing list