aboutsummaryrefslogtreecommitdiffstats
path: root/devel/dconf
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2010-11-21 01:40:04 +0800
committerkwm <kwm@FreeBSD.org>2010-11-21 01:40:04 +0800
commitdd265f8f1e9b50eeddf22a48cc799d2fbe6ebd0d (patch)
treea5566b73eae65f38f2cb169b65e69bf053738765 /devel/dconf
parent6d6aa83ef113b30dfcd9150f6af4273c3b460d34 (diff)
downloadfreebsd-ports-gnome-dd265f8f1e9b50eeddf22a48cc799d2fbe6ebd0d.tar.gz
freebsd-ports-gnome-dd265f8f1e9b50eeddf22a48cc799d2fbe6ebd0d.tar.zst
freebsd-ports-gnome-dd265f8f1e9b50eeddf22a48cc799d2fbe6ebd0d.zip
Add dconf.
Dconf will be the replacement of gconf for GNOME 3. This was a late addition to the gnome 2.32 update, and I forgot to add it to update patch. PR: ports/152424 Submitted by: Pascal Stumpf <Pascal.Stumpf@cubes.de> Pointyhat to: kwm@
Diffstat (limited to 'devel/dconf')
-rw-r--r--devel/dconf/Makefile36
-rw-r--r--devel/dconf/distinfo3
-rw-r--r--devel/dconf/files/patch-client_Makefile.in41
-rw-r--r--devel/dconf/files/patch-common_shmdir.c16
-rw-r--r--devel/dconf/files/patch-engine_dconf-engine.c11
-rw-r--r--devel/dconf/files/patch-gsettings_dconfsettingsbackend.c36
-rw-r--r--devel/dconf/pkg-descr18
-rw-r--r--devel/dconf/pkg-plist41
8 files changed, 202 insertions, 0 deletions
diff --git a/devel/dconf/Makefile b/devel/dconf/Makefile
new file mode 100644
index 000000000000..a4cf065727d9
--- /dev/null
+++ b/devel/dconf/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: dconf
+# Date created: 28 May 2010
+# Whom: Koop Mast <kwm@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/devel/dconf/Makefile,v 1.9 2010/11/04 16:41:01 kwm Exp $
+#
+
+PORTNAME= dconf
+PORTVERSION= 0.5.1
+PORTREVISION= 2
+CATEGORIES= devel gnome
+MASTER_SITES= GNOME
+DIST_SUBDIR= gnome3
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A configuration database system for GNOME
+
+BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection \
+ valac:${PORTSDIR}/lang/vala
+LIB_DEPENDS= gee.2:${PORTSDIR}/devel/libgee
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+#USE_GETTEXT= yes
+USE_GNOME= gnomehack gtk20
+USE_LDCONFIG= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+post-install:
+ -${LOCALBASE}/bin/gio-querymodules ${PREFIX}/lib/gio/modules
+
+.include <bsd.port.mk>
diff --git a/devel/dconf/distinfo b/devel/dconf/distinfo
new file mode 100644
index 000000000000..d22d2564945e
--- /dev/null
+++ b/devel/dconf/distinfo
@@ -0,0 +1,3 @@
+MD5 (gnome3/dconf-0.5.1.tar.bz2) = c905497d0255fe2ba58564f9655908ab
+SHA256 (gnome3/dconf-0.5.1.tar.bz2) = 0083d70e1b5e540d8d4b3f04fa5d17dff4c574136682fe3bdd9b5ecc196ec4f6
+SIZE (gnome3/dconf-0.5.1.tar.bz2) = 251287
diff --git a/devel/dconf/files/patch-client_Makefile.in b/devel/dconf/files/patch-client_Makefile.in
new file mode 100644
index 000000000000..f0452b9173db
--- /dev/null
+++ b/devel/dconf/files/patch-client_Makefile.in
@@ -0,0 +1,41 @@
+--- client/Makefile.in.orig 2010-11-04 17:09:33.000000000 +0100
++++ client/Makefile.in 2010-11-04 17:18:20.000000000 +0100
+@@ -34,7 +34,7 @@
+ NORMAL_UNINSTALL = :
+ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+-shlib_PROGRAMS = libdconf.so.0.0.0$(EXEEXT)
++shlib_PROGRAMS = libdconf.so.0$(EXEEXT)
+ subdir = client
+ DIST_COMMON = $(am__dist_gir_DATA_DIST) $(dconfinclude_HEADERS) \
+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+@@ -332,9 +332,10 @@
+
+ clean-shlibPROGRAMS:
+ -test -z "$(shlib_PROGRAMS)" || rm -f $(shlib_PROGRAMS)
+-libdconf.so.0.0.0$(EXEEXT): $(libdconf_so_0_0_0_OBJECTS) $(libdconf_so_0_0_0_DEPENDENCIES)
+- @rm -f libdconf.so.0.0.0$(EXEEXT)
++libdconf.so.0$(EXEEXT): $(libdconf_so_0_0_0_OBJECTS) $(libdconf_so_0_0_0_DEPENDENCIES)
++ @rm -f libdconf.so.0$(EXEEXT)
+ $(AM_V_CCLD)$(libdconf_so_0_0_0_LINK) $(libdconf_so_0_0_0_OBJECTS) $(libdconf_so_0_0_0_LDADD) $(LIBS)
++ $(AM_V_GEN) ln -fs libdconf.so.0 libdconf.so
+
+ mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+@@ -750,14 +751,10 @@
+
+ @HAVE_INTROSPECTION_TRUE@include $(INTROSPECTION_MAKEFILE)
+
+-@HAVE_INTROSPECTION_TRUE@dconf-1.0.gir: libdconf.so.0 libdconf.so
+-
+-libdconf.so.0 libdconf.so: libdconf.so.0.0.0
+- $(AM_V_GEN) ln -fs libdconf.so.0.0.0 $@
++@HAVE_INTROSPECTION_TRUE@dconf-1.0.gir: libdconf.so.0
+
+ install-data-hook:
+- ln -fs libdconf.so.0.0.0 $(DESTDIR)$(shlibdir)/libdconf.so.0
+- ln -fs libdconf.so.0.0.0 $(DESTDIR)$(shlibdir)/libdconf.so
++ ln -fs libdconf.so.0 $(DESTDIR)$(shlibdir)/libdconf.so
+
+ uninstall-hook:
+ rm -f $(DESTDIR)$(shlibdir)/libdconf.so.0
diff --git a/devel/dconf/files/patch-common_shmdir.c b/devel/dconf/files/patch-common_shmdir.c
new file mode 100644
index 000000000000..b8ed3eeb2080
--- /dev/null
+++ b/devel/dconf/files/patch-common_shmdir.c
@@ -0,0 +1,16 @@
+--- common/dconf-shmdir.c.orig 2010-10-21 13:46:17.000000000 +0200
++++ common/dconf-shmdir.c 2010-10-21 13:47:46.000000000 +0200
+@@ -21,8 +21,13 @@
+
+ #include "dconf-shmdir.h"
+
++#ifdef __linux__
+ #include <sys/statfs.h>
+ #include <sys/vfs.h>
++#elif __FreeBSD__
++#include <sys/param.h>
++#include <sys/mount.h>
++#endif
+ #include <errno.h>
+
+ #ifndef NFS_SUPER_MAGIC
diff --git a/devel/dconf/files/patch-engine_dconf-engine.c b/devel/dconf/files/patch-engine_dconf-engine.c
new file mode 100644
index 000000000000..328a8f53fe5f
--- /dev/null
+++ b/devel/dconf/files/patch-engine_dconf-engine.c
@@ -0,0 +1,11 @@
+--- engine/dconf-engine.c.orig 2010-08-04 17:40:53.000000000 +0200
++++ engine/dconf-engine.c 2010-11-03 00:23:07.000000000 +0100
+@@ -144,7 +144,7 @@ dconf_engine_setup_user (DConfEngine *en
+
+ if (fd >= 0)
+ {
+- if (posix_fallocate (fd, 0, 1) == 0)
++ if (ftruncate (fd, 1) == 0)
+ {
+ engine->shm = mmap (NULL, 1, PROT_READ, MAP_SHARED, fd, 0);
+
diff --git a/devel/dconf/files/patch-gsettings_dconfsettingsbackend.c b/devel/dconf/files/patch-gsettings_dconfsettingsbackend.c
new file mode 100644
index 000000000000..4fe175035d88
--- /dev/null
+++ b/devel/dconf/files/patch-gsettings_dconfsettingsbackend.c
@@ -0,0 +1,36 @@
+--- gsettings/dconfsettingsbackend.c.orig 2010-11-03 00:18:46.000000000 +0100
++++ gsettings/dconfsettingsbackend.c 2010-11-03 00:21:03.000000000 +0100
+@@ -155,6 +155,7 @@ dconf_settings_backend_remove_outstandin
+ g_dbus_message_get_sender (message),
+ g_dbus_message_get_body (message),
+ anti_expose, NULL);
++ g_slice_free (Outstanding, tmp);
+
+ found = TRUE;
+ break;
+@@ -457,6 +458,7 @@ dconf_settings_backend_write_tree (GSett
+ gpointer origin_tag)
+ {
+ DConfSettingsBackend *dcsb = (DConfSettingsBackend *) backend;
++ gboolean success = FALSE;
+ volatile guint32 *serial;
+ DConfEngineMessage dcem;
+ GDBusConnection *bus;
+@@ -478,15 +480,11 @@ dconf_settings_backend_write_tree (GSett
+
+ g_settings_backend_keys_changed (backend, prefix, keys, origin_tag);
+
+- return TRUE;
++ success = TRUE;
+ }
+ }
+
+- g_free (prefix);
+- g_free (values);
+- g_free (keys);
+-
+- return FALSE;
++ return success;
+ }
+
+ static void
diff --git a/devel/dconf/pkg-descr b/devel/dconf/pkg-descr
new file mode 100644
index 000000000000..010cc810ef32
--- /dev/null
+++ b/devel/dconf/pkg-descr
@@ -0,0 +1,18 @@
+GConf extends the concept of a configuration registry. It provides
+a simple way for applications and administrators to store data;
+often GConf is used to store preferences for applications.
+
+Some of the features of GConf are:
+GConf provides:
+
+ * Documentation for each configuration key, so that administrators
+ can better modify the value.
+
+ * Notifications to interested applications when configuration data
+ is changed. The notification service works across networks,
+ affecting all login sessions for a single user.
+
+ * Proper locking so that configuration data doesn't get corrupted
+ when accessed by multiple applications at the same time.
+
+WWW: http://www.gnome.org/projects/gconf/
diff --git a/devel/dconf/pkg-plist b/devel/dconf/pkg-plist
new file mode 100644
index 000000000000..0a3510bedb0a
--- /dev/null
+++ b/devel/dconf/pkg-plist
@@ -0,0 +1,41 @@
+bin/dconf
+bin/dconf-editor
+include/dconf/dconf-client.h
+include/dconf/dconf-engine.h
+include/dconf/dconf-paths.h
+include/dconf/dconf-readtype.h
+include/dconf/dconf-resetlist.h
+include/dconf/dconf.h
+lib/gio/modules/libdconfsettings.so
+lib/girepository-1.0/dconf-1.0.typelib
+lib/libdconf.so
+lib/libdconf.so.0
+libdata/pkgconfig/dconf.pc
+libexec/dconf-service
+share/dbus-1/services/ca.desrt.dconf.service
+share/dbus-1/system-services/ca.desrt.dconf.service
+share/gir-1.0/dconf-1.0.gir
+share/gtk-doc/html/dconf/DConfClient.html
+share/gtk-doc/html/dconf/dconf-DConf-Paths.html
+share/gtk-doc/html/dconf/annotation-glossary.html
+share/gtk-doc/html/dconf/api-index-full.html
+share/gtk-doc/html/dconf/ch01.html
+share/gtk-doc/html/dconf/dconf.devhelp
+share/gtk-doc/html/dconf/dconf.devhelp2
+share/gtk-doc/html/dconf/home.png
+share/gtk-doc/html/dconf/index.html
+share/gtk-doc/html/dconf/index.sgml
+share/gtk-doc/html/dconf/left.png
+share/gtk-doc/html/dconf/object-tree.html
+share/gtk-doc/html/dconf/right.png
+share/gtk-doc/html/dconf/style.css
+share/gtk-doc/html/dconf/up.png
+share/vala/vapi/dconf.deps
+share/vala/vapi/dconf.vapi
+@dirrmtry share/vala/vapi
+@dirrm share/gtk-doc/html/dconf
+@dirrmtry share/gtk-doc/html
+@dirrmtry share/gtk-doc
+@dirrm include/dconf
+@exec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true
+@unexec %D/bin/gio-querymodules %D/lib/gio/modules 2>/dev/null || /usr/bin/true