From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/libnotify/PKGBUILD | 30 +++++++ extra/libnotify/libnotify-0.7.1-gtk3-tests.patch | 110 +++++++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 extra/libnotify/PKGBUILD create mode 100644 extra/libnotify/libnotify-0.7.1-gtk3-tests.patch (limited to 'extra/libnotify') diff --git a/extra/libnotify/PKGBUILD b/extra/libnotify/PKGBUILD new file mode 100644 index 000000000..03813ec68 --- /dev/null +++ b/extra/libnotify/PKGBUILD @@ -0,0 +1,30 @@ +# $Id: PKGBUILD 112734 2011-03-06 12:38:58Z ibiru $ +# Maintainer: Jan de Groot + +pkgname=libnotify +pkgver=0.7.1 +pkgrel=1.1 +pkgdesc="Desktop notification library" +arch=('i686' 'x86_64') +url="http://library.gnome.org/devel/notification-spec/" +license=('LGPL') +depends=('gdk-pixbuf2') +makedepends=('gobject-introspection') +options=('!libtool') +source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/0.7/${pkgname}-${pkgver}.tar.bz2 + libnotify-0.7.1-gtk3-tests.patch) +sha256sums=('84dc2a77defb25521d2f1cb7ac34b4d23b55254ba361442658430efb928536c8' + 'd9ee539a58a30ccd213b9857003c2ba04a0cf343763ed566ca0d769cbfc34664') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -Np1 -i "${srcdir}/libnotify-0.7.1-gtk3-tests.patch" + autoreconf -fi + ./configure --prefix=/usr --disable-static + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install +} diff --git a/extra/libnotify/libnotify-0.7.1-gtk3-tests.patch b/extra/libnotify/libnotify-0.7.1-gtk3-tests.patch new file mode 100644 index 000000000..7d1230520 --- /dev/null +++ b/extra/libnotify/libnotify-0.7.1-gtk3-tests.patch @@ -0,0 +1,110 @@ +From 92983cacd36fa9b050f911bc4de09b8c4fb9f3b2 Mon Sep 17 00:00:00 2001 +From: Gilles Dartiguelongue +Date: Thu, 16 Dec 2010 00:01:13 +0100 +Subject: [PATCH] gentoo: do not build gtk+:3 tests if not required + +--- + configure.ac | 5 +++++ + tests/Makefile.am | 30 +++++++++++++++++------------- + 2 files changed, 22 insertions(+), 13 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 71609ed..7767c5b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -97,10 +97,15 @@ AC_SUBST(PACKAGE_LIBS) + AC_SUBST(PACKAGE_CFLAGS) + AC_SUBST(pkg_modules) + ++AC_ARG_ENABLE([tests], ++ AS_HELP_STRING([--enable-tests], [Check for extra dependencies to build all tests])) ++AS_IF([test $enable_tests = yes], [ + tests_modules="gtk+-3.0 >= $REQ_GTK_VERSION" + PKG_CHECK_MODULES(TESTS, [$tests_modules]) ++]) + AC_SUBST(TESTS_LIBS) + AC_SUBST(TESTS_CFLAGS) ++AM_CONDITIONAL([MORE_TESTS], [test $enable_tests = yes]) + + GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` + AC_SUBST(GLIB_GENMARSHAL) +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 7acf9a3..2856a82 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -2,18 +2,15 @@ INCLUDES = \ + -I$(top_srcdir) \ + $(TESTS_CFLAGS) + +-noinst_PROGRAMS = \ ++check_PROGRAMS = \ + test-replace \ +- test-replace-widget \ + test-server-info \ + test-default-action \ + test-multi-actions \ + test-action-icons \ +- test-image \ + test-basic \ + test-error \ + test-markup \ +- test-persistence \ + test-resident \ + test-rtl \ + test-size-changes \ +@@ -23,6 +20,22 @@ noinst_PROGRAMS = \ + test-xy-actions \ + test-xy-stress + ++#if MORE_TESTS ++check_PROGRAMS += \ ++ test-image \ ++ test-replace-widget \ ++ test-persistence ++ ++test_replace_widget_SOURCES = test-replace-widget.c ++test_replace_widget_LDADD = $(common_ldflags) ++ ++test_image_SOURCES = test-image.c ++test_image_LDADD = $(common_ldflags) ++ ++test_persistence_SOURCES = test-persistence.c ++test_persistence_LDADD = $(common_ldflags) ++#endif ++ + common_ldflags = \ + $(top_builddir)/libnotify/libnotify.la \ + $(TESTS_LIBS) +@@ -30,9 +43,6 @@ common_ldflags = \ + test_replace_SOURCES = test-replace.c + test_replace_LDADD = $(common_ldflags) + +-test_replace_widget_SOURCES = test-replace-widget.c +-test_replace_widget_LDADD = $(common_ldflags) +- + test_server_info_SOURCES = test-server-info.c + test_server_info_LDADD = $(common_ldflags) + +@@ -48,9 +58,6 @@ test_multi_actions_LDADD = $(common_ldflags) + test_action_icons_SOURCES = test-action-icons.c + test_action_icons_LDADD = $(common_ldflags) + +-test_image_SOURCES = test-image.c +-test_image_LDADD = $(common_ldflags) +- + test_basic_SOURCES = test-basic.c + test_basic_LDADD = $(common_ldflags) + +@@ -75,9 +82,6 @@ test_xy_stress_LDADD = $(common_ldflags) + test_rtl_SOURCES = test-rtl.c + test_rtl_LDADD = $(common_ldflags) + +-test_persistence_SOURCES = test-persistence.c +-test_persistence_LDADD = $(common_ldflags) +- + test_resident_SOURCES = test-resident.c + test_resident_LDADD = $(common_ldflags) + +-- +1.7.4.rc2 + -- cgit v1.2.3-54-g00ecf