the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gconf2
Version: 2.28.0
Revision: 5
Depends: <<
%N-shlibs (>= %v-%r),
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
dbus (>= 1.2.1-1),
dbus-glib1.2-shlibs,
dbus1.3-shlibs,
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,
libxml2-shlibs (>= 2.6.30-1),
orbit2 (>= 2.14.17-2),
orbit2-shlibs (>= 2.14.17-2),
pango1-xft2-ft219-shlibs (>= 1.24.5-4)
<<
BuildDepends: <<
atk1 (>= 1.28.0-1),
autoconf2.6,
automake1.11,
cairo (>= 1.8.8-3),
dbus-glib1.2-dev,
dbus1.3-dev,
fink (>= 0.24.12-1),
fink-package-precedence (>= 0.5),
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gettext-bin,
gettext-tools (>= 0.14.5-4),
glib2-dev (>= 2.22.0-1),
glitz,
gtk+2-dev (>= 2.18.0-1),
gtk-doc (>= 1.13-5),
intltool40,
libgettext8-dev,
libiconv-dev,
libtool2,
libxml2 (>= 2.6.30-1),
openldap24-dev (>= 2.4.17-1),
orbit2-dev (>= 2.14.17-2),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
system-openssl-dev,
x11-dev
<<
Source: mirror:gnome:sources/GConf/2.28/GConf-%v.tar.bz2
Source-MD5: ad2aeb9c7d906b274954c51a615caeac
PatchFile: %n.patch
PatchFile-MD5: 2cf30fa898929a19c341c6d9d423945b
SetCPPFLAGS: -I%p/lib/fontconfig2/include
SetLDFLAGS: -L%p/lib/fontconfig2/lib -L%p/lib/system-openssl/lib
SetCFLAGS: -Os
ConfigureParams: --mandir=%p/share/man --libexecdir=%p/lib/%n --disable-debug --enable-dependency-tracking --disable-static --enable-gtk-doc --enable-gtk --disable-defaults-service PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
CompileScript: <<
autoreconf -fi
PERL=/usr/bin/perl ./configure %c
make
fink-package-precedence --prohibit-bdep %n-dev .
<<
InstallScript: <<
make -j1 install DESTDIR=%d
# perl -pi -e 's,-L%p/lib/system-openssl/lib,,' %i/lib/libgconf-2.la
perl -ni -e 'print unless /Requires.private:/' %i/lib/pkgconfig/gconf-2.0.pc
<<
SplitOff: <<
Package: %N-shlibs
Depends: <<
dbus-glib1.2-shlibs,
dbus1.3-shlibs,
glib2-shlibs (>= 2.22.0-1),
libgettext8-shlibs,
libxml2-shlibs (>= 2.6.30-1),
openldap24-shlibs (>= 2.4.17-1),
orbit2-shlibs (>= 2.14.17-2)
<<
Files: <<
lib/libgconf-2.*.dylib
lib/GConf
share/locale
<<
Shlibs: %p/lib/libgconf-2.4.dylib 6.0.0 %n (>= 2.10.0-1)
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README TODO
<<
SplitOff2: <<
Package: %N-dev
Depends: <<
%N-shlibs (= %v-%r),
dpkg-base-files
<<
BuildDependsOnly: True
Files: <<
include
lib/libgconf-2.*
lib/pkgconfig
share/aclocal
share/gtk-doc
<<
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README TODO
<<
ConfFiles: %p/etc/gconf/2/path
DocFiles: AUTHORS COPYING ChangeLog po/ChangeLog:ChangeLog.po NEWS README TODO
Description: Gnome configuration database system
DescUsage: <<
Fink packages that install .schemas files must disable their gconf
schemas installation (gconftool-2 calls) during build time: modern
./configure scripts usually have a --disable-schemas-install flag.
They then must list all of the schemas files as ConfFiles and add
gconftool-2 calls in PostInstallScript to install each one.
If a package has foo.schemas and bar.schemas, a typical .info might
contain:
ConfigureParams: --disable-schemas-install
ConfFiles: <<
%%p/etc/gconf/schemas/foo.schemas
%%p/etc/gconf/schemas/bar.schemas
<<
PostInstScript: <<
if [ configure = "$1" ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
export schemadir=%%p/etc/gconf/schemas
gconftool-2 --makefile-install-rule $schemadir/foo.schemas >/dev/null
gconftool-2 --makefile-install-rule $schemadir/bar.schemas >/dev/null
fi
<<
Note that the Debian linux distro (and maybe others) manually
override the default schemas location (share/ instead of etc/)
by policy; fink does not due to inertia...no compelling
functional reason to switch, so maintain compatibility with
older packages.
<<
DescPort: <<
Patched gconf_get_lock_or_current_holder() to call sync() after
ior was written in lockfile.
<<
DescPackaging: <<
gconf.h may include popt.h if it exists, but does nothing with
it and there is no use of libpopt, so no reason to depend on
the popt packages
defaults-service requires polkit; disable so we get consistent
build even if fink eventually gets a polkit package.
Disable xml-test because it tries to link against a .so
http://bugzilla.gnome.org/show_bug.cgi?id=587208
Adjust systemwide config path for finkified /etc
http://bugzilla.gnome.org/show_bug.cgi?id=572027
Clean up .pc Requires.private: don't need entries that are not
#included by public .h to avoid publishing useless and hidden
InheritedBuildDepends.
<<
License: LGPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org/
diff -Nurd -x'*~' GConf-2.26.2.orig/Makefile.am GConf-2.26.2/Makefile.am
--- GConf-2.26.2.orig/Makefile.am 2009-05-05 22:26:13.000000000 -0400
+++ GConf-2.26.2/Makefile.am 2009-06-11 19:11:12.000000000 -0400
@@ -22,10 +22,12 @@
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-defaults-service
install-data-local:
- -mkdir -p $(DESTDIR)$(sysgconfdir)/gconf.xml.defaults
- -chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.defaults
- -mkdir -p $(DESTDIR)$(sysgconfdir)/gconf.xml.mandatory
- -chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.mandatory
+ mkdir -p $(DESTDIR)$(sysgconfdir)/gconf.xml.defaults
+ chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.defaults
+ mkdir -p $(DESTDIR)$(sysgconfdir)/gconf.xml.mandatory
+ chmod 755 $(DESTDIR)$(sysgconfdir)/gconf.xml.mandatory
+ mkdir -p $(DESTDIR)$(sysconfdir)/gconf/gconf.xml.system
+ chmod 755 $(DESTDIR)$(sysconfdir)/gconf/gconf.xml.system
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gconf-2.0.pc
diff -Nurd -x'*~' GConf-2.26.2.orig/backends/Makefile.am GConf-2.26.2/backends/Makefile.am
--- GConf-2.26.2.orig/backends/Makefile.am 2009-04-25 02:44:06.000000000 -0400
+++ GConf-2.26.2/backends/Makefile.am 2009-06-11 18:51:46.000000000 -0400
@@ -30,7 +30,7 @@
libgconfbackend_xml_la_LDFLAGS = -avoid-version -module -no-undefined
libgconfbackend_xml_la_LIBADD = $(DEPENDENT_LIBS) $(top_builddir)/gconf/libgconf-$(MAJOR_VERSION).la $(INTLLIBS)
-noinst_PROGRAMS = xml-test
+noinst_PROGRAMS =
xml_test_SOURCES= xml-test.c
xml_test_LDADD = \
diff -Nurd -x'*~' GConf-2.26.2.orig/gconf/Makefile.am GConf-2.26.2/gconf/Makefile.am
--- GConf-2.26.2.orig/gconf/Makefile.am 2009-04-25 02:44:06.000000000 -0400
+++ GConf-2.26.2/gconf/Makefile.am 2009-06-11 18:47:50.000000000 -0400
@@ -123,7 +123,7 @@
EXTRA_DIST=GConfX.idl default.path.in org.gnome.GConf.service.in gconfmarshal.list regenerate-enum-header.sh regenerate-enum-footer.sh
default.path: $(srcdir)/default.path.in
- sed -e 's,[@]sysgconfdir[@],$(sysgconfdir),g' \
+ sed -e 's,[@]sysgconfdir[@],$(sysgconfdir),g; s,[@]sysconfdir[@],$(sysconfdir),g' \
<$(srcdir)/default.path.in >default.path
org.gnome.GConf.service: $(srcdir)/org.gnome.GConf.service.in
sed -e 's,[@]libexecdir[@],$(libexecdir),g' \
diff -Nurd -x'*~' GConf-2.26.2.orig/gconf/default.path.in GConf-2.26.2/gconf/default.path.in
--- GConf-2.26.2.orig/gconf/default.path.in 2009-04-25 02:44:06.000000000 -0400
+++ GConf-2.26.2/gconf/default.path.in 2009-06-11 18:15:00.000000000 -0400
@@ -21,7 +21,7 @@
xml:readwrite:$(HOME)/.gconf
# Location for system-wide settings that are set by the defaults mechanism
-xml:readonly:/etc/gconf/gconf.xml.system
+xml:readonly:@sysconfdir@/gconf/gconf.xml.system
# To read in any defaults settings that the Sys Admin may have created
# prior to a desktop system upgrade. The SysAdmin can stick default values
diff -Nurd -x'*~' GConf-2.26.2.orig/gconf/gconf-internals.c GConf-2.26.2/gconf/gconf-internals.c
--- GConf-2.26.2.orig/gconf/gconf-internals.c 2009-05-14 11:13:40.000000000 -0400
+++ GConf-2.26.2/gconf/gconf-internals.c 2009-06-11 18:00:25.000000000 -0400
@@ -2620,6 +2620,9 @@
}
}
+ /* needed on Darwin */
+ fsync (lock->lock_fd);
+
return lock;
}