gok stable port information

Package: gok

# abandoned upstream in favor of caribou
Distribution: 10.5, 10.6

Version: 2.28.1
Revision: 2
Depends: <<
at-spi (>= 1.28.0-1),
at-spi-shlibs (>= 1.28.0-1),
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
dbus (>= 1.2.1-1),
dbus-glib1.2-shlibs,
dbus1.3-shlibs,
dpkg-base-files,
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gconf2 (>= 2.28.0-1),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gnome-speech-shlibs (>= 0.4.25-2),
gtk+2 (>= 2.18.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libbonobo2 (>= 2.24.2-1),
libbonobo2-shlibs (>= 2.24.2-1),
libcanberra-gtk0-shlibs (>= 0.23-1),
libcanberra0-shlibs (>= 0.23-1),
libgettext8-shlibs,
libglade2-shlibs (>= 2.6.4-4),
libusb-shlibs,
libwnck1.22-shlibs (>= 2.28.0-1),
libxml2-shlibs (>= 2.6.30-1),
orbit2-shlibs (>= 2.14.17-2),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
rarian-compat,
x11-shlibs
<<
BuildDepends: <<
at-spi-dev (>= 1.28.0-1),
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
dbus-glib1.2-dev,
dbus1.3-dev,
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gconf2-dev (>= 2.28.0-1),
gettext-bin,
gettext-tools (>= 0.17),
glib2-dev (>= 2.22.0-1),
glitz,
gnome-speech-dev (>= 0.4.25-2),
gtk-doc (>= 1.13-5),
gtk+2-dev (>= 2.18.0-1),
intltool40,
libbonobo2-dev (>= 2.24.2-1),
libcanberra-gtk0 (>= 0.23-1),
libcanberra0 (>= 0.23-1),
libgettext8-dev,
libglade2 (>= 2.6.4-4),
libiconv-dev,
libusb,
libwnck1.22 (>= 2.28.0-1),
libxml2 (>= 2.6.30-1),
orbit2-dev (>= 2.14.17-2),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
popt,
x11-dev
<<
Source: mirror:gnome:sources/%n/2.28/%n-%v.tar.bz2
Source-MD5: d7305f12c703e13eeaed796f996dbc86
PatchScript: <<
%{default_script}
find . -name Makefile.in | xargs perl -pi -e "s/-scrollkeeper-update/#-scrollkeeper-update/g"
perl -pi -e 's,/usr/share/gtk-doc/html,%p/share/gtk-doc/html,g' docs/reference/html/*.html
<<
PatchFile: %n.patch
PatchFile-MD5: c7a0e7144ce2337af2b82718f05e6a8d
SetCPPFLAGS: -I/usr/X11R6/include
SetCFLAGS: -Os
SetLIBS: -L/usr/X11R6/lib
ConfigureParams: --enable-libusb-input --disable-schemas-install --libexecdir=%p/lib/%n --mandir=%p/share/man --enable-dependency-tracking 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 .
<<
InstallScript: make -j1 install DESTDIR="%d"
PostInstScript: <<
if [ configure = "$1" ]; then
scrollkeeper-update
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/gok.schemas >/dev/null
fi
gtk-update-icon-cache -f -t %p/share/icons/hicolor || :
<<
PostRmScript: <<
if [ update != "$1" ]; then
scrollkeeper-update
fi
<<
ConfFiles: %p/etc/gconf/schemas/gok.schemas
DocFiles: AUTHORS COPYING ChangeLog README
DescPackaging: <<
Hack out automatic scrollkeeper-update. See:
http://bugzilla.gnome.org/show_bug.cgi?id=482645

Regenerating gtk-doc files The Right Way (--enable-gtk-doc) is
very slow, so just patch the prefix in the bad URLs in the
existing generated files.
<<
DescPort: <<
Recent glib doesn't publish -lintl, so pass it directly.

Disable LANGDIRS setting. Uses 'echo -n', which is not
portable, and the results are only used by git anyway. See:
https://bugzilla.gnome.org/show_bug.cgi?id=613580
<<
Description: Gnome Onscreen Keyboard
License: GPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org/

gok stable port .patch

diff -Nurd -x'*~' gok-2.28.1.orig/configure gok-2.28.1/configure
--- gok-2.28.1.orig/configure 2009-10-19 12:02:17.000000000 -0400
+++ gok-2.28.1/configure 2010-03-22 08:10:41.000000000 -0400
@@ -13740,7 +13740,7 @@



-LANGDIRS="`$GREP -v "^\#" po/LINGUAS | while read line; do echo -n "$line/ "; done `"
+LANGDIRS="crash if this is used but I don't think it is"



diff -Nurd -x'*~' gok-2.28.1.orig/gok/Makefile.in gok-2.28.1/gok/Makefile.in
--- gok-2.28.1.orig/gok/Makefile.in 2009-10-19 12:02:18.000000000 -0400
+++ gok-2.28.1/gok/Makefile.in 2010-02-28 23:52:00.000000000 -0500
@@ -394,7 +394,7 @@
-DDATADIR=\""$(datadir)"\" -DLIBDIR=\""$(libdir)"\" \
-I$(top_srcdir) -I$(top_builddir) $(GOK_CFLAGS) \
$(am__append_1)
-LDADD = $(GOK_LIBS) $(X_LIBS) @LT_VERSION_INFO@ $(am__append_2)
+LDADD = $(GOK_LIBS) $(X_LIBS) @LT_VERSION_INFO@ $(am__append_2) $(INTLLIBS)
gok_LDFLAGS = -export-dynamic
gok_SOURCES = callbacks.c callbacks.h gok-branchback-stack.c \
gok-branchback-stack.h gok-button.c gok-button.h gok-chunker.c \

gok _unstable_ port .patch