summaryrefslogtreecommitdiff
path: root/community/libdesktop-agnostic
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/libdesktop-agnostic
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/libdesktop-agnostic')
-rw-r--r--community/libdesktop-agnostic/PKGBUILD44
-rw-r--r--community/libdesktop-agnostic/gir.patch27
2 files changed, 71 insertions, 0 deletions
diff --git a/community/libdesktop-agnostic/PKGBUILD b/community/libdesktop-agnostic/PKGBUILD
new file mode 100644
index 000000000..3c0072045
--- /dev/null
+++ b/community/libdesktop-agnostic/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=libdesktop-agnostic
+pkgver=0.3.92
+pkgrel=1
+pkgdesc="Provides an extensible config API, a unified virtual fs API, and a desktop item editor for GLib-based projects."
+arch=('i686' 'x86_64')
+url="https://launchpad.net/libdesktop-agnostic"
+license=('GPL' 'LGPL')
+depends=('glib2' 'gtk2' 'pygtk' 'pygobject')
+makedepends=('gobject-introspection' 'vala>=0.8.1' 'intltool'
+ 'gconf')
+optdepends=('gconf: gconf configuration backend')
+options=('!libtool')
+backup=(etc/xdg/libdesktop-agnostic/desktop-agnostic.ini)
+source=(https://launchpad.net/$pkgname/0.4/$pkgver/+download/$pkgname-$pkgver.tar.gz
+ gir.patch)
+md5sums=('42374d226a21d57637f97173f6b105a1'
+ '346e06ae914ec0c12e5f1fa1c4796575')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Force source regeneration
+ rm -r gen_src
+
+ # fix for python 2.7
+ sed -i '1s|^#!.*python$|&2|' waf
+ export PYTHON=/usr/bin/python2
+
+ # fix to enable introspection
+ patch -Np1 -i "$srcdir/gir.patch"
+
+ ./waf configure --config-backends=gconf,keyfile --vfs-backends=gio \
+ --desktop-entry-backends=gio,glib --prefix=/usr --sysconfdir=/etc
+ ./waf
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./waf install --destdir="$pkgdir" --sysconfdir="$pkgdir/etc"
+}
diff --git a/community/libdesktop-agnostic/gir.patch b/community/libdesktop-agnostic/gir.patch
new file mode 100644
index 000000000..88824cf76
--- /dev/null
+++ b/community/libdesktop-agnostic/gir.patch
@@ -0,0 +1,27 @@
+diff -u -r libdesktop-agnostic-0.3.92/libdesktop-agnostic/wscript libdesktop-agnostic-0.3.92-gir/libdesktop-agnostic/wscript
+--- libdesktop-agnostic-0.3.92/libdesktop-agnostic/wscript 2011-03-12 15:14:23.000000000 +0100
++++ libdesktop-agnostic-0.3.92-gir/libdesktop-agnostic/wscript 2011-03-27 18:51:13.170000225 +0200
+@@ -67,8 +67,9 @@
+
+
+ def create_typelib_task():
+- rule = 'LD_LIBRARY_PATH="${CURRENT_BUILD_DIR}" ${G_IR_COMPILER} ' + \
+- '-o ${TGT} ${SRC}'
++ rule = '${G_IR_COMPILER}' + \
++ ' --includedir "${CURRENT_BUILD_DIR}"' + \
++ ' -o ${TGT} ${SRC}'
+ Task.simple_task_type('typelib', rule, after='cc_link')
+
+ create_typelib_task()
+diff -u -r libdesktop-agnostic-0.3.92/wscript libdesktop-agnostic-0.3.92-gir/wscript
+--- libdesktop-agnostic-0.3.92/wscript 2011-03-13 16:09:47.000000000 +0100
++++ libdesktop-agnostic-0.3.92-gir/wscript 2011-03-27 18:51:46.973335650 +0200
+@@ -71,7 +71,7 @@
+ help='Enables the library to be built so that it is '
+ 'instrumented to measure performance.')
+ opt.add_option('--disable-gi', action='store_true',
+- dest='no_gi', default=True)
++ dest='no_gi', default=False)
+
+
+ def configure(conf):