Package: pango1-xft2-ft219 # >1.24.5 bad! https://bugzilla.gnome.org/show_bug.cgi?id=593240 # latest versions will drop "pangox"...need new %n for -shlibs! Version: 1.24.5 Revision: 10 Description: GTK+ - i18n libs (for freetype >= 2.1.9) License: LGPL Maintainer: The Gnome Core Team Depends: << %N-shlibs (= %v-%r), cairo-shlibs (>= 1.12.14-1), dpkg-base-files, fontconfig2-shlibs (>= 2.10.0-1), freetype219-shlibs (>= 2.5.5-1), glib2-shlibs (>= 2.22.0-1), x11-shlibs, xft2-shlibs (>= 2.2.0-1) << BuildDepends: << cairo (>= 1.12.14-1), fink-package-precedence, fontconfig2-dev (>= 2.10.0-1), freetype219 (>= 2.5.5-1), glib2-dev (>= 2.22.0-1), glitz, gtk-doc (>= 1.8-1), libthai-dev (>= 0.1.19-1), pixman (>= 0.16.0-1), pkgconfig (>= 0.23), x11-dev, xft2-dev (>= 2.2.0-1) << Source: mirror:gnome:sources/pango/1.24/pango-%v.tar.bz2 Source-MD5: 815416a452e9cccc172fed9862401f37 PatchFile: %n.patch PatchFile-MD5: 5da8a38247744d93db6bd4320f270548 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 # autoconf2.6ish patch for modern XQuartz paths perl -pi -e "s|/usr/lpp/Xamples|/opt/X11|" configure << SetLDFLAGS: -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 \ --disable-explicit-deps \ --enable-gtk-doc \ ac_cv_header_Carbon_Carbon_h=no \ PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH" << CompileScript: << LD_TWOLEVEL_NAMESPACE=1 ./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/ touch $SYSCONFDIR/pango/pango.modules # 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 Depends: << cairo-shlibs (>= 1.12.14-1), fontconfig2-shlibs (>= 2.10.0-1), freetype219-shlibs (>= 2.5.5-1), glib2-shlibs (>= 2.22.0-1), libthai-shlibs (>= 0.1.19-1), x11-shlibs, xft2-shlibs (>= 2.2.0-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 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 << << PreInstScript: << # clean up from before pango.modules was a ConfFiles if [ "upgrade" = "$1" ]; then if dpkg --compare-versions "$2" "<<" "1.24.5-9"; then rm %p/lib/pango-ft219/etc/pango/pango.modules fi fi << PostInstScript: << if [ configure = "$1" ]; then update-pango-ft219-modules fi << ConfFiles: << %p/lib/pango-ft219/etc/pango/pangox.aliases %p/lib/pango-ft219/etc/pango/pango.modules << 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 Use Requires in .pc for x11 details instead of hardcoding x11's flags directly (makes .deb more portable). <<