summaryrefslogtreecommitdiff
path: root/dev-libs/libdbusmenu
diff options
context:
space:
mode:
authorDennis Schridde <devurandom@gmx.net>2010-03-31 14:28:28 +0200
committerDennis Schridde <devurandom@gmx.net>2010-03-31 16:33:45 +0200
commit2f99401c5fd6fbf0d998d2e70e9500e7c661c538 (patch)
tree7029a3d3a51ef6c9bbb262edf3aab98c1c6f4523 /dev-libs/libdbusmenu
parentedbd9256e68ff4803c0733e4c89276ef368d42e7 (diff)
downloadkde-2f99401c5fd6fbf0d998d2e70e9500e7c661c538.tar.gz
kde-2f99401c5fd6fbf0d998d2e70e9500e7c661c538.tar.bz2
kde-2f99401c5fd6fbf0d998d2e70e9500e7c661c538.zip
[dev-libs/libdbusmenu] New ebuild, dependency needed by dev-libs/libdbusmenu-qt
Please test USE="+doc -gtk +test"!
Diffstat (limited to 'dev-libs/libdbusmenu')
-rw-r--r--dev-libs/libdbusmenu/Manifest6
-rw-r--r--dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch37
-rw-r--r--dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-2-optional-tests.patch44
-rw-r--r--dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-no-gobject-introspection.patch10
-rw-r--r--dev-libs/libdbusmenu/libdbusmenu-0.2.8.ebuild53
-rw-r--r--dev-libs/libdbusmenu/metadata.xml5
6 files changed, 155 insertions, 0 deletions
diff --git a/dev-libs/libdbusmenu/Manifest b/dev-libs/libdbusmenu/Manifest
new file mode 100644
index 00000000000..d43af5f4267
--- /dev/null
+++ b/dev-libs/libdbusmenu/Manifest
@@ -0,0 +1,6 @@
+AUX libdbusmenu-0.2.8-1-optional-gtk.patch 1075 RMD160 4c32361e3f067fd7f3bf2ce79b56c596249ca9bb SHA1 83509f4e77f045b844fb9c472cd32b98bad0bdbd SHA256 9ee4597a6113eb3868a8f69ce6ecdd02ef5cb926febf45879a4202ea346179f8
+AUX libdbusmenu-0.2.8-2-optional-tests.patch 1073 RMD160 1f2ac693cc10cbcb1635c4357ef0d0e57ae699f2 SHA1 095c326b0de91aba441ed20425dcc9ffe968819d SHA256 7edd3e056ed470d999c2346c408ccdfc0218c30e7b7d10f413e9b45811d4628c
+AUX libdbusmenu-0.2.8-no-gobject-introspection.patch 297 RMD160 467e14be23f3891540f67022f8d602287434d936 SHA1 66819750f37812c3f2950d7d4c46fb84cc57b5cc SHA256 fa6411ae8f311d4e2b8ac2c40314d28996905b2aaf2a8361c743d17845dcff1f
+DIST libdbusmenu-0.2.8.tar.gz 431813 RMD160 50a946497e9f47a5a92d4dfcaa0ad211689e3da3 SHA1 8c0cc228393754a57907ff7eb1417ff9ea3dd98e SHA256 5464906135c5658a67bb9fd2bbb8bd9c8fd859ae35099a885db993ee7c75d6ba
+EBUILD libdbusmenu-0.2.8.ebuild 1401 RMD160 87bdb5993a4f660fa0a6c81e3e54317eb134218f SHA1 f7d400766b32fccc6ea6a05c53e7133118f34117 SHA256 a088bae58bc0761d62717081d565efdd3db7bbba38f1e97e6e87781c97ae7c32
+MISC metadata.xml 158 RMD160 f15477b4ffb8ae0849cbae52329d1bdf99a407f4 SHA1 18cd6cdb98f781c3975c49f300d3f8b1e07333b8 SHA256 b5a2d16139d03b8af578bc87503b14b589dd7e3544d879297ccdb735d35a02e2
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch
new file mode 100644
index 00000000000..2eb0eedcb87
--- /dev/null
+++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-1-optional-gtk.patch
@@ -0,0 +1,37 @@
+--- configure.ac.orig 2010-03-31 12:56:17.483842274 +0200
++++ configure.ac 2010-03-31 12:57:25.783592956 +0200
+@@ -42,10 +42,17 @@
+
+ GTK_REQUIRED_VERSION=2.16
+
++AC_ARG_ENABLE([gtk],
++ AC_HELP_STRING([--disable-gtk], [Disable libindicate-gtk library]),
++ [enable_gtk=$enableval], enable_gtk=auto)
++AM_CONDITIONAL([WANT_LIBDBUSMENUGTK], [test "x$enable_gtk" != "xno"])
++
++if test "x$enable_gtk" != "xno"; then
+ PKG_CHECK_MODULES(DBUSMENUGTK, gtk+-2.0 >= $GTK_REQUIRED_VERSION
+ glib-2.0 >= $GLIB_REQUIRED_VERSION
+ dbus-glib-1 >= $DBUS_REQUIRED_VERSION
+ libxml-2.0 >= $XML_REQUIRED_VERSION)
++fi
+
+ AC_SUBST(DBUSMENUGTK_CFLAGS)
+ AC_SUBST(DBUSMENUGTK_LIBS)
+--- Makefile.am.orig 2010-03-31 13:01:21.871844609 +0200
++++ Makefile.am 2010-03-31 13:19:34.896594837 +0200
+@@ -5,10 +5,13 @@
+
+ SUBDIRS = \
+ libdbusmenu-glib \
+- libdbusmenu-gtk \
+ tools \
+ tests \
+ po
+
++if WANT_LIBDBUSMENUGTK
++SUBDIRS += libdbusmenu-gtk
++endif
++
+ DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-2-optional-tests.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-2-optional-tests.patch
new file mode 100644
index 00000000000..1733c0576a4
--- /dev/null
+++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-2-optional-tests.patch
@@ -0,0 +1,44 @@
+--- configure.ac.orig 2010-03-31 12:56:17.483842274 +0200
++++ configure.ac 2010-03-31 13:08:36.291843605 +0200
+@@ -56,7 +56,14 @@
+
+ JSON_GLIB_REQUIRED_VERSION=0.6.0
+
++AC_ARG_ENABLE([tests],
++ AC_HELP_STRING([--disable-tests], [Disable tests]),
++ [enable_tests=$enableval], enable_tests=auto)
++AM_CONDITIONAL([WANT_TESTS], [test "x$enable_tests" != "xno"])
++
++if test "x$enable_tests" != "xno"; then
+ PKG_CHECK_MODULES(DBUSMENUTESTS, json-glib-1.0 >= $JSON_GLIB_REQUIRED_VERSION)
++fi
+
+ AC_SUBST(DBUSMENUTESTS_CFLAGS)
+ AC_SUBST(DBUSMENUTESTS_LIBS)
+--- Makefile.am.orig 2010-03-31 13:01:21.871844609 +0200
++++ Makefile.am 2010-03-31 13:33:03.953843279 +0200
+@@ -7,7 +7,10 @@
+ libdbusmenu-glib \
+ tools \
+- tests \
+ po
+
++if WANT_TESTS
++SUBDIRS += tests
++endif
++
+ DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
+--- tools/Makefile.am.orig 2010-03-31 13:44:57.924843955 +0200
++++ tools/Makefile.am 2010-03-31 13:47:19.073593832 +0200
+@@ -1,5 +1,9 @@
+
+-SUBDIRS = testapp
++SUBDIRS =
++
++if WANT_TESTS
++SUBDIRS += testapp
++endif
+
+ libexec_PROGRAMS = dbusmenu-dumper
+
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-no-gobject-introspection.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-no-gobject-introspection.patch
new file mode 100644
index 00000000000..8e76ca8da47
--- /dev/null
+++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.2.8-no-gobject-introspection.patch
@@ -0,0 +1,10 @@
+--- configure.ac.orig 2010-03-31 12:42:16.497596552 +0200
++++ configure.ac 2010-03-31 12:42:47.001595062 +0200
+@@ -74,6 +74,6 @@
+ ###########################
+
+-GOBJECT_INTROSPECTION_CHECK([0.6.7])
++AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
+
+ ###########################
+ # GTK Doc
diff --git a/dev-libs/libdbusmenu/libdbusmenu-0.2.8.ebuild b/dev-libs/libdbusmenu/libdbusmenu-0.2.8.ebuild
new file mode 100644
index 00000000000..06c9bd1ea63
--- /dev/null
+++ b/dev-libs/libdbusmenu/libdbusmenu-0.2.8.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libindicate/libindicate-0.2.3-r1.ebuild,v 1.2 2010/02/16 17:15:10 josejx Exp $
+
+EAPI=2
+
+inherit autotools eutils versionator
+
+DESCRIPTION="Library to pass menu structure across DBus"
+HOMEPAGE="https://launchpad.net/libdbusmenu/"
+SRC_URI="http://launchpad.net/dbusmenu/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gtk test"
+
+RESTRICT="test"
+
+RDEPEND="dev-libs/glib:2
+ dev-libs/dbus-glib
+ dev-libs/libxml2:2
+ gtk? ( x11-libs/gtk+:2 )"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/json-glib )
+ dev-util/pkgconfig"
+
+src_prepare() {
+ # Make libdbusmenu-gtk library optional
+ epatch "${FILESDIR}/${P}-1-optional-gtk.patch"
+ # Make tests optional
+ epatch "${FILESDIR}/${P}-2-optional-tests.patch"
+ # Fixup undeclared HAVE_INTROSPECTION
+ epatch "${FILESDIR}/${P}-no-gobject-introspection.patch"
+ # Drop -Werror in a release
+ sed -e 's:-Werror::g' -i libdbusmenu-glib/Makefile.am libdbusmenu-gtk/Makefile.am || die "sed failed"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable gtk) \
+ $(use_enable test tests)
+}
+
+src_test() {
+ emake check || die "testsuite failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS || die "dodoc failed"
+}
diff --git a/dev-libs/libdbusmenu/metadata.xml b/dev-libs/libdbusmenu/metadata.xml
new file mode 100644
index 00000000000..8d36d5b01cd
--- /dev/null
+++ b/dev-libs/libdbusmenu/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kde</herd>
+</pkgmetadata>