pango1-xft2-ft219 stable port information

Package: pango1-xft2-ft219
# >1.24.5 bad! https://bugzilla.gnome.org/show_bug.cgi?id=593240
Version: 1.24.5
Revision: 7
Description: GTK+ - i18n libs (for freetype >= 2.1.9)
License: LGPL
Maintainer: The Gnome Core Team

Depends: <<
%N-shlibs (= %v-%r),
cairo-shlibs (>= 1.8.8-3),
dpkg-base-files,
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
glib2-shlibs (>= 2.22.0-1),
x11-shlibs,
xft2-shlibs (>= 2.1.14-1)
<<
BuildDepends: <<
cairo (>= 1.8.8-3),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
glib2-dev (>= 2.22.0-1),
glitz,
gtk-doc (>= 1.8-1),
libthai-dev (>= 0.1.12-1),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
x11-dev,
xft2-dev (>= 2.1.14-1)
<<

Source: mirror:gnome:sources/pango/1.24/pango-%v.tar.bz2
Source-MD5: 815416a452e9cccc172fed9862401f37
PatchFile: %n.patch
PatchFile-MD5: 9f40cfe38bbfa36fad5d78ed29fdeaa0
PatchScript: <<
#!/bin/bash -ev
perl -pi -e 's,(-dynamiclib)( +-single_module)*,$1 -single_module,g' configure
# no need to patch aclocal.m4...causes regeneration of autotools
#perl -pi -e 's,(-dynamiclib)( +-single_module)*,$1 -single_module,g' aclocal.m4
SYSCONFDIR=%p/lib/pango-ft219/etc
perl -p -e 'BEGIN{$s=shift} s|\@SYSCONFDIR\@|$s|' $SYSCONFDIR <%{PatchFile} | patch -p1
sed -e 's|query|ft219-query|' update-pango-modules > update-pango-ft219-modules

cat <<'END' >xrender.pc
prefix=/usr/X11R6
exec_prefix=/usr/X11R6/bin
libdir=/usr/X11R6/lib
includedir=/usr/X11R6/include

Name: Xrender
Description: X Render Library
Version: 0.8.4
Requires:
Cflags: -I${includedir}
Libs: -L${libdir} -lXrender -lX11 -lXext
END
<<

SetCPPFLAGS: -I%p/lib/fontconfig2/include
SetLDFLAGS: -L%p/lib/fontconfig2/lib -no-undefined -bind_at_load
SetCFLAGS: -Os
ConfigureParams: --mandir=%p/share/man --enable-dependency-tracking --includedir=%p/lib/pango-ft219/include --libdir=%p/lib/pango-ft219/lib --sysconfdir=%p/lib/pango-ft219/etc --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --disable-explicit-deps --enable-gtk-doc
CompileScript: <<
#!/bin/bash -ev
export PKG_CONFIG_PATH=%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/xft2/lib/pkgconfig
if [ `uname -r | cut -d. -f1` = 8 ]; then
# apple x11 ships lib but no .pc on 10.4, so hack a local one
PKG_CONFIG_PATH=%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH:`pwd`
fi
LD_TWOLEVEL_NAMESPACE=1 ac_cv_header_Carbon_Carbon_h=no ./configure %c
make
fink-package-precedence --prohibit-bdep %n-dev .
<<
InfoTest: <<
TestDepends: glib2-dev (>= 2.22.0-1), glib2-shlibs (>= 2.22.0-1)
TestScript: make check XFAIL_TESTS=check.docs || exit 2
<<

InstallScript: <<
#!/bin/bash -ev
make -j1 install DESTDIR=%d
SYSCONFDIR=%i/lib/pango-ft219/etc
mv %i/bin/pango-querymodules %i/bin/pango-ft219-querymodules
mv %i/share/man/man1/pango-querymodules.1 %i/share/man/man1/pango-ft219-querymodules.1
install -d -m 755 %i/sbin
install -c -m 755 update-pango-ft219-modules %i/sbin/
install -d -m 755 $SYSCONFDIR/pango

# everything is buried in a private hierarchy...
# now symlink from the default places
# must not symlink dirs...risk of confusing dpkg

pushd %i/lib/pango-ft219

# 1. clone actual directory structure
# NB: will fail miserably if space in %i or %p
# but fink hopelessly can't handle that anyway
/usr/bin/find . -type d -print0 | /usr/bin/xargs -0 -n 1 -I" " mkdir -pv "%i/ "
# 2. sylink the individual files
/usr/bin/find . \( -type f -o -type l \) -print0 | /usr/bin/xargs -0 -n 1 -I" " ln -sv "%p/lib/pango-ft219/ " "%i/ "

# adjust to emit paths pointing to the default places
#must edit actual files...perl-pie replaces symlink
#with actual file (!= acting through the symlink)
perl -pi -e 's,%p/lib/pango-ft219,%p,g' lib/pkgconfig/*
# lib/*.la #Scared of libtool!


popd

# only keep the main ld files, not all the underlying pieces
# plugins, or support data
pushd %i
rm lib/libpango*-1.0.*.dylib
rm -r lib/pango
rm -r etc
popd
<<
DocFiles: AUTHORS COPYING ChangeLog HACKING NEWS README THANKS
SplitOff: <<
Package: %N-shlibs
Description: GTK+ - i18n text shared libraries (for freetype >= 2.1.9)
Depends: <<
cairo-shlibs (>= 1.8.8-3),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
glib2-shlibs (>= 2.22.0-1),
libthai-shlibs (>= 0.1.12-1),
x11-shlibs,
xft2-shlibs (>= 2.1.14-1)
<<
DocFiles: AUTHORS COPYING ChangeLog HACKING NEWS README THANKS
Files: <<
lib/pango-ft219/lib/libpango-1.0.*.dylib
lib/pango-ft219/lib/libpangocairo-1.0.*.dylib
lib/pango-ft219/lib/libpangoft2-1.0.*.dylib
lib/pango-ft219/lib/libpangox-1.0.*.dylib
lib/pango-ft219/lib/libpangoxft-1.0.*.dylib
lib/pango-ft219/lib/pango
<<
Shlibs: <<
%p/lib/pango-ft219/lib/libpango-1.0.0.dylib 2401.0.0 %n (>= 1.24.2-1)
%p/lib/pango-ft219/lib/libpangocairo-1.0.0.dylib 2401.0.0 %n (>= 1.24.2-1)
%p/lib/pango-ft219/lib/libpangoft2-1.0.0.dylib 2401.0.0 %n (>= 1.24.2-1)
%p/lib/pango-ft219/lib/libpangox-1.0.0.dylib 2401.0.0 %n (>= 1.24.2-1)
%p/lib/pango-ft219/lib/libpangoxft-1.0.0.dylib 2401.0.0 %n (>= 1.24.2-1)
<<
<<
SplitOff2: <<
Package: %N-dev
Description: GTK+ - i18n text development headers and libraries (for freetype >= 2.1.9)
Depends: %N (= %v-%r), pkgconfig (>= 0.23)
BuildDependsOnly: True
Conflicts: pango1-dev, pango1-xft2-dev
Replaces: pango1-dev, pango1-xft2-dev
DocFiles: AUTHORS COPYING ChangeLog HACKING NEWS README THANKS
Files: <<
lib/pango-ft219/include
lib/pango-ft219/lib
include
lib/libpango*
lib/pkgconfig
share/gtk-doc
<<
<<

PostInstScript: <<
if [ configure = "$1" ]; then
update-pango-ft219-modules
fi
<<
PostRmScript: <<
case "$1" in
purge)
SYSCONFDIR=%p/lib/pango-ft219/etc
rm -f $SYSCONFDIR/pango/pango.modules
rmdir $SYSCONFDIR/pango || true
;;
esac
<<
ConfFiles: %p/lib/pango-ft219/etc/pango/pangox.aliases

Homepage: http://www.pango.org
DescDetail: <<
System for layout and rendering of internationalized text.

These packages link against fink's freetype219 instead of the freetype
that comes as part of x11. They also have cairo support.
<<
DescUsage: <<
Packages which install pango module(s) should call update-pango-ft219-modules
in their PostInstScript and PostRmScript to update the pango.modules file.

The headers and libraries needed at build time are in
%p/lib/pango-ft219/{include,lib}, and also (as of 1.22.0-3) in the
normal places (%p/{include,lib}).
<<
DescPort: <<
Instead of requiring xslt to build this package, we just manually
patch the pregenerated manpage target that is included in the
tarball.

check uses some C++ but it doesn't leak out into the installed
package
<<
DescPackaging: <<
Need to use glib that has errno patches to avoid self-test
failure.

Minimize propagation of InheritedBuildDepends

Make sure we get cairo-1.8 after pdf got re-enabled in it

Disable atsui because it gives poor font display sometimes
(not doing subpixel rendering?) See:
http://bugzilla.gnome.org/show_bug.cgi?id=554740

Make sure fink-supplied library paths come before x11's.

Make sure local -I come before global. See:
http://bugzilla.gnome.org/show_bug.cgi?id=572529

Ignoring "uninitialized value in concatenation" during gtkdoc
processing. See:
http://bugzilla.gnome.org/show_bug.cgi?id=584952

Whitespace beteen -I and its pathname isn't completely
portable.

Fix for new strictness in gtk-doc-1.17. See:
http://bugs.gentoo.org/show_bug.cgi?id=357205

gtk-doc-1.18 is even stricter about...something...and newer-%v
changes are too complex to backport a solution, so don't worry
if documentation fails sanity-check
<<

pango1-xft2-ft219 stable port .patch

diff -Nurd -x'*~' pango-1.24.5.orig/Makefile.in pango-1.24.5/Makefile.in
--- pango-1.24.5.orig/Makefile.in 2009-07-20 16:59:51.000000000 -0400
+++ pango-1.24.5/Makefile.in 2009-07-21 15:58:10.000000000 -0400
@@ -317,7 +317,7 @@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-SUBDIRS = pango modules pango-view examples docs tools tests
+SUBDIRS = pango modules pango-view docs tools tests
EXTRA_DIST = \
autogen.sh \
pango.pc.in \
diff -Nurd -x'*~' pango-1.24.5.orig/docs/Makefile.in pango-1.24.5/docs/Makefile.in
--- pango-1.24.5.orig/docs/Makefile.in 2009-07-20 16:59:47.000000000 -0400
+++ pango-1.24.5/docs/Makefile.in 2009-07-21 15:58:10.000000000 -0400
@@ -311,9 +311,9 @@
-DPANGO_ENABLE_ENGINE \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
- $(XFT_CFLAGS) \
- $(CAIRO_CFLAGS) \
$(FREETYPE_CFLAGS) \
+ $(CAIRO_CFLAGS) \
+ $(XFT_CFLAGS) \
$(X_CFLAGS)


diff -Nurd -x'*~' pango-1.24.5.orig/docs/html/pango-Miscellaneous-Utilities.html pango-1.24.5/docs/html/pango-Miscellaneous-Utilities.html
--- pango-1.24.5.orig/docs/html/pango-Miscellaneous-Utilities.html 2009-07-20 17:02:23.000000000 -0400
+++ pango-1.24.5/docs/html/pango-Miscellaneous-Utilities.html 2009-07-21 15:58:10.000000000 -0400
@@ -408,7 +408,7 @@

char *              pango_config_key_get                (const char *key);


Looks up a key in the Pango config database
-(pseudo-win.ini style, read from $sysconfdir/pango/pangorc,
+(pseudo-win.ini style, read from @SYSCONFDIR@/pango/pangorc,
~/.pangorc, and getenv (PANGO_RC_FILE).)




diff -Nurd -x'*~' pango-1.24.5.orig/docs/pango-querymodules.1 pango-1.24.5/docs/pango-querymodules.1
--- pango-1.24.5.orig/docs/pango-querymodules.1 2009-04-17 21:19:00.000000000 -0400
+++ pango-1.24.5/docs/pango-querymodules.1 2009-07-21 15:58:10.000000000 -0400
@@ -38,7 +38,7 @@
The Pango module path is specified by the key
Pango/ModulesPath
in the Pango config database, which is read from
-\fIsysconfdir\fR/pango/pangorc,
+\fI@SYSCONFDIR@\fR/pango/pangorc,
~/\&.pangorc
and the file specified in the environment variable
\fBPANGO_RC_FILE\fR\&.
diff -Nurd -x'*~' pango-1.24.5.orig/modules/basic/Makefile.in pango-1.24.5/modules/basic/Makefile.in
--- pango-1.24.5.orig/modules/basic/Makefile.in 2009-07-20 16:59:47.000000000 -0400
+++ pango-1.24.5/modules/basic/Makefile.in 2010-02-14 15:29:03.000000000 -0500
@@ -387,7 +387,7 @@

INCLUDES = -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_ENGINE \
$(PANGO_DEBUG_FLAGS) -I$(top_srcdir) -I$(top_srcdir)/pango \
- $(GLIB_CFLAGS) $(am__append_1) $(am__append_4) $(am__append_9)
+ $(GLIB_CFLAGS) $(am__append_4) $(am__append_1) $(am__append_9)
moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules
module_LTLIBRARIES = $(am__append_3) $(am__append_6) $(am__append_8) \
$(am__append_11)
diff -Nurd -x'*~' pango-1.24.5.orig/pango/Makefile.in pango-1.24.5/pango/Makefile.in
--- pango-1.24.5.orig/pango/Makefile.in 2009-07-20 16:59:50.000000000 -0400
+++ pango-1.24.5/pango/Makefile.in 2009-07-21 15:58:10.000000000 -0400
@@ -500,9 +500,9 @@
-I$(top_srcdir) \
$(PANGO_DEBUG_FLAGS) \
$(GLIB_CFLAGS) \
+ $(FREETYPE_CFLAGS) \
$(XFT_CFLAGS) \
$(CAIRO_CFLAGS) \
- $(FREETYPE_CFLAGS) \
$(X_CFLAGS)

BUILT_SOURCES = pango-enum-types.h pango-enum-types.c pango-features.h
@@ -654,9 +654,9 @@
libpangoft2-$(PANGO_API_VERSION).la \
libpango-$(PANGO_API_VERSION).la \
$(GLIB_LIBS) \
- $(X_LIBS) \
- $(XFT_LIBS) \
$(FREETYPE_LIBS) \
+ $(XFT_LIBS) \
+ $(X_LIBS) \
$(libm)

libpangoxft_1_0_la_DEPENDENCIES = \
diff -Nurd -x'*~' pango-1.24.5.orig/pango/opentype/Makefile.in pango-1.24.5/pango/opentype/Makefile.in
--- pango-1.24.5.orig/pango/opentype/Makefile.in 2009-07-20 16:59:50.000000000 -0400
+++ pango-1.24.5/pango/opentype/Makefile.in 2010-08-23 04:26:05.000000000 -0400
@@ -255,7 +255,7 @@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
INCLUDES = \
- -I $(srcdir) \
+ -I$(srcdir) \
$(FREETYPE_CFLAGS)

noinst_LTLIBRARIES = libharfbuzz-1.la
diff -Nurd -x'*~' pango-1.24.5.orig/pango/pango-matrix.h pango-1.24.5/pango/pango-matrix.h
--- pango-1.24.5.orig/pango/pango-matrix.h 2009-02-06 18:49:34.000000000 -0500
+++ pango-1.24.5/pango/pango-matrix.h 2011-06-09 10:29:23.000000000 -0400
@@ -51,6 +51,7 @@
**/
struct _PangoMatrix
{
+ /*< public >*/
double xx;
double xy;
double yx;
diff -Nurd -x'*~' pango-1.24.5.orig/pango-view/Makefile.in pango-1.24.5/pango-view/Makefile.in
--- pango-1.24.5.orig/pango-view/Makefile.in 2009-07-20 16:59:49.000000000 -0400
+++ pango-1.24.5/pango-view/Makefile.in 2010-02-14 14:42:32.000000000 -0500
@@ -367,8 +367,8 @@
viewer-main.c pango-view.c $(am__append_1) $(am__append_3) \
$(am__append_5) $(am__append_7)
pango_view_LDADD = ../pango/libpango-$(PANGO_API_VERSION).la \
- $(GLIB_LIBS) $(am__append_2) $(am__append_4) $(am__append_6) \
- $(am__append_8)
+ $(GLIB_LIBS) $(am__append_4) $(am__append_6) \
+ $(am__append_8) $(am__append_2)

#########################################################
MAINTAINERCLEANFILES = pango-view.1
diff -Nurd -x'*~' pango-1.24.5.orig/pangoxft.pc.in pango-1.24.5/pangoxft.pc.in
--- pango-1.24.5.orig/pangoxft.pc.in 2009-02-06 18:49:34.000000000 -0500
+++ pango-1.24.5/pangoxft.pc.in 2009-07-21 15:58:10.000000000 -0400
@@ -6,6 +6,6 @@
Name: Pango Xft
Description: Xft font support for Pango
Version: @VERSION@
-Requires: pango pangoft2 xft
+Requires: pango pangoft2 xft pangox
Libs: -L${libdir} -lpangoxft-@PANGO_API_VERSION@
Cflags: -I${includedir}/pango-1.0
diff -Nurd -x'*~' pango-1.24.5.orig/tests/Makefile.in pango-1.24.5/tests/Makefile.in
--- pango-1.24.5.orig/tests/Makefile.in 2009-07-20 16:59:50.000000000 -0400
+++ pango-1.24.5/tests/Makefile.in 2009-07-21 15:58:10.000000000 -0400
@@ -309,7 +309,7 @@
CLEANFILES = pangorc
DISTCLEANFILES = all-unicode.txt runtests.log
INCLUDES = -I$(top_srcdir) $(PANGO_DEBUG_FLAGS) $(GLIB_CFLAGS) \
- $(XFT_CFLAGS) $(CAIRO_CFLAGS) $(FREETYPE_CFLAGS) $(X_CFLAGS) \
+ $(FREETYPE_CFLAGS) $(XFT_CFLAGS) $(CAIRO_CFLAGS) $(X_CFLAGS) \
$(am__append_1) $(am__append_2) $(am__append_3)
TESTS_ENVIRONMENT = \
srcdir=$(srcdir) \
diff -Nurd -x'*~' pango-1.24.5.orig/update-pango-modules pango-1.24.5/update-pango-modules
--- pango-1.24.5.orig/update-pango-modules 1969-12-31 19:00:00.000000000 -0500
+++ pango-1.24.5/update-pango-modules 2009-07-21 15:58:10.000000000 -0400
@@ -0,0 +1,20 @@
+#!/bin/sh -e
+#
+# update-pango-modules
+#
+# Packages which install pango module(s) should call update-pango-modules
+# in their PostInstScript and PostRmScript to update the pango.module file.
+#
+
+CONFDIR=@SYSCONFDIR@/pango
+CONFFILE=$CONFDIR/pango.modules
+
+mkdir -p $CONFDIR
+
+TMPFILE=`tempfile`
+pango-querymodules >$TMPFILE
+
+mv -f $TMPFILE $CONFFILE
+chmod 0644 $CONFFILE
+
+exit 0

pango1-xft2-ft219 _unstable_ port .patch