diff options
author | Pacho Ramos <pacho@gentoo.org> | 2016-10-08 12:07:47 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2016-10-08 12:07:47 +0200 |
commit | 4c93bcc75f8768d767dca4aa22ed612ca0c342ed (patch) | |
tree | 201825bdaf4a92327ae2b4f35a638abb181ab247 /media-libs/libgpod | |
parent | dev-libs/totem-pl-parser: Version bump (diff) | |
download | gentoo-4c93bcc75f8768d767dca4aa22ed612ca0c342ed.tar.gz gentoo-4c93bcc75f8768d767dca4aa22ed612ca0c342ed.tar.bz2 gentoo-4c93bcc75f8768d767dca4aa22ed612ca0c342ed.zip |
media-libs/libgpod: Use Fedora patches for mono-4 support (#579100) and prevent overlinking.
Package-Manager: portage-2.3.1
Diffstat (limited to 'media-libs/libgpod')
-rw-r--r-- | media-libs/libgpod/files/libgpod-0.8.3-mono4.patch | 11 | ||||
-rw-r--r-- | media-libs/libgpod/files/libgpod-0.8.3-pkgconfig_overlinking.patch | 11 | ||||
-rw-r--r-- | media-libs/libgpod/libgpod-0.8.3-r2.ebuild | 88 |
3 files changed, 110 insertions, 0 deletions
diff --git a/media-libs/libgpod/files/libgpod-0.8.3-mono4.patch b/media-libs/libgpod/files/libgpod-0.8.3-mono4.patch new file mode 100644 index 000000000000..9cb57b464ffc --- /dev/null +++ b/media-libs/libgpod/files/libgpod-0.8.3-mono4.patch @@ -0,0 +1,11 @@ +--- libgpod-0.8.3/m4/mono.m4.orig 2015-05-18 12:25:35.417699745 +0100 ++++ libgpod-0.8.3/m4/mono.m4 2015-05-18 12:25:53.488079557 +0100 +@@ -34,7 +34,7 @@ + + AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER], + [ +- SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs) ++ SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs) + ]) + + AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME], diff --git a/media-libs/libgpod/files/libgpod-0.8.3-pkgconfig_overlinking.patch b/media-libs/libgpod/files/libgpod-0.8.3-pkgconfig_overlinking.patch new file mode 100644 index 000000000000..a5dafb28576d --- /dev/null +++ b/media-libs/libgpod/files/libgpod-0.8.3-pkgconfig_overlinking.patch @@ -0,0 +1,11 @@ +diff -up libgpod-0.8.2/libgpod-1.0.pc.in.pkgconfig_overlinking libgpod-0.8.2/libgpod-1.0.pc.in +--- libgpod-0.8.2/libgpod-1.0.pc.in.pkgconfig_overlinking 2011-04-15 03:37:34.000000000 -0500 ++++ libgpod-0.8.2/libgpod-1.0.pc.in 2012-08-10 13:53:00.294631805 -0500 +@@ -6,6 +6,6 @@ includedir=@includedir@ + Name: libgpod + Description: A library to manipulate songs and playlists stored on an ipod + Version: @VERSION@ +-Requires: glib-2.0 >= 2.8.0 gobject-2.0 @GDKPIXBUF_REQ@ @LIBIMOBILEDEVICE_REQ@ ++Requires.private: glib-2.0 >= 2.8.0 gobject-2.0 @GDKPIXBUF_REQ@ @LIBIMOBILEDEVICE_REQ@ + Libs: -L${libdir} -lgpod + Cflags: -I${includedir}/gpod-1.0 diff --git a/media-libs/libgpod/libgpod-0.8.3-r2.ebuild b/media-libs/libgpod/libgpod-0.8.3-r2.ebuild new file mode 100644 index 000000000000..79f9aa203aa3 --- /dev/null +++ b/media-libs/libgpod/libgpod-0.8.3-r2.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit autotools eutils mono-env python-single-r1 udev + +DESCRIPTION="Shared library to access the contents of an iPod" +HOMEPAGE="http://www.gtkpod.org/libgpod/" +SRC_URI="mirror://sourceforge/gtkpod/${P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="+gtk python +udev ios mono static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + >=app-pda/libplist-1.0:= + >=dev-db/sqlite-3:3 + >=dev-libs/glib-2.16:2 + dev-libs/libxml2:2 + sys-apps/sg3_utils + gtk? ( x11-libs/gdk-pixbuf:2 ) + ios? ( app-pda/libimobiledevice:= ) + python? ( + ${PYTHON_DEPS} + >=media-libs/mutagen-1.8[${PYTHON_USEDEP}] + >=dev-python/pygobject-2.8:2[${PYTHON_USEDEP}] + ) + udev? ( virtual/udev ) + mono? ( + >=dev-lang/mono-1.9.1 + >=dev-dotnet/gtk-sharp-2.12 + ) +" +DEPEND="${RDEPEND} + python? ( >=dev-lang/swig-1.3.24:0 ) + dev-libs/libxslt + dev-util/intltool + dev-util/gtk-doc-am + sys-devel/gettext + virtual/pkgconfig +" + +DOCS="AUTHORS NEWS README* TROUBLESHOOTING" + +PATCHES=( + "${FILESDIR}"/${P}-comment.patch #537968 + "${FILESDIR}"/${P}-segfault.patch #565052 + "${FILESDIR}"/${P}-mono4.patch + "${FILESDIR}"/${P}-pkgconfig_overlinking.patch +) + +pkg_setup() { + use mono && mono-env_pkg_setup + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + + # mono-4 fixes from Fedora + sed -i "s#public DateTime#public System.DateTime#g" bindings/mono/libgpod-sharp/Artwork.cs || die + eautoreconf +} + +src_configure() { + econf \ + $(use_enable static-libs static) \ + $(use_enable udev) \ + $(use_enable gtk gdk-pixbuf) \ + $(use_enable python pygobject) \ + --without-hal \ + $(use_with ios libimobiledevice) \ + --with-udev-dir="$(get_udevdir)" \ + $(use_with python) \ + $(use_with mono) +} + +src_install() { + default + rmdir "${ED}"/tmp + prune_libtool_files --modules +} |