commit:     a3243c15b2f6545ca4b8204b43c720eb4fa9460d
Author:     Fredric Johansson <fredric.miscmail <AT> gmail <DOT> com>
AuthorDate: Sun Jan 18 05:00:41 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Feb  2 11:56:58 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/hardened-dev.git;a=commit;h=a3243c15

dev-libs/libgamin: fixed to build on musl, patch from Alpine linux

---
 .../libgamin-0.1.10-G_CONST_RETURN-removal.patch   |  67 ++++++++++
 .../files/libgamin-0.1.10-armel-features.patch     |  47 +++++++
 .../files/libgamin-0.1.10-compilewarnings.patch    |  22 ++++
 .../files/libgamin-0.1.10-crosscompile-fix.patch   |  38 ++++++
 .../libgamin/files/libgamin-0.1.10-deadlock.patch  |  65 ++++++++++
 ...amin-0.1.10-disable_python_static_library.patch |  13 ++
 .../files/libgamin-0.1.10-fix-pthread-mutex.patch  |  11 ++
 .../files/libgamin-0.1.10-noinst-lib.patch         |  76 +++++++++++
 dev-libs/libgamin/libgamin-0.1.10-r99.ebuild       | 142 +++++++++++++++++++++
 dev-libs/libgamin/metadata.xml                     |   8 ++
 10 files changed, 489 insertions(+)

diff --git 
a/dev-libs/libgamin/files/libgamin-0.1.10-G_CONST_RETURN-removal.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-G_CONST_RETURN-removal.patch
new file mode 100644
index 0000000..087312f
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-G_CONST_RETURN-removal.patch
@@ -0,0 +1,67 @@
+From 2a9d32734a2e5125ae77de6c75789e1c6ee24dbe Mon Sep 17 00:00:00 2001
+From: Maciej Piechotka <[email protected]>
+Date: Tue, 13 Sep 2011 09:47:05 +0200
+Subject: [PATCH] Fix compilation of recent glib removing G_CONST_RETURN
+
+---
+ server/gam_node.c         |    2 +-
+ server/gam_node.h         |    2 +-
+ server/gam_subscription.c |    2 +-
+ server/gam_subscription.h |    2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/server/gam_node.c b/server/gam_node.c
+index 02358ba..d0302d2 100644
+--- a/server/gam_node.c
++++ b/server/gam_node.c
+@@ -122,7 +122,7 @@ gam_node_set_is_dir(GamNode * node, gboolean is_dir)
+  * it has finished with the string.  If it must keep it longer, it
+  * should makes its own copy.  The returned string must not be freed.
+  */
+-G_CONST_RETURN char *
++const char *
+ gam_node_get_path(GamNode * node)
+ {
+     g_assert(node);
+diff --git a/server/gam_node.h b/server/gam_node.h
+index 02c8692..83349a8 100644
+--- a/server/gam_node.h
++++ b/server/gam_node.h
+@@ -58,7 +58,7 @@ gboolean              gam_node_is_dir              (GamNode  
       *node);
+ void                  gam_node_set_is_dir          (GamNode         *node,
+                                                  gboolean        is_dir);
+       
+-G_CONST_RETURN char  *gam_node_get_path            (GamNode         *node);
++const char           *gam_node_get_path            (GamNode         *node);
+ 
+ GList                *gam_node_get_subscriptions   (GamNode         *node);
+ 
+diff --git a/server/gam_subscription.c b/server/gam_subscription.c
+index dfa3273..4675b34 100644
+--- a/server/gam_subscription.c
++++ b/server/gam_subscription.c
+@@ -141,7 +141,7 @@ gam_subscription_pathlen(GamSubscription * sub)
+  * @param sub the GamSubscription
+  * @returns The path being monitored.  It should not be freed.
+  */
+-G_CONST_RETURN char *
++const char *
+ gam_subscription_get_path(GamSubscription * sub)
+ {
+     if (sub == NULL)
+diff --git a/server/gam_subscription.h b/server/gam_subscription.h
+index d894fbe..e6b4e15 100644
+--- a/server/gam_subscription.h
++++ b/server/gam_subscription.h
+@@ -21,7 +21,7 @@ int                  gam_subscription_pathlen      
(GamSubscription *sub);
+ 
+ int                  gam_subscription_get_reqno    (GamSubscription *sub);
+ 
+-G_CONST_RETURN char *gam_subscription_get_path     (GamSubscription *sub);
++const char          *gam_subscription_get_path     (GamSubscription *sub);
+ 
+ GamListener         *gam_subscription_get_listener (GamSubscription *sub);
+ 
+-- 
+1.7.6.1
+

diff --git a/dev-libs/libgamin/files/libgamin-0.1.10-armel-features.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-armel-features.patch
new file mode 100644
index 0000000..fdfcbd7
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-armel-features.patch
@@ -0,0 +1,47 @@
+From 05dcfcd69848e119c6a30d363bc41e896029f8af Mon Sep 17 00:00:00 2001
+From: Sebastian Dröge <[email protected]>
+Date: Tue, 15 Dec 2009 12:24:25 +0000
+Subject: Bug 588338 - Enable linux specific features on armel
+
+---
+diff --git a/configure.in b/configure.in
+index b0bbaec..e4b684e 100644
+--- a/configure.in
++++ b/configure.in
+@@ -176,7 +176,7 @@ fi
+ 
+ dnl check what OS we're on
+ #AM_CONDITIONAL(HAVE_LINUX, test x$target_os = xlinux-gnu)
+-if test x$target_os = xlinux-gnu; then
++if test x$target_os = xlinux-gnu -o x$target_os = xlinux-gnueabi; then
+       AC_DEFINE([HAVE_LINUX],[],[Whether we are using linux or not])
+ fi
+ 
+@@ -223,7 +223,7 @@ fi
+ dnl check if inotify backend is enabled
+ AM_CONDITIONAL(ENABLE_INOTIFY, test x$inotify = xtrue)
+ 
+-if test x$os = xlinux-gnu; then
++if test x$os = xlinux-gnu -o x$os = xlinux-gnueabi; then
+       AC_ARG_ENABLE(dnotify,
+               AC_HELP_STRING([--disable-dnotify], [Disable the DNotify 
backend]),
+               [dnotify="${enableval}"], [dnotify=true])
+@@ -297,10 +297,12 @@ else
+ fi
+ 
+ dnl Use weak symbols on linux/gcc to avoid imposing libpthreads to apps
+-if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then
+-    if test "${CC}" = "gcc" ; then
+-        echo Use weak symbols !
+-        THREAD_LIBS=
++if test x$os = xlinux-gnu -o x$os = xlinux-gnueabi ; then
++    if test x$WITH_THREADS = x1 ; then
++      if test "${CC}" = "gcc" ; then
++          echo Use weak symbols !
++          THREAD_LIBS=
++      fi
+     fi
+ fi    
+ AC_SUBST(THREAD_LIBS)
+--
+cgit v0.9.0.2

diff --git a/dev-libs/libgamin/files/libgamin-0.1.10-compilewarnings.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-compilewarnings.patch
new file mode 100644
index 0000000..d3e0931
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-compilewarnings.patch
@@ -0,0 +1,22 @@
+--- gamin-0.1.9/lib/gam_error.h.1      2007-08-15 01:09:13.000000000 +0200
++++ gamin-0.1.9/lib/gam_error.h        2007-08-15 01:09:27.000000000 +0200
+@@ -47,6 +47,9 @@
+ 
+ int gam_errno(void);
+ 
++void  gam_error_init(void);
++void  gam_error_check(void);
++
+ #ifdef GAM_DEBUG_ENABLED
+ 
+ #ifdef GAMIN_DEBUG_API
+@@ -70,9 +73,6 @@
+                   const char* format, ...);
+ #define GAM_DEBUG if (gam_debug_active) gam_debug
+ 
+-void  gam_error_init(void);
+-void  gam_error_check(void);
+-
+ #else
+ /*
+  * no debug, redefine the macro empty content

diff --git a/dev-libs/libgamin/files/libgamin-0.1.10-crosscompile-fix.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-crosscompile-fix.patch
new file mode 100644
index 0000000..ce3a15b
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-crosscompile-fix.patch
@@ -0,0 +1,38 @@
+--- configure.in.orig  2009-04-26 23:00:43.445135823 +0300
++++ configure.in       2009-04-26 23:25:04.042489243 +0300
+@@ -389,8 +389,7 @@
+ 
+ AC_MSG_CHECKING(abstract socket namespace)
+ AC_LANG_PUSH(C)
+-AC_RUN_IFELSE([AC_LANG_PROGRAM(
+-[[
++AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -398,8 +397,8 @@
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <errno.h>
+-]],
+-[[
++
++int main() {
+   int listen_fd;
+   struct sockaddr_un addr;
+   
+@@ -424,9 +423,11 @@
+     }
+   else 
+     exit (0);
+-]])],
+-              [have_abstract_sockets=yes],
+-              [have_abstract_sockets=no])
++}
++],
++have_abstract_sockets=yes,
++have_abstract_sockets=no,
++have_abstract_sockets=no)
+ AC_LANG_POP(C)
+ AC_MSG_RESULT($have_abstract_sockets)
+ 

diff --git a/dev-libs/libgamin/files/libgamin-0.1.10-deadlock.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-deadlock.patch
new file mode 100644
index 0000000..9f2b2a5
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-deadlock.patch
@@ -0,0 +1,65 @@
+From cc14440eface093548cb3bc7814da11d9a99d283 Mon Sep 17 00:00:00 2001
+From: Anssi Hannula <[email protected]>
+Date: Wed, 4 Jan 2012 00:23:55 +0200
+Subject: [PATCH] fix possible server deadlock in ih_sub_cancel
+
+ih_sub_foreach() calls ih_sub_cancel() while inotify_lock is locked.
+However, ih_sub_cancel() locks it again, and locking GMutex recursively
+causes undefined behaviour.
+
+Fix that by removing locking from ih_sub_cancel() as ih_sub_foreach()
+is its only user. Also make the function static so that it won't
+accidentally get used by other files without locking (inotify-helper.h
+is an internal server header).
+
+This should fix the intermittent deadlocks I've been experiencing
+causing KDE applications to no longer start, and probably also
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542361
+---
+ server/inotify-helper.c |    7 ++-----
+ server/inotify-helper.h |    1 -
+ 2 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/server/inotify-helper.c b/server/inotify-helper.c
+index d77203e..0789fa4 100644
+--- a/server/inotify-helper.c
++++ b/server/inotify-helper.c
+@@ -123,13 +123,11 @@ ih_sub_add (ih_sub_t * sub)
+ 
+ /**
+  * Cancels a subscription which was being monitored.
++ * inotify_lock must be held when calling.
+  */
+-gboolean
++static gboolean
+ ih_sub_cancel (ih_sub_t * sub)
+ {
+-      G_LOCK(inotify_lock);
+-
+-
+       if (!sub->cancelled)
+       {
+               IH_W("cancelling %s\n", sub->pathname);
+@@ -140,7 +138,6 @@ ih_sub_cancel (ih_sub_t * sub)
+               sub_list = g_list_remove (sub_list, sub);
+       }
+ 
+-      G_UNLOCK(inotify_lock);
+       return TRUE;
+ }
+ 
+diff --git a/server/inotify-helper.h b/server/inotify-helper.h
+index 5d3b6d0..d36b5fd 100644
+--- a/server/inotify-helper.h
++++ b/server/inotify-helper.h
+@@ -34,7 +34,6 @@ gboolean      ih_startup             (event_callback_t ecb,
+                                        found_callback_t fcb);
+ gboolean       ih_running             (void);
+ gboolean       ih_sub_add             (ih_sub_t *sub);
+-gboolean       ih_sub_cancel          (ih_sub_t *sub);
+ 
+ /* Return FALSE from 'f' if the subscription should be cancelled */
+ void           ih_sub_foreach         (void *callerdata, gboolean 
(*f)(ih_sub_t *sub, void *callerdata));
+-- 
+1.7.7.2
+

diff --git 
a/dev-libs/libgamin/files/libgamin-0.1.10-disable_python_static_library.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-disable_python_static_library.patch
new file mode 100644
index 0000000..562fc07
--- /dev/null
+++ 
b/dev-libs/libgamin/files/libgamin-0.1.10-disable_python_static_library.patch
@@ -0,0 +1,13 @@
+--- python/Makefile.am
++++ python/Makefile.am
+@@ -10,8 +10,9 @@
+ python_LTLIBRARIES = _gamin.la
+ 
+ _gamin_la_SOURCES = gamin.c
++_gamin_la_CFLAGS = -shared
+ _gamin_la_LIBADD = $(top_builddir)/libgamin/libgamin-1.la
+-_gamin_la_LDFLAGS = -module -avoid-version
++_gamin_la_LDFLAGS = -module -avoid-version -shared
+ 
+ python_PYTHON = gamin.py
+ 

diff --git a/dev-libs/libgamin/files/libgamin-0.1.10-fix-pthread-mutex.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-fix-pthread-mutex.patch
new file mode 100644
index 0000000..c8c5b00
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-fix-pthread-mutex.patch
@@ -0,0 +1,11 @@
+--- gamin-0.1.10.orig/libgamin/gam_data.c
++++ gamin-0.1.10/libgamin/gam_data.c
+@@ -470,7 +470,7 @@
+     }
+     if (is_threaded > 0) {
+       pthread_mutexattr_init(&attr);
+-#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP)
++#if defined(linux) && defined(PTHREAD_MUTEX_RECURSIVE_NP)
+       pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ #else
+       pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);

diff --git a/dev-libs/libgamin/files/libgamin-0.1.10-noinst-lib.patch 
b/dev-libs/libgamin/files/libgamin-0.1.10-noinst-lib.patch
new file mode 100644
index 0000000..1f2fcff
--- /dev/null
+++ b/dev-libs/libgamin/files/libgamin-0.1.10-noinst-lib.patch
@@ -0,0 +1,76 @@
+From e68aacc084d65fd0780991265444061b24422bd0 Mon Sep 17 00:00:00 2001
+From: Remi Cardona <[email protected]>
+Date: Mon, 20 Oct 2008 19:17:36 +0200
+Subject: [PATCH] make libgamin_shared a "noinst" libtool helper lib
+
+---
+ lib/Makefile.am      |    4 ++--
+ libgamin/Makefile.am |   15 ++-------------
+ server/Makefile.am   |    2 +-
+ 3 files changed, 5 insertions(+), 16 deletions(-)
+
+diff --git a/lib/Makefile.am b/lib/Makefile.am
+index 3e2289c..af2152a 100644
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -7,9 +7,9 @@ if GAMIN_DEBUG
+ INCLUDES += -DGAM_DEBUG_ENABLED
+ endif
+ 
+-lib_LIBRARIES = libgamin_shared.a
++noinst_LTLIBRARIES = libgamin_shared.la
+ 
+-libgamin_shared_a_SOURCES =                           \
++libgamin_shared_la_SOURCES =                          \
+       gam_event.c                                     \
+       gam_event.h                                     \
+       gam_error.c                                     \
+diff --git a/libgamin/Makefile.am b/libgamin/Makefile.am
+index 35aa740..14fc06b 100644
+--- a/libgamin/Makefile.am
++++ b/libgamin/Makefile.am
+@@ -25,19 +25,9 @@ libgamin_1_la_SOURCES =                                     
\
+       gam_data.h                                      \
+       gam_fork.c                                      \
+       gam_fork.h                                      \
+-      gam_protocol.h                                  \
+-      gam_error.c                                     \
+-      gam_event.c
++      gam_protocol.h
+ 
+-gam_error.c: $(top_srcdir)/lib/gam_error.c
+-      @(cp $(top_srcdir)/lib/gam_error.c gam_error.c)
+-
+-gam_event.c: $(top_srcdir)/lib/gam_event.c
+-      @(cp $(top_srcdir)/lib/gam_event.c gam_event.c)
+-
+-CLEANFILES=gam_error.c gam_event.c
+-
+-libgamin_1_la_LIBADD =
++libgamin_1_la_LIBADD = $(top_builddir)/lib/libgamin_shared.la
+ 
+ libgamin_1_la_LDFLAGS = -Wl,--version-script=$(srcdir)/gamin_sym.version \
+                         -version-info @GAMIN_VERSION_INFO@ @THREAD_LIBS@
+@@ -54,6 +44,5 @@ noinst_PROGRAMS= gamin
+ 
+ gamin_SOURCES = gamin.c
+ gamin_LDFLAGS =
+-gamin_DEPENDENCIES = $(DEPS) libgamin-1.la
+ gamin_LDADD= $(LDADDS) libgamin-1.la
+ 
+diff --git a/server/Makefile.am b/server/Makefile.am
+index 37aed8b..6aa5e02 100644
+--- a/server/Makefile.am
++++ b/server/Makefile.am
+@@ -80,7 +80,7 @@ endif
+ 
+ gam_server_LDFLAGS =
+ gam_server_DEPENDENCIES = $(DEPS)
+-gam_server_LDADD= $(top_builddir)/lib/libgamin_shared.a $(LDADDS) 
$(DAEMON_LIBS)
++gam_server_LDADD= $(top_builddir)/lib/libgamin_shared.la $(LDADDS) 
$(DAEMON_LIBS)
+ 
+ if ENABLE_HURD_MACH_NOTIFY
+ gam_server_LDADD += -lports -lthreads
+-- 
+1.6.0.2
+

diff --git a/dev-libs/libgamin/libgamin-0.1.10-r99.ebuild 
b/dev-libs/libgamin/libgamin-0.1.10-r99.ebuild
new file mode 100644
index 0000000..176ddde
--- /dev/null
+++ b/dev-libs/libgamin/libgamin-0.1.10-r99.ebuild
@@ -0,0 +1,142 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: 
/var/cvsroot/gentoo-x86/dev-libs/libgamin/libgamin-0.1.10-r5.ebuild,v 1.12 
2014/12/06 16:40:07 ago Exp $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python{2_6,2_7} )
+GNOME_ORG_MODULE="gamin"
+GNOME_TARBALL_SUFFIX="bz2"
+
+inherit autotools eutils flag-o-matic libtool python-r1 gnome.org 
multilib-minimal
+
+DESCRIPTION="Library providing the FAM File Alteration Monitor API"
+HOMEPAGE="http://www.gnome.org/~veillard/gamin/";
+SRC_URI="${SRC_URI}
+       mirror://gentoo/gamin-0.1.9-freebsd.patch.bz2
+       
http://dev.gentoo.org/~grobian/patches/libgamin-0.1.10-opensolaris.patch.bz2
+       http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz"; # 
pkg.m4 for eautoreconf
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ~mips ppc x86"
+IUSE="debug kernel_linux python static-libs"
+
+RESTRICT="test" # needs gam-server
+
+RDEPEND="!app-admin/fam
+       !<app-admin/gamin-0.1.10"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+       mv "${WORKDIR}"/pkg-config-*/pkg.m4 "${WORKDIR}"/ || die
+
+       # Fix QA warnings, bug #257281, upstream #466791
+       epatch "${FILESDIR}"/${PN}-0.1.10-compilewarnings.patch
+
+       if [[ ${CHOST} != *-solaris* ]] ; then
+               # Fix compile warnings; bug #188923
+               epatch "${DISTDIR}"/gamin-0.1.9-freebsd.patch.bz2
+       else
+               # (Open)Solaris necessary patches (changes configure.in), 
unfortunately
+               # conflicts with freebsd patch and breaks some linux installs 
so it must
+               # only be applied if on solaris.
+               epatch "${DISTDIR}"/${P}-opensolaris.patch.bz2
+       fi
+
+       # Fix collision problem due to intermediate library, upstream bug 
#530635
+       epatch "${FILESDIR}"/${PN}-0.1.10-noinst-lib.patch
+
+       # Fix compilation with latest glib, bug #382783
+       epatch "${FILESDIR}/${PN}-0.1.10-G_CONST_RETURN-removal.patch"
+
+       # Fix crosscompilation issues, bug #267604
+       epatch "${FILESDIR}/${PN}-0.1.10-crosscompile-fix.patch"
+
+       # Enable linux specific features on armel, upstream bug #588338
+       epatch "${FILESDIR}/${P}-armel-features.patch"
+
+       # Fix possible server deadlock in ih_sub_cancel, upstream bug #667230
+       epatch "${FILESDIR}/${PN}-0.1.10-deadlock.patch"
+
+       # Drop DEPRECATED flags
+       sed -i -e 's:-DG_DISABLE_DEPRECATED:$(NULL):g' server/Makefile.am || die
+
+       # Build only shared version of Python module.
+       epatch "${FILESDIR}"/${PN}-0.1.10-disable_python_static_library.patch
+
+       # Fix build on musl
+       epatch "${FILESDIR}"/${PN}-0.1.10-fix-pthread-mutex.patch
+
+       sed -i \
+               -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
+               -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
+               configure.in || die #466962
+
+       # autoconf is required as the user-cflags patch modifies configure.in
+       # however, elibtoolize is also required, so when the above patch is
+       # removed, replace the following call with a call to elibtoolize
+       AT_M4DIR="${WORKDIR}" eautoreconf
+}
+
+multilib_src_configure() {
+       local myconf=(
+               $(use_enable static-libs static)
+               --disable-debug
+               --disable-server
+               $(use_enable kernel_linux inotify)
+               $(use_enable debug debug-api)
+               --without-python
+       )
+       local ECONF_SOURCE=${S}
+
+       econf "${myconf[@]}"
+       if multilib_is_native_abi && use python; then
+               python_configure() {
+                       mkdir -p "${BUILD_DIR}" || die
+                       cd "${BUILD_DIR}" || die
+                       econf "${myconf[@]}" --with-python
+               }
+
+               python_parallel_foreach_impl python_configure
+       fi
+}
+
+multilib_src_compile() {
+       default
+
+       if multilib_is_native_abi && use python; then
+               local native_builddir=${BUILD_DIR}
+
+               python_compile() {
+                       emake -C "${BUILD_DIR}"/python \
+                               VPATH="${native_builddir}/python:${S}/python" \
+                               
_gamin_la_LIBADD="${native_builddir}/libgamin/libgamin-1.la"
+               }
+
+               python_foreach_impl python_compile
+       fi
+}
+
+multilib_src_install() {
+       emake DESTDIR="${D}" install
+
+       if multilib_is_native_abi && use python; then
+               local native_builddir=${BUILD_DIR}
+
+               python_install() {
+                       emake -C "${BUILD_DIR}"/python \
+                               DESTDIR="${D}" install \
+                               VPATH="${native_builddir}/python:${S}/python"
+               }
+
+               python_foreach_impl python_install
+       fi
+}
+
+multilib_src_install_all() {
+       dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
+       dohtml doc/*
+
+       prune_libtool_files --all
+}

diff --git a/dev-libs/libgamin/metadata.xml b/dev-libs/libgamin/metadata.xml
new file mode 100644
index 0000000..8c86806
--- /dev/null
+++ b/dev-libs/libgamin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+<herd>freedesktop</herd>
+<maintainer>
+<email>[email protected]</email>
+</maintainer>
+</pkgmetadata>

Reply via email to