diff options
author | Que Quotion | 2017-04-02 03:13:49 +0900 |
---|---|---|
committer | Que Quotion | 2017-04-02 03:13:49 +0900 |
commit | 6d400c8b9a4ac3927ff205ca8f433e1e3065813a (patch) | |
tree | 2c9b68f367bd4eb04dfea288c4947496815be5f5 | |
download | aur-6d400c8b9a4ac3927ff205ca8f433e1e3065813a.tar.gz |
Dependency for a few old packages, glippy, etc.
-rw-r--r-- | .SRCINFO | 53 | ||||
-rw-r--r-- | 02_fix_pkg-config_paths.patch | 49 | ||||
-rw-r--r-- | 04_initialize_dbus_glib_threading.patch | 51 | ||||
-rw-r--r-- | PKGBUILD | 75 |
4 files changed, 228 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5922737cf8ef --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,53 @@ +# Generated by mksrcinfo v8 +# Sat Apr 1 18:12:08 UTC 2017 +pkgbase = gnome-sharp + pkgver = 2.24.2 + pkgrel = 4 + url = http://gtk-sharp.sourceforge.net + arch = i686 + arch = x86_64 + license = LGPL + makedepends = gtk-sharp-2 + makedepends = libgnomeui + makedepends = monodoc + source = https://download.gnome.org/sources/gnome-sharp/2.24/gnome-sharp-2.24.2.tar.bz2 + source = 02_fix_pkg-config_paths.patch + source = 04_initialize_dbus_glib_threading.patch + md5sums = 3b38f53960c736d4afb8f04204efe98b + md5sums = a8c1bf57a384f5fc20a5890f9f1cef5a + md5sums = 90cd7ea88aaa3011522376153433d115 + +pkgname = gnome-sharp + pkgdesc = GNOME bindings for C# + depends = art-sharp + depends = gconf-sharp + depends = gconf-sharp-peditors + depends = libgnome-sharp + depends = gnome-vfs-sharp + +pkgname = art-sharp + pkgdesc = Mono bindings for libart + depends = gtk-sharp-2 + depends = libart-lgpl + +pkgname = gconf-sharp + pkgdesc = Mono bindings for GConf + depends = gtk-sharp-2 + depends = gconf + +pkgname = gconf-sharp-peditors + pkgdesc = Mono bindings for GConf - Property Editing classes + depends = gconf-sharp + depends = libgnome-sharp + +pkgname = libgnome-sharp + pkgdesc = Mono bindings for libgnome + depends = art-sharp + depends = gnome-vfs-sharp + depends = libgnomeui + +pkgname = gnome-vfs-sharp + pkgdesc = Mono bindings for GNOME-VFS + depends = gtk-sharp-2 + depends = gnome-vfs + diff --git a/02_fix_pkg-config_paths.patch b/02_fix_pkg-config_paths.patch new file mode 100644 index 000000000000..d8e239032733 --- /dev/null +++ b/02_fix_pkg-config_paths.patch @@ -0,0 +1,49 @@ +## 02_fix_pkg-config_paths.dpatch by Mirco Bauer <meebey@debian.org> +## +## Modified by Archlinux: removed libdir change + +diff -urNad gnome-sharp-2.24.1~/art/art-sharp-2.0.pc.in gnome-sharp-2.24.1/art/art-sharp-2.0.pc.in +--- gnome-sharp-2.24.1~/art/art-sharp-2.0.pc.in 2009-03-21 19:02:54.000000000 +0100 ++++ gnome-sharp-2.24.1/art/art-sharp-2.0.pc.in 2009-03-21 19:03:32.000000000 +0100 +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@prefix@ + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + gapidir=${prefix}/share/gapi-2.0 +diff -urNad gnome-sharp-2.24.1~/gconf/GConf/gconf-sharp-2.0.pc.in gnome-sharp-2.24.1/gconf/GConf/gconf-sharp-2.0.pc.in +--- gnome-sharp-2.24.1~/gconf/GConf/gconf-sharp-2.0.pc.in 2009-03-21 19:02:54.000000000 +0100 ++++ gnome-sharp-2.24.1/gconf/GConf/gconf-sharp-2.0.pc.in 2009-03-21 19:03:26.000000000 +0100 +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@prefix@ + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + +diff -urNad gnome-sharp-2.24.1~/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in gnome-sharp-2.24.1/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in +--- gnome-sharp-2.24.1~/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in 2009-03-21 19:02:54.000000000 +0100 ++++ gnome-sharp-2.24.1/gconf/GConf.PropertyEditors/gconf-sharp-peditors-2.0.pc.in 2009-03-21 19:03:20.000000000 +0100 +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@prefix@ + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + +diff -urNad gnome-sharp-2.24.1~/gnome/gnome-sharp-2.0.pc.in gnome-sharp-2.24.1/gnome/gnome-sharp-2.0.pc.in +--- gnome-sharp-2.24.1~/gnome/gnome-sharp-2.0.pc.in 2009-03-21 19:02:54.000000000 +0100 ++++ gnome-sharp-2.24.1/gnome/gnome-sharp-2.0.pc.in 2009-03-21 19:03:07.000000000 +0100 +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@prefix@ + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + gapidir=${prefix}/share/gapi-2.0 +diff -urNad gnome-sharp-2.24.1~/gnomevfs/gnome-vfs-sharp-2.0.pc.in gnome-sharp-2.24.1/gnomevfs/gnome-vfs-sharp-2.0.pc.in +--- gnome-sharp-2.24.1~/gnomevfs/gnome-vfs-sharp-2.0.pc.in 2009-03-21 19:02:54.000000000 +0100 ++++ gnome-sharp-2.24.1/gnomevfs/gnome-vfs-sharp-2.0.pc.in 2009-03-21 19:03:12.000000000 +0100 +@@ -1,4 +1,4 @@ +-prefix=${pcfiledir}/../.. ++prefix=@prefix@ + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + gapidir=${prefix}/share/gapi-2.0 diff --git a/04_initialize_dbus_glib_threading.patch b/04_initialize_dbus_glib_threading.patch new file mode 100644 index 000000000000..a7f8417181c8 --- /dev/null +++ b/04_initialize_dbus_glib_threading.patch @@ -0,0 +1,51 @@ +From e9d06b56a54dcd399d1d3eaaf62bdacb7e07084d Mon Sep 17 00:00:00 2001 +From: Mirco Bauer <meebey@meebey.net> +Date: Sat, 2 Mar 2013 13:44:46 +0100 +Subject: [PATCH] Explicitly initialize D-Bus GLib threading + +When gconf was switched from orbit to dbus it was no longer thread-safe by +default. This behavior can only get back by explicitly initializing dbus-glib's +threads. This issue affects multi-threaded GConf# users like Banshee leading +them to SEGVs. + +For more details see: +https://bugzilla.gnome.org/show_bug.cgi?id=683830 +--- + gconf/GConf/Client.cs | 11 +++++++++++ + gconf/GConf/gconf-sharp.dll.config.in | 1 + + 2 files changed, 12 insertions(+) + +diff --git a/gconf/GConf/Client.cs b/gconf/GConf/Client.cs +index b8cc881..64efc9f 100644 +--- a/gconf/GConf/Client.cs ++++ b/gconf/GConf/Client.cs +@@ -31,6 +31,17 @@ namespace GConf + [DllImport("gconf-2")] + static extern IntPtr gconf_client_get_default (); + ++ [DllImport("dbus-glib-1")] ++ static extern void dbus_g_thread_init (); ++ ++ static Client () ++ { ++ // HACK: we have to initialize dbus' threading else GConf with its ++ // dbus backend will not be thread safe and SEGVs in our face, see: ++ // https://bugzilla.gnome.org/show_bug.cgi?id=683830 ++ dbus_g_thread_init(); ++ } ++ + public Client () + { + Initialize (); +diff --git a/gconf/GConf/gconf-sharp.dll.config.in b/gconf/GConf/gconf-sharp.dll.config.in +index 9fb7d15..f20ddae 100644 +--- a/gconf/GConf/gconf-sharp.dll.config.in ++++ b/gconf/GConf/gconf-sharp.dll.config.in +@@ -1,3 +1,4 @@ + <configuration> + <dllmap dll="gconf-2" target="libgconf-2@LIB_PREFIX@.4@LIB_SUFFIX@"/> ++ <dllmap dll="dbus-glib-1" target="libdbus-glib-1@LIB_PREFIX@.2@LIB_SUFFIX@"/> + </configuration> +-- +1.7.10.4 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..def3b5284cfc --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,75 @@ +# $Id$ +# Maintainer: tobias <tobias@archlinux.org> + +pkgbase=gnome-sharp +pkgname=('gnome-sharp' 'art-sharp' 'gconf-sharp' 'gconf-sharp-peditors' 'libgnome-sharp' 'gnome-vfs-sharp') +pkgver=2.24.2 +pkgrel=4 +arch=(i686 x86_64) +license=(LGPL) +url="http://gtk-sharp.sourceforge.net" +makedepends=('gtk-sharp-2' 'libgnomeui' 'monodoc') +source=(https://download.gnome.org/sources/gnome-sharp/2.24/${pkgbase}-${pkgver}.tar.bz2 + 02_fix_pkg-config_paths.patch + 04_initialize_dbus_glib_threading.patch) +md5sums=('3b38f53960c736d4afb8f04204efe98b' + 'a8c1bf57a384f5fc20a5890f9f1cef5a' + '90cd7ea88aaa3011522376153433d115') + +build() { + # get rid of that .wapi errors; thanks to brice + export MONO_SHARED_DIR="${srcdir}/weird" + mkdir -p "${MONO_SHARED_DIR}" + + cd "${srcdir}/${pkgbase}-${pkgver}" + patch -Np1 -i ../04_initialize_dbus_glib_threading.patch + patch -Np1 -i ../02_fix_pkg-config_paths.patch + ./configure --prefix=/usr --sysconfdir=/etc + make +} + +package_gnome-sharp() { + pkgdesc="GNOME bindings for C#" + depends=('art-sharp' 'gconf-sharp' 'gconf-sharp-peditors' 'libgnome-sharp' 'gnome-vfs-sharp') +} + +package_art-sharp() { + pkgdesc="Mono bindings for libart" + depends=('gtk-sharp-2' 'libart-lgpl') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make -C art install DESTDIR="${pkgdir}" +} + +package_gconf-sharp() { + pkgdesc="Mono bindings for GConf" + depends=('gtk-sharp-2' 'gconf') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make -C gconf/GConf install DESTDIR="${pkgdir}" + make -C gconf/tools install DESTDIR="${pkgdir}" +} + +package_gconf-sharp-peditors() { + pkgdesc="Mono bindings for GConf - Property Editing classes" + depends=('gconf-sharp' 'libgnome-sharp') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make -C gconf/GConf.PropertyEditors install DESTDIR="${pkgdir}" +} + +package_libgnome-sharp() { + pkgdesc="Mono bindings for libgnome" + depends=('art-sharp' 'gnome-vfs-sharp' 'libgnomeui') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make -C gnome install DESTDIR="${pkgdir}" +} + +package_gnome-vfs-sharp() { + pkgdesc="Mono bindings for GNOME-VFS" + depends=('gtk-sharp-2' 'gnome-vfs') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make -C gnomevfs install DESTDIR="${pkgdir}" +} |