diff options
| author | Dennis Schridde <devurandom@gmx.net> | 2011-01-29 15:07:18 +0100 |
|---|---|---|
| committer | Dennis Schridde <devurandom@gmx.net> | 2011-01-29 15:14:35 +0100 |
| commit | f276022b754b03e0e4b62413f70cd841eaedda62 (patch) | |
| tree | 07a031b8ff91787f18b09c27ab33b1c32106fdcb | |
| parent | 93dd42ddc7bd66fe85e0506bdf2df7a59233269f (diff) | |
| download | kde-f276022b754b03e0e4b62413f70cd841eaedda62.tar.gz kde-f276022b754b03e0e4b62413f70cd841eaedda62.tar.bz2 kde-f276022b754b03e0e4b62413f70cd841eaedda62.zip | |
[dev-libs/libindicate-0.4.4-r1] Support USE=introspection
11 files changed, 364 insertions, 0 deletions
diff --git a/dev-libs/libindicate/Manifest b/dev-libs/libindicate/Manifest new file mode 100644 index 00000000000..79db82e7b83 --- /dev/null +++ b/dev-libs/libindicate/Manifest @@ -0,0 +1,11 @@ +AUX libindicate-0.4.4-fix-aclocal.patch 181 RMD160 81fbc27796faba28141e2efdd8aefd402c6f3f92 SHA1 afef17326571a4c17404690e06110e611b0e3f1c SHA256 7d34560b93dc25b1bfb89aa9ea726bd9f70cd3107eb21e0692aaa29c9b369c96 +AUX libindicate-0.4.4-fix-introspection.patch 3690 RMD160 d64ff2fb723ba13fc7418e9c63889aff0759b85c SHA1 f623a0929190da9caef0e0b569c96ca50c12daba SHA256 678176349d2121cc4d2fc0846f8b0609af1615beb6fac01717e6f01ddef10e8d +AUX libindicate-0.4.4-fix-out-of-source-build.patch 1322 RMD160 f27759c12ce602a39005613878ea37383f63cf74 SHA1 9cc7758aa0dd627e4f5db935a2b0a0db192ec793 SHA256 7be0fa28278cc69bee72f545667ecbf966f0d36ed5db2b5dc6e5d048a484710d +AUX libindicate-0.4.4-fix-python-version.patch 757 RMD160 42c78617d4388482f05e2240d98fd07db752e58d SHA1 5f588f1f550b06e636e28674b75616c43b1a8392 SHA256 27b3ac6e71549e8c27817e80e14c0e3e217fc83afd8fa9b3c5cbcd5b9ede498d +AUX libindicate-0.4.4-optional-doc.patch 900 RMD160 6e443308df87cf12e717ee014c38866d01c34fb5 SHA1 f37c008bb318daafe58525d38dead7c1a5f84c1e SHA256 71cdef52b7ec26ddeb421aa07c8cde4f170741f4ab6af5337c6ae44b981f6410 +AUX libindicate-0.4.4-optional-examples.patch 310 RMD160 08c649cbafbc742562179e09d2ecb3a52f790144 SHA1 908d5812dbaee1fd7f9a03e60864815af7d84e0f SHA256 cdb14c7848ef1b4cb828a2e865d7945116b21ad6890bd41b7da5320ff3994a63 +AUX libindicate-0.4.4-optional-gtk.patch 1270 RMD160 97b50ab6cf8c94d18fdf77e863a5333098f5feb8 SHA1 14c7ad1088b18b40ce966712b57e675dc2a1c14e SHA256 ac779b3954a48afc4a11cb41e9f4df65f852111c6434544affacc650d527b60f +AUX libindicate-0.4.4-optional-mono-example.patch 321 RMD160 70cdade62938796b70a6c7a0696b6976b8f8d93c SHA1 7481c1a7a0d478f638eefdc79d05331581321406 SHA256 dc68fd7ba8f03618f2f6f369652ba7a6f72b921190e751667afcbf70be393f5f +DIST libindicate-0.4.4.tar.gz 473110 RMD160 2e926172d8b0a2604f44b2b42ee70f3a1fc837f9 SHA1 0dc3ad4c35581adea9d9ae89daacf820c764f24a SHA256 20d7ac6fe02b28283c619fe583d5b0fb8a473bb17ef020c2fa40c53f72e315ce +EBUILD libindicate-0.4.4-r1.ebuild 2756 RMD160 3adeb89f1c152fa5dc5dfae86656ee1b6e76171d SHA1 2ed9f15537b533c26306f52d75e938b9db8fe814 SHA256 5d367abf312c06b2e5ef42c6f6368090e9e53d5555e7b4229adb5f5579925db6 +MISC metadata.xml 258 RMD160 69b53b6c07c87d5673ee16de06750f3aceed35e8 SHA1 649b8b012b03f82fe418ff135f90f7e21bcc4263 SHA256 5603025b3bd04b6daa8f57cba6ad6eea690cf08beff6c011c38d35acafb3a2d9 diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-fix-aclocal.patch b/dev-libs/libindicate/files/libindicate-0.4.4-fix-aclocal.patch new file mode 100644 index 00000000000..d7184a39ec3 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-fix-aclocal.patch @@ -0,0 +1,7 @@ +--- Makefile.am.orig 2010-09-20 23:12:10.442903362 +0200 ++++ Makefile.am 2010-09-20 23:12:20.591583239 +0200 +@@ -1,3 +1,4 @@ ++ACLOCAL_AMFLAGS = -I m4 + + SUBDIRS = \ + libindicate \ diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-fix-introspection.patch b/dev-libs/libindicate/files/libindicate-0.4.4-fix-introspection.patch new file mode 100644 index 00000000000..e3f17518f50 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-fix-introspection.patch @@ -0,0 +1,97 @@ +--- /dev/null 1970-01-01 01:00:00.000000000 +0100 ++++ m4//introspection.m4 2010-09-20 23:33:07.134254070 +0200 +@@ -0,0 +1,94 @@ ++dnl -*- mode: autoconf -*- ++dnl Copyright 2009 Johan Dahlin ++dnl ++dnl This file is free software; the author(s) gives unlimited ++dnl permission to copy and/or distribute it, with or without ++dnl modifications, as long as this notice is preserved. ++dnl ++ ++# serial 1 ++ ++m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL], ++[ ++ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first ++ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first ++ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first ++ ++ dnl enable/disable introspection ++ m4_if([$2], [require], ++ [dnl ++ enable_introspection=yes ++ ],[dnl ++ AC_ARG_ENABLE(introspection, ++ AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]], ++ [Enable introspection for this build]),, ++ [enable_introspection=auto]) ++ ])dnl ++ ++ AC_MSG_CHECKING([for gobject-introspection]) ++ ++ dnl presence/version checking ++ AS_CASE([$enable_introspection], ++ [no], [dnl ++ found_introspection="no (disabled, use --enable-introspection to enable)" ++ ],dnl ++ [yes],[dnl ++ PKG_CHECK_EXISTS([gobject-introspection-1.0],, ++ AC_MSG_ERROR([gobject-introspection-1.0 is not installed])) ++ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], ++ found_introspection=yes, ++ AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME])) ++ ],dnl ++ [auto],[dnl ++ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no) ++ ],dnl ++ [dnl ++ AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@]) ++ ])dnl ++ ++ AC_MSG_RESULT([$found_introspection]) ++ ++ INTROSPECTION_SCANNER= ++ INTROSPECTION_COMPILER= ++ INTROSPECTION_GENERATE= ++ INTROSPECTION_GIRDIR= ++ INTROSPECTION_TYPELIBDIR= ++ if test "x$found_introspection" = "xyes"; then ++ INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` ++ INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` ++ INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` ++ INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` ++ INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" ++ INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` ++ INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` ++ INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection ++ fi ++ AC_SUBST(INTROSPECTION_SCANNER) ++ AC_SUBST(INTROSPECTION_COMPILER) ++ AC_SUBST(INTROSPECTION_GENERATE) ++ AC_SUBST(INTROSPECTION_GIRDIR) ++ AC_SUBST(INTROSPECTION_TYPELIBDIR) ++ AC_SUBST(INTROSPECTION_CFLAGS) ++ AC_SUBST(INTROSPECTION_LIBS) ++ AC_SUBST(INTROSPECTION_MAKEFILE) ++ ++ AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes") ++]) ++ ++ ++dnl Usage: ++dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version]) ++ ++AC_DEFUN([GOBJECT_INTROSPECTION_CHECK], ++[ ++ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1]) ++]) ++ ++dnl Usage: ++dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version]) ++ ++ ++AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE], ++[ ++ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require]) ++]) diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-fix-out-of-source-build.patch b/dev-libs/libindicate/files/libindicate-0.4.4-fix-out-of-source-build.patch new file mode 100644 index 00000000000..a87440e605b --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-fix-out-of-source-build.patch @@ -0,0 +1,51 @@ +--- examples/Makefile.am.orig 2010-09-20 23:42:07.380545155 +0200 ++++ examples/Makefile.am 2010-09-20 23:43:31.231899979 +0200 +@@ -18,7 +18,7 @@ + $(LIBINDICATE_CFLAGS) + + indicate_and_crash_LDADD = \ +- ../libindicate/libindicate.la \ ++ $(top_srcdir)/libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + + indicate_alot_SOURCES = \ +@@ -30,7 +30,7 @@ + $(LIBINDICATE_CFLAGS) + + indicate_alot_LDADD = \ +- ../libindicate/libindicate.la \ ++ $(top_srcdir)/libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + + listen_and_print_SOURCES = \ +@@ -43,8 +43,8 @@ + $(LIBINDICATEGTK_CFLAGS) + + listen_and_print_LDADD = \ +- ../libindicate/libindicate.la \ +- ../libindicate-gtk/libindicate-gtk.la \ ++ $(top_srcdir)/libindicate/libindicate.la \ ++ $(top_srcdir)/libindicate-gtk/libindicate-gtk.la \ + $(LIBINDICATE_LIBS) \ + $(LIBINDICATEGTK_LIBS) + +@@ -58,8 +58,8 @@ + $(LIBINDICATEGTK_CFLAGS) + + im_client_LDADD = \ +- ../libindicate/libindicate.la \ +- ../libindicate-gtk/libindicate-gtk.la \ ++ $(top_srcdir)/libindicate/libindicate.la \ ++ $(top_srcdir)/libindicate-gtk/libindicate-gtk.la \ + $(LIBINDICATE_LIBS) \ + $(LIBINDICATEGTK_LIBS) + +@@ -72,7 +72,7 @@ + $(LIBINDICATE_CFLAGS) + + show_hide_server_LDADD = \ +- ../libindicate/libindicate.la \ ++ $(top_srcdir)/libindicate/libindicate.la \ + $(LIBINDICATE_LIBS) + + python_examples = \ diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-fix-python-version.patch b/dev-libs/libindicate/files/libindicate-0.4.4-fix-python-version.patch new file mode 100644 index 00000000000..198114b6564 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-fix-python-version.patch @@ -0,0 +1,11 @@ +--- bindings/python/Makefile.am.orig 2010-12-01 11:02:01.089105608 +0100 ++++ bindings/python/Makefile.am 2010-12-01 11:02:32.619126150 +0100 +@@ -21,7 +21,7 @@ + indicatedir = $(pkgpyexecdir)/indicate + indicate_LTLIBRARIES = _indicate.la + +-_indicate_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_indicate -lpyglib-2.0-python2.6 -lpython2.6 ++_indicate_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_indicate -lpyglib-2.0-python@PYTHON_VERSION@ -lpython@PYTHON_VERSION@ + _indicate_la_LIBADD = $(INDICATE_PYTHON_LIBS) -L$(top_builddir)/libindicate/.libs/ -lindicate -L$(top_builddir)/libindicate-gtk/.libs -lindicate-gtk $(LIBINDICATEGTK_LIBS) + _indicate_la_SOURCES = indicatemodule.c + nodist__indicate_la_SOURCES = indicate.c diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-optional-doc.patch b/dev-libs/libindicate/files/libindicate-0.4.4-optional-doc.patch new file mode 100644 index 00000000000..b4f6d6f9dbb --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-optional-doc.patch @@ -0,0 +1,36 @@ +--- configure.ac.orig 2010-09-20 23:15:36.692289201 +0200 ++++ configure.ac 2010-09-20 23:26:30.159014141 +0200 +@@ -171,8 +171,18 @@ + # GTK Doc + ########################### + ++AC_ARG_ENABLE([doc], ++ AC_HELP_STRING([--disable-doc], [Disable doc generation]), ++ [enable_doc=$enableval], enable_doc=auto) ++AM_CONDITIONAL([WANT_DOC], [test "x$enable_doc" != "xno"]) ++ + GTK_DOC_CHECK([1.4]) ++if test "x$enable_doc" != "xno" ; then + GNOME_DOC_INIT ++else ++# The initialisation is still needed for certain conditionals to be defined, just make it not output any error ++GNOME_DOC_INIT(,,[:]) ++fi + GNOME_COMPILE_WARNINGS + + ############################## +--- Makefile.am.orig 2010-09-20 23:12:10.442903362 +0200 ++++ Makefile.am 2010-09-20 23:27:12.557785756 +0200 +@@ -5,7 +5,10 @@ + bindings \ + examples \ +- tests \ +- docs ++ tests ++ ++if WANT_DOC ++SUBDIRS += docs ++endif + + EXTRA_DIST = \ + COPYING.LGPL.2.1 \ diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-optional-examples.patch b/dev-libs/libindicate/files/libindicate-0.4.4-optional-examples.patch new file mode 100644 index 00000000000..8e2e0364404 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-optional-examples.patch @@ -0,0 +1,11 @@ +--- examples/Makefile.am.orig 2010-09-20 23:42:07.380545155 +0200 ++++ examples/Makefile.am 2010-09-20 23:57:17.405792954 +0200 +@@ -2,7 +2,7 @@ + CSFILES = IndicatorMonoExample.cs + CLEANFILES = $(ASSEMBLY) + +-libexec_PROGRAMS = \ ++EXTRA_PROGRAMS = \ + indicate-and-crash \ + indicate-alot \ + listen-and-print \ diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-optional-gtk.patch b/dev-libs/libindicate/files/libindicate-0.4.4-optional-gtk.patch new file mode 100644 index 00000000000..6376b46d708 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-optional-gtk.patch @@ -0,0 +1,42 @@ +--- configure.ac.orig 2010-09-20 23:15:36.692289201 +0200 ++++ configure.ac 2010-09-20 23:17:50.380918143 +0200 +@@ -66,12 +66,20 @@ + + GDK_PIXBUF_REQUIRED_VERSION=2.12 + ++AC_ARG_ENABLE([gtk], ++ AC_HELP_STRING([--disable-gtk], [Disable libindicate-gtk library]), ++ [enable_gtk=$enableval], enable_gtk=auto) ++AM_CONDITIONAL([WANT_LIBINDICATEGTK], [test "x$enable_gtk" != "xno"]) ++ ++if test "x$enable_gtk" != "xno" ; then + PKG_CHECK_MODULES(LIBINDICATEGTK, glib-2.0 >= $GLIB_REQUIRED_VERSION + gio-2.0 >= $GIO_REQUIRED_VERSION + gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED_VERSION + gtk+-2.0 >= $GTK_REQUIRED_VERSION + dbusmenu-glib >= $DBUSMENU_REQUIRED_VERSION + dbus-glib-1 >= $DBUS_REQUIRED_VERSION) ++fi ++ + AC_SUBST(LIBINDICATEGTK_CFLAGS) + AC_SUBST(LIBINDICATEGTK_LIBS) + +--- Makefile.am.orig 2010-09-20 23:12:10.442903362 +0200 ++++ Makefile.am 2010-09-20 23:17:35.141406450 +0200 +@@ -1,12 +1,15 @@ + + SUBDIRS = \ + libindicate \ +- libindicate-gtk \ + bindings \ + examples \ + tests \ + docs + ++if WANT_LIBINDICATEGTK ++SUBDIRS += libindicate-gtk ++endif ++ + EXTRA_DIST = \ + COPYING.LGPL.2.1 \ + gtk-doc.make \ diff --git a/dev-libs/libindicate/files/libindicate-0.4.4-optional-mono-example.patch b/dev-libs/libindicate/files/libindicate-0.4.4-optional-mono-example.patch new file mode 100644 index 00000000000..97cb78ce3c4 --- /dev/null +++ b/dev-libs/libindicate/files/libindicate-0.4.4-optional-mono-example.patch @@ -0,0 +1,8 @@ +--- examples/Makefile.am.orig 2010-09-20 23:42:07.380545155 +0200 ++++ examples/Makefile.am 2010-09-20 23:44:49.173431396 +0200 +@@ -97,5 +97,3 @@ + $(ASSEMBLY): $(CSFILES) Makefile.am + $(CSC) $(CSFLAGS) -out:$(ASSEMBLY) -target:exe $(references) $(srcdir)/$(CSFILES) + chmod a+x indicator-mono-example +- +-all: $(ASSEMBLY) diff --git a/dev-libs/libindicate/libindicate-0.4.4-r1.ebuild b/dev-libs/libindicate/libindicate-0.4.4-r1.ebuild new file mode 100644 index 00000000000..6fe0469bfab --- /dev/null +++ b/dev-libs/libindicate/libindicate-0.4.4-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libindicate/libindicate-0.4.4.ebuild,v 1.1 2011/01/17 09:34:20 tampakrap Exp $ + +EAPI=2 + +inherit autotools eutils versionator + +DESCRIPTION="Library to raise flags on DBus for other components of the desktop to pick up and visualize" +HOMEPAGE="https://launchpad.net/libindicate/" +SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc +introspection" + +RESTRICT="test" + +# For the dependency on dev-libs/libdbusmenu see launchpad-bug #552667 +RDEPEND="dev-libs/glib:2[introspection=] + dev-libs/dbus-glib + dev-libs/libdbusmenu[introspection=] + dev-libs/libxml2:2 + x11-libs/gtk+:2 + dev-python/pygtk + dev-dotnet/gtk-sharp + dev-dotnet/gtk-sharp-gapi" +DEPEND="${RDEPEND} + doc? ( dev-util/gtk-doc ) + introspection? ( >=dev-libs/gobject-introspection-0.6.3 ) + dev-util/gtk-doc-am + dev-util/pkgconfig" + +src_prepare() { + # Without patches: + # Make python optional, launchpad-bug #643921 + # Make mono optional, launchpad-bug #643922 + + # Incomplete patches: + # Make gtk optional, needs optional-python or code modifications, launchpad-bug #431311 + #epatch "${FILESDIR}/${P}-optional-gtk.patch" + + # Make doc optional, launchpad-bug #643911 + epatch "${FILESDIR}/${P}-optional-doc.patch" + # Do not compile mono-example by default, launchpad-bug #643912 + epatch "${FILESDIR}/${P}-optional-mono-example.patch" + # Do not compile examples by default, launchpad-bug #643917 + epatch "${FILESDIR}/${P}-optional-examples.patch" + # Fix trouble with autoreconf and m4 directory, launchpad-bug #683552 + epatch "${FILESDIR}/${P}-fix-aclocal.patch" + # Fixup undeclared HAVE_INTROSPECTION, launchpad-bug #552537 + epatch "${FILESDIR}/${P}-fix-introspection.patch" + # Fix out-of-source builds, launchpad-bug #643913 + epatch "${FILESDIR}/${P}-fix-out-of-source-build.patch" + # Fix compilation for python != 2.6, launchpad-bug #594992 + epatch "${FILESDIR}/${P}-fix-python-version.patch" + # Drop -Werror in a release + sed -e 's:-Werror::g' -i libindicate/Makefile.am libindicate-gtk/Makefile.am || die "sed failed" + eautoreconf +} + +src_configure() { + # gobject-instrospection is a nightmare in this package, it's fixable for libindicate + # and not for libindicate-gtk, disable it until its fixed on upstream + econf \ + --disable-dependency-tracking \ + --docdir=/usr/share/doc/${PF} \ + $(use_enable doc) \ + $(use_enable introspection) \ + || die "configure failed" +} + +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/libindicate/metadata.xml b/dev-libs/libindicate/metadata.xml new file mode 100644 index 00000000000..a1e3d21187d --- /dev/null +++ b/dev-libs/libindicate/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>kde</herd> + <maintainer> + <email>mrpouet@gentoo.org</email> + <name>Romain Perier</name> + </maintainer> +</pkgmetadata> |
