summaryrefslogtreecommitdiff
path: root/community/libsignon-glib
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-06 02:13:31 -0800
committerroot <root@rshg054.dnsready.net>2012-11-06 02:13:31 -0800
commit85e0e667660650d70269432a90401d4288776d9d (patch)
tree7d6e665bf13e57be14c60b14512dd322c97874e8 /community/libsignon-glib
parentc973e7aa43bb6c3bb4e25503eea40ddee63fcefd (diff)
Tue Nov 6 02:09:19 PST 2012
Diffstat (limited to 'community/libsignon-glib')
-rw-r--r--community/libsignon-glib/PKGBUILD47
-rw-r--r--community/libsignon-glib/fix-docdir.patch12
-rw-r--r--community/libsignon-glib/make-tests-optional.patch61
3 files changed, 120 insertions, 0 deletions
diff --git a/community/libsignon-glib/PKGBUILD b/community/libsignon-glib/PKGBUILD
new file mode 100644
index 000000000..752d0b0c1
--- /dev/null
+++ b/community/libsignon-glib/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 79489 2012-11-06 04:11:17Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=libsignon-glib
+pkgver=1.7
+pkgrel=1
+pkgdesc="GLib-based client library for applications handling account authentication through the Online Accounts Single Sign-On service"
+arch=('i686' 'x86_64')
+url="http://code.google.com/p/accounts-sso/"
+license=('LGPL')
+depends=('signon')
+makedepends=('python2-gobject')
+options=('!libtool')
+source=(http://accounts-sso.googlecode.com/files/$pkgname-$pkgver.tar.gz
+ fix-docdir.patch
+ make-tests-optional.patch)
+sha1sums=('e461c952c015e5b375ca3f12fac5a8ae1ba4646e'
+ '56ffd1502dcb754797dc95c0eb80ab23374aee2d'
+ '327dde1944c8adc27d8bd413399a4366b3560901')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Use the standard docdir location
+ # http://code.google.com/p/accounts-sso/issues/detail?id=123
+ patch -Np1 -i "$srcdir/fix-docdir.patch"
+
+ # Build tests optionally
+ # http://code.google.com/p/accounts-sso/issues/detail?id=124
+ patch -Np1 -i "$srcdir/make-tests-optional.patch"
+
+ autoreconf -fi
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-static \
+ PYTHON=python2
+ make -j1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ # Install GI overrides for python 3 as well
+ install -dm755 "$pkgdir/usr/lib/python3.3/site-packages/gi/overrides"
+ ln -s ../../../../python2.7/site-packages/gi/overrides/Signon.py "$pkgdir/usr/lib/python3.3/site-packages/gi/overrides/Signon.py"
+}
diff --git a/community/libsignon-glib/fix-docdir.patch b/community/libsignon-glib/fix-docdir.patch
new file mode 100644
index 000000000..b42c7faf8
--- /dev/null
+++ b/community/libsignon-glib/fix-docdir.patch
@@ -0,0 +1,12 @@
+diff -Naur libsignon-glib-1.6.orig/Makefile.am libsignon-glib-1.6/Makefile.am
+--- libsignon-glib-1.6.orig/Makefile.am 2012-08-13 10:09:23.000000000 +0200
++++ libsignon-glib-1.6/Makefile.am 2012-10-16 22:04:28.805736477 +0200
+@@ -11,7 +11,7 @@
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = libsignon-glib.pc
+
+-libsignondocdir = ${prefix}/doc/reference
++libsignondocdir = ${docdir}
+ libsignondoc_DATA= README COPYING AUTHORS ChangeLog INSTALL NEWS
+
+ EXTRA_DIST = \
diff --git a/community/libsignon-glib/make-tests-optional.patch b/community/libsignon-glib/make-tests-optional.patch
new file mode 100644
index 000000000..cc1e72848
--- /dev/null
+++ b/community/libsignon-glib/make-tests-optional.patch
@@ -0,0 +1,61 @@
+commit 65e1948097695f26aa13f4104336a8a76a678b87
+Author: David King <david.king@canonical.com>
+Date: Tue Oct 30 09:24:27 2012 +0000
+
+ Make tests optional at configure time
+
+ http://code.google.com/p/accounts-sso/issues/detail?id=124
+
+diff --git a/Makefile.am b/Makefile.am
+index 86b3a55..5740d45 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -2,12 +2,16 @@ ACLOCAL_AMFLAGS = -I m4
+ DISTCHECK_CONFIGURE_FLAGS = \
+ --enable-gtk-doc \
+ --enable-introspection=yes
+-SUBDIRS = libsignon-glib docs tests
++SUBDIRS = libsignon-glib docs
+
+ if ENABLE_PYTHON
+ SUBDIRS += pygobject
+ endif
+
++if ENABLE_TESTS
++SUBDIRS += tests
++endif
++
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = libsignon-glib.pc
+
+diff --git a/configure.ac b/configure.ac
+index af5e663..d09661e 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -19,7 +19,25 @@ PKG_CHECK_MODULES(
+ AC_SUBST(DEPS_CFLAGS)
+ AC_SUBST(DEPS_LIBS)
+
+-PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
++# Build tests.
++
++CHECK_REQUIRED="check >= 0.9.4"
++
++AC_ARG_ENABLE([tests],
++ [AS_HELP_STRING([--disable-tests], [build with testing support disabled])])
++
++AS_IF([test "x$enable_tests" != "xno"],
++ [PKG_CHECK_EXISTS([$CHECK_REQUIRED], [have_check=yes], [have_check=no])],
++ [have_check=no])
++
++AS_IF([test "x$have_check" = "xyes"],
++ [PKG_CHECK_MODULES([CHECK], [$CHECK_REQUIRED])
++ AC_SUBST([CHECK_CFLAGS])
++ AC_SUBST([CHECK_LIBS])],
++ [AS_IF([test "x$enable_tests" = "xyes"],
++ [AC_MSG_ERROR([tests enabled but required dependencies were not found])])])
++
++AM_CONDITIONAL([ENABLE_TESTS], [test "x$have_check" = "xyes"])
+
+ AC_ISC_POSIX
+ AC_PROG_CC