the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gpdf
Version: 2.10.0
Revision: 1009
GCC: 4.0
Depends: <<
atk1-shlibs (>= 1.28.0-1),
dpkg-base-files,
cairo-shlibs (>= 1.8.8-3),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gconf2 (>= 2.28.0-1),
gconf2-shlibs (>= 2.28.0-1),
ghostscript (>= 8.00-1) | system-ghostscript8,
glib2-shlibs (>= 2.22.0-1),
gnome-vfs2-unified-shlibs (>= 1:2.24.2-1),
gtk+2-shlibs (>= 2.18.0-1),
libart2-shlibs (>= 2.3.16-1),
libbonobo2 (>= 2.24.2-1),
libbonobo2-shlibs (>= 2.24.2-1),
libbonoboui2 (>= 2.24.2-1),
libbonoboui2-shlibs (>= 2.24.2-1),
libgettext8-shlibs,
libglade2-shlibs (>= 2.6.4-6),
libgnome2-shlibs (>= 2.28.0-1),
libgnomecanvas2-shlibs (>= 2.26.0-3),
libgnomeprint2.2-shlibs (>= 2.18.6-5),
libgnomeprintui2.2-shlibs (>= 2.18.4-4),
libgnomeui2-shlibs (>= 2.24.2-2),
libpaper1-shlibs,
libxml2-shlibs (>= 2.6.30-1),
orbit2-shlibs (>= 2.14.17-2),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
popt-shlibs,
rarian-compat,
x11-shlibs
<<
BuildDepends: <<
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
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,
glib2-dev (>= 2.22.0-1),
glitz,
gnome-vfs2-unified-dev (>= 1:2.24.2-1),
gtk+2-dev (>= 2.18.0-1),
intltool40,
libart2 (>= 2.3.16-1),
libbonobo2-dev (>= 2.24.2-1),
libbonoboui2-dev (>= 2.24.2-1),
libgettext8-dev,
libglade2 (>= 2.6.4-6),
libgnome2-dev (>= 2.28.0-1),
libgnomecanvas2-dev (>= 2.26.0-3),
libgnomeprint2.2-dev (>= 2.18.6-5),
libgnomeprintui2.2-dev (>= 2.18.4-4),
libgnomeui2-dev (>= 2.24.2-2),
libiconv-dev,
libpaper1-dev,
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-1),
popt,
tetex-base,
x11-dev
<<
Source: mirror:gnome:sources/%n/2.10/%n-%v.tar.bz2
Source-MD5: 9278cd3b9d06e3b1d364452f0e512fa9
PatchFile: %n.patch
PatchFile-MD5: f8e46a7837ce7abc9f765add03a02f18
PatchScript: <<
%{default_script}
perl -pi.bak -e "s/-scrollkeeper-update/#-scrollkeeper-update/g" help/omf.make help/*/Makefile.in
<<
SetCFLAGS: -Os
ConfigureParams: --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" --disable-schemas-install
CompileScript: <<
./configure %c
make
fink-package-precedence .
<<
InstallScript: <<
# GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 make install DESTDIR=%d
make install DESTDIR=%d
<<
PostInstScript: <<
if [ configure = "$1" ]; then
scrollkeeper-update -q
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/gpdf.schemas >/dev/null
fi
<<
PostRmScript: <<
if [ remove != "$1" ]; then
scrollkeeper-update -q
fi
<<
ConfFiles: %p/etc/gconf/schemas/gpdf.schemas
DocFiles: AUTHORS CHANGES COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README README.GPdf
Description: GNOME pdf viewer
DescPort: <<
The "uint" type isn't getting defined on 10.4, so use the more
portable "guint" type unstead (fix by Martin Costabel). See:
http://bugzilla.gnome.org/show_bug.cgi?id=304735
Fix opening of files whose first punctuation character is a colon.
See: http://bugzilla.gnome.org/show_bug.cgi?id=160639
Recent glib doesn't publish -lintl, so pass it directly.
<<
License: GPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org/
diff -Nurd -x'*~' gpdf-2.10.0.orig/configure gpdf-2.10.0/configure
--- gpdf-2.10.0.orig/configure 2005-03-07 14:46:20.000000000 -0500
+++ gpdf-2.10.0/configure 2010-03-09 01:19:55.000000000 -0500
@@ -9660,6 +9660,7 @@
+EXTRA_GNOME_LIBS="$EXTRA_GNOME_LIBS $INTLLIBS"
GNOME_PRINT_PRIVATE_CFLAGS="-I`$PKG_CONFIG libgnomeprint-2.2 --variable privateincludedir`"
diff -Nurd -x'*~' gpdf-2.10.0.orig/shell/eel-vfs-extensions.c gpdf-2.10.0/shell/eel-vfs-extensions.c
--- gpdf-2.10.0.orig/shell/eel-vfs-extensions.c 2003-12-29 15:14:14.000000000 -0500
+++ gpdf-2.10.0/shell/eel-vfs-extensions.c 2005-09-21 12:42:46.000000000 -0400
@@ -48,6 +48,11 @@
#include
#include
+/* needed for stat() */
+#include
+#include
+#include
+
#define READ_CHUNK_SIZE 8192
struct EelReadFileHandle {
@@ -986,6 +991,7 @@
eel_make_uri_from_shell_arg (const char *location)
{
char *uri;
+ struct stat info;
g_return_val_if_fail (location != NULL, g_strdup (""));
@@ -997,7 +1003,8 @@
uri = gnome_vfs_get_uri_from_local_path (location);
break;
default:
- if (has_valid_scheme (location)) {
+ /* stat() returns 0 if the file is readable */
+ if (stat(location, &info) && has_valid_scheme (location)) {
uri = g_strdup (location);
} else {
uri = file_uri_from_local_relative_path (location);
diff -Nurd -x'*~' gpdf-2.10.0.orig/xpdf/TextOutputDev.h gpdf-2.10.0/xpdf/TextOutputDev.h
--- gpdf-2.10.0.orig/xpdf/TextOutputDev.h 2004-05-17 15:37:57.000000000 -0400
+++ gpdf-2.10.0/xpdf/TextOutputDev.h 2010-03-09 01:02:29.000000000 -0500
@@ -25,7 +25,9 @@
class GfxFont;
class GfxState;
class UnicodeMap;
-
+class TextBlock;
+class TextPage;
+class TextLineFrag;
//------------------------------------------------------------------------
typedef void (*TextOutputFunc)(void *stream, char *text, int len);
diff -Nurd -x'*~' gpdf-2.10.0.orig/xpdf/gpdf-control.cc gpdf-2.10.0/xpdf/gpdf-control.cc
--- gpdf-2.10.0.orig/xpdf/gpdf-control.cc 2004-12-28 15:04:18.000000000 -0500
+++ gpdf-2.10.0/xpdf/gpdf-control.cc 2010-03-09 01:02:29.000000000 -0500
@@ -213,7 +213,7 @@
g_return_if_fail (GPDF_IS_NON_NULL_CONTROL (control));
priv = control->priv;
- if ((to_id = (unsigned int)
+ if ((to_id = (unsigned int) (uintptr_t)
g_object_get_data (G_OBJECT (control),
"status-timeout-id")) != 0) {
g_object_set_data (G_OBJECT (control),
diff -Nurd -x'*~' gpdf-2.10.0.orig/xpdf/gpdf-thumbnails-view.cc gpdf-2.10.0/xpdf/gpdf-thumbnails-view.cc
--- gpdf-2.10.0.orig/xpdf/gpdf-thumbnails-view.cc 2004-08-02 10:17:44.000000000 -0400
+++ gpdf-2.10.0/xpdf/gpdf-thumbnails-view.cc 2005-09-21 12:40:52.000000000 -0400
@@ -344,7 +344,7 @@
if (y) {
*y = GPDF_THUMBNAILS_MARGIN_TOP +
- (uint)((page -1) / priv->page_per_row) *
+ (guint)((page -1) / priv->page_per_row) *
(priv->max_page_height + GPDF_THUMBNAILS_ROW_SEP +
GPDF_THUMBNAILS_TEXT_HEIGHT +
GPDF_THUMBNAILS_INNER_MARGIN_BOTTOM +
diff -Nurd -x'*~' gpdf-2.10.0.orig/xpdf/gpdf-util.h gpdf-2.10.0/xpdf/gpdf-util.h
--- gpdf-2.10.0.orig/xpdf/gpdf-util.h 2004-02-26 15:39:18.000000000 -0500
+++ gpdf-2.10.0/xpdf/gpdf-util.h 2010-03-09 01:02:29.000000000 -0500
@@ -9,7 +9,9 @@
#define END_EXTERN_C }
+#include "gpdf-g-switch.h"
#include
+#include "gpdf-g-switch.h"
/* FIXME kill when GNOME's macros are fixed */
/*