From 85e0e667660650d70269432a90401d4288776d9d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Nov 2012 02:13:31 -0800 Subject: Tue Nov 6 02:09:19 PST 2012 --- community/libsignon-glib/PKGBUILD | 47 +++++++++++++++++ community/libsignon-glib/fix-docdir.patch | 12 +++++ community/libsignon-glib/make-tests-optional.patch | 61 ++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 community/libsignon-glib/PKGBUILD create mode 100644 community/libsignon-glib/fix-docdir.patch create mode 100644 community/libsignon-glib/make-tests-optional.patch (limited to 'community/libsignon-glib') 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 + +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 +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 -- cgit v1.2.3-54-g00ecf