gtkspell2-shlibs stable port information

Package: gtkspell2-shlibs
Version: 2.0.16
Revision: 3
BuildDepends: <<
aspell-dev (>= 0.60.5-1002),
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
enchant1-dev (>= 1.4.2-1),
fink (>= 0.24.12),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.1-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
glitz,
gtk-doc (>= 1.13-5),
gtk+2-dev (>= 2.18.0-1),
intltool40,
libgettext8-dev,
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
x11-dev
<<
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
enchant1-shlibs (>= 1.4.2-1),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libgettext8-shlibs,
pango1-xft2-ft219-shlibs (>= 1.24.5-4)
<<
Replaces: gtkspell-shlibs
Conflicts: gtkspell-shlibs
Source: http://gtkspell.sourceforge.net/download/gtkspell-%v.tar.gz
Source-MD5: f75dcc9338f182c571b321d37c606a94
PatchFile: %n.patch
PatchFile-MD5: 3434d7a32039c3762a645d03a80426d8
SetCFLAGS: -Os
ConfigureParams: --mandir=%p/share/man --enable-gtk-doc --enable-dependency-tracking --disable-static PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
CompileScript: <<
./configure %c
make
fink-package-precedence --prohibit-bdep gtkspell2-dev .
<<
InstallScript: <<
make install DESTDIR=%d
perl -ni -e 'print unless /Libs.private:/' %i/lib/pkgconfig/gtkspell-2.0.pc
<<
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README
Shlibs: %p/lib/libgtkspell.0.dylib 1.0.0 %n (>= 2.0.11-1)
SplitOff: <<
Package: gtkspell2-dev
Depends: gtkspell2-shlibs (= %v-%r)
Replaces: gtkspell, gtkspell2 (<< 2.0.11-1), gtkspell2-shlibs (<< 2.0.11-1)
Conflicts: gtkspell
BuildDependsOnly: True
Files: <<
include
lib/libgtkspell.{dylib,la}
lib/pkgconfig
share/gtk-doc
<<
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README
<<
Description: Highlight misspelled words as you type
DescUsage: <<
This suite is just a library; there is no userland runtime
<<
DescDetail: <<
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words
in a GtkTextView widget as you type.
<<
DescPort: <<
Disentangle PACKAGE and GETTEXT_PACKAGE in gtkspell.c. Rename
gettext dictionaries to allow concurrent installation when new
libversion comes.

Upstream does not do libversioning--must check manually each
%v and force install_name or --libdir if ABI break.

Recent glib doesn't publish -lintl, so pass it directly.
<<
DescPackaging: <<
Clean up .pc Libs.private: don't need entries that are not in
public interface to avoid publishing useless and hidden
InheritedBuildDepends.
<<
License: GPL
Maintainer: The Gnome Core Team
Homepage: http://gtkspell.sourceforge.net/

gtkspell2-shlibs stable port .patch

diff -Nurd -x'*~' gtkspell-2.0.16.orig/configure gtkspell-2.0.16/configure
--- gtkspell-2.0.16.orig/configure 2009-10-22 22:57:15.000000000 -0400
+++ gtkspell-2.0.16/configure 2010-03-16 04:39:47.000000000 -0400
@@ -13174,7 +13174,7 @@
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
< $srcdir/po/POTFILES.in > po/POTFILES

-GETTEXT_PACKAGE=$PACKAGE
+GETTEXT_PACKAGE="${PACKAGE}-0"


cat >>confdefs.h <<_ACEOF
diff -Nurd -x'*~' gtkspell-2.0.16.orig/gtkspell/Makefile.in gtkspell-2.0.16/gtkspell/Makefile.in
--- gtkspell-2.0.16.orig/gtkspell/Makefile.in 2009-10-22 22:57:14.000000000 -0400
+++ gtkspell-2.0.16/gtkspell/Makefile.in 2010-03-16 04:47:03.000000000 -0400
@@ -219,7 +219,7 @@
top_srcdir = @top_srcdir@
lib_LTLIBRARIES = libgtkspell.la
AM_CFLAGS = @GTKSPELL_CFLAGS@ -DG_LOG_DOMAIN=\"gtkspell\" -DLOCALEDIR=\""$(datadir)/locale"\"
-libgtkspell_la_LIBADD = @GTKSPELL_LIBS@ @SPELLER_LIB@
+libgtkspell_la_LIBADD = @GTKSPELL_LIBS@ @SPELLER_LIB@ $(INTLLIBS)
libgtkspell_la_includedir = $(includedir)/gtkspell-2.0/gtkspell
libgtkspell_la_include_HEADERS = gtkspell.h
libgtkspell_la_SOURCES = gtkspell.c deprecated.c gtkspell.h
@@ -284,7 +284,7 @@
rm -f "$${dir}/so_locations"; \
done
libgtkspell.la: $(libgtkspell_la_OBJECTS) $(libgtkspell_la_DEPENDENCIES)
- $(LINK) -rpath $(libdir) $(libgtkspell_la_OBJECTS) $(libgtkspell_la_LIBADD) $(LIBS)
+ $(LINK) -rpath $(libdir) $(libgtkspell_la_OBJECTS) $(libgtkspell_la_LIBADD) $(LIBS) -no-undefined

mostlyclean-compile:
-rm -f *.$(OBJEXT)
diff -Nurd -x'*~' gtkspell-2.0.16.orig/gtkspell/gtkspell.c gtkspell-2.0.16/gtkspell/gtkspell.c
--- gtkspell-2.0.16.orig/gtkspell/gtkspell.c 2009-10-09 15:01:47.000000000 -0400
+++ gtkspell-2.0.16/gtkspell/gtkspell.c 2010-03-16 04:39:47.000000000 -0400
@@ -11,7 +11,7 @@
#include "../config.h"
#include "gtkspell.h"

-#define _(String) dgettext (PACKAGE, String)
+#define _(String) dgettext (GETTEXT_PACKAGE, String)

#define GTKSPELL_MISSPELLED_TAG "gtkspell-misspelled"

@@ -740,8 +740,8 @@
GtkSpell *spell;

#ifdef ENABLE_NLS
- bindtextdomain(PACKAGE, LOCALEDIR);
- bind_textdomain_codeset(PACKAGE, "UTF-8");
+ bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
#endif

if (error)

gtkspell2-shlibs _unstable_ port .patch