diff options
| author | Theo Chatzimichos <tampakrap@gentoo.org> | 2010-09-16 15:06:45 +0300 |
|---|---|---|
| committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2010-09-16 15:10:02 +0300 |
| commit | 40f9c91834b40cb86630f587cb00a8b78fc34834 (patch) | |
| tree | b1c3721c65f1822ae1714223f5e3c56d926c3c6d /dev-libs/libdbusmenu | |
| parent | 0a5c9f08b0e7f785a5c4624348cf9c09c09decda (diff) | |
| download | kde-40f9c91834b40cb86630f587cb00a8b78fc34834.tar.gz kde-40f9c91834b40cb86630f587cb00a8b78fc34834.tar.bz2 kde-40f9c91834b40cb86630f587cb00a8b78fc34834.zip | |
[dev-libs/libdbusmenu] Add from tree and revbump, currently b0rked
Diffstat (limited to 'dev-libs/libdbusmenu')
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..4ee1bef49de --- /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.3.14.tar.gz 1150111 RMD160 86f47b0e84617d6c92791fecfc6e23800b4847f8 SHA1 014faeb260daec08847982ccfa52a85918a9147e SHA256 06085c35f51f5d54b12685e06de3cc609a549deb07741eea383f12d7df894fba +EBUILD libdbusmenu-0.3.14.ebuild 1465 RMD160 656710725e24f16e7925cd2af012647921fe99cf SHA1 9698318bb8b0e9b6f3d062b40adbf52bde7540c8 SHA256 7c376863b0e4a389646eb1f40e329075b9e6628e86a2b4de0ae51d381c5da479 +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.3.14.ebuild b/dev-libs/libdbusmenu/libdbusmenu-0.3.14.ebuild new file mode 100644 index 00000000000..ace306a412d --- /dev/null +++ b/dev-libs/libdbusmenu/libdbusmenu-0.3.14.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/libdbusmenu/libdbusmenu-0.2.8.ebuild,v 1.2 2010/09/14 07:41:41 reavertm Exp $ + +EAPI=2 + +inherit autotools eutils versionator + +DESCRIPTION="Library to pass menu structure across DBus" +HOMEPAGE="https://launchpad.net/dbusmenu" +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, launchpad-bug #552530 + epatch "${FILESDIR}/${P}-1-optional-gtk.patch" + # Make tests optional, launchpad-bug #552526 + epatch "${FILESDIR}/${P}-2-optional-tests.patch" + # Fixup undeclared HAVE_INTROSPECTION, launchpad-bug #552538 + 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> |
