1 |
commit: 4c93bcc75f8768d767dca4aa22ed612ca0c342ed |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 8 10:07:47 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 8 10:07:47 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c93bcc7 |
7 |
|
8 |
media-libs/libgpod: Use Fedora patches for mono-4 support (#579100) and prevent overlinking. |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
media-libs/libgpod/files/libgpod-0.8.3-mono4.patch | 11 +++ |
13 |
.../libgpod-0.8.3-pkgconfig_overlinking.patch | 11 +++ |
14 |
media-libs/libgpod/libgpod-0.8.3-r2.ebuild | 88 ++++++++++++++++++++++ |
15 |
3 files changed, 110 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/libgpod/files/libgpod-0.8.3-mono4.patch b/media-libs/libgpod/files/libgpod-0.8.3-mono4.patch |
18 |
new file mode 100644 |
19 |
index 00000000..9cb57b4 |
20 |
--- /dev/null |
21 |
+++ b/media-libs/libgpod/files/libgpod-0.8.3-mono4.patch |
22 |
@@ -0,0 +1,11 @@ |
23 |
+--- libgpod-0.8.3/m4/mono.m4.orig 2015-05-18 12:25:35.417699745 +0100 |
24 |
++++ libgpod-0.8.3/m4/mono.m4 2015-05-18 12:25:53.488079557 +0100 |
25 |
+@@ -34,7 +34,7 @@ |
26 |
+ |
27 |
+ AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER], |
28 |
+ [ |
29 |
+- SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs) |
30 |
++ SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs) |
31 |
+ ]) |
32 |
+ |
33 |
+ AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME], |
34 |
|
35 |
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 |
36 |
new file mode 100644 |
37 |
index 00000000..a5dafb2 |
38 |
--- /dev/null |
39 |
+++ b/media-libs/libgpod/files/libgpod-0.8.3-pkgconfig_overlinking.patch |
40 |
@@ -0,0 +1,11 @@ |
41 |
+diff -up libgpod-0.8.2/libgpod-1.0.pc.in.pkgconfig_overlinking libgpod-0.8.2/libgpod-1.0.pc.in |
42 |
+--- libgpod-0.8.2/libgpod-1.0.pc.in.pkgconfig_overlinking 2011-04-15 03:37:34.000000000 -0500 |
43 |
++++ libgpod-0.8.2/libgpod-1.0.pc.in 2012-08-10 13:53:00.294631805 -0500 |
44 |
+@@ -6,6 +6,6 @@ includedir=@includedir@ |
45 |
+ Name: libgpod |
46 |
+ Description: A library to manipulate songs and playlists stored on an ipod |
47 |
+ Version: @VERSION@ |
48 |
+-Requires: glib-2.0 >= 2.8.0 gobject-2.0 @GDKPIXBUF_REQ@ @LIBIMOBILEDEVICE_REQ@ |
49 |
++Requires.private: glib-2.0 >= 2.8.0 gobject-2.0 @GDKPIXBUF_REQ@ @LIBIMOBILEDEVICE_REQ@ |
50 |
+ Libs: -L${libdir} -lgpod |
51 |
+ Cflags: -I${includedir}/gpod-1.0 |
52 |
|
53 |
diff --git a/media-libs/libgpod/libgpod-0.8.3-r2.ebuild b/media-libs/libgpod/libgpod-0.8.3-r2.ebuild |
54 |
new file mode 100644 |
55 |
index 00000000..79f9aa2 |
56 |
--- /dev/null |
57 |
+++ b/media-libs/libgpod/libgpod-0.8.3-r2.ebuild |
58 |
@@ -0,0 +1,88 @@ |
59 |
+# Copyright 1999-2016 Gentoo Foundation |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+# $Id$ |
62 |
+ |
63 |
+EAPI=6 |
64 |
+PYTHON_COMPAT=( python2_7 ) |
65 |
+ |
66 |
+inherit autotools eutils mono-env python-single-r1 udev |
67 |
+ |
68 |
+DESCRIPTION="Shared library to access the contents of an iPod" |
69 |
+HOMEPAGE="http://www.gtkpod.org/libgpod/" |
70 |
+SRC_URI="mirror://sourceforge/gtkpod/${P}.tar.bz2" |
71 |
+ |
72 |
+LICENSE="LGPL-2" |
73 |
+SLOT="0" |
74 |
+KEYWORDS="~amd64 ~x86" |
75 |
+ |
76 |
+IUSE="+gtk python +udev ios mono static-libs" |
77 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
78 |
+ |
79 |
+RDEPEND=" |
80 |
+ >=app-pda/libplist-1.0:= |
81 |
+ >=dev-db/sqlite-3:3 |
82 |
+ >=dev-libs/glib-2.16:2 |
83 |
+ dev-libs/libxml2:2 |
84 |
+ sys-apps/sg3_utils |
85 |
+ gtk? ( x11-libs/gdk-pixbuf:2 ) |
86 |
+ ios? ( app-pda/libimobiledevice:= ) |
87 |
+ python? ( |
88 |
+ ${PYTHON_DEPS} |
89 |
+ >=media-libs/mutagen-1.8[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/pygobject-2.8:2[${PYTHON_USEDEP}] |
91 |
+ ) |
92 |
+ udev? ( virtual/udev ) |
93 |
+ mono? ( |
94 |
+ >=dev-lang/mono-1.9.1 |
95 |
+ >=dev-dotnet/gtk-sharp-2.12 |
96 |
+ ) |
97 |
+" |
98 |
+DEPEND="${RDEPEND} |
99 |
+ python? ( >=dev-lang/swig-1.3.24:0 ) |
100 |
+ dev-libs/libxslt |
101 |
+ dev-util/intltool |
102 |
+ dev-util/gtk-doc-am |
103 |
+ sys-devel/gettext |
104 |
+ virtual/pkgconfig |
105 |
+" |
106 |
+ |
107 |
+DOCS="AUTHORS NEWS README* TROUBLESHOOTING" |
108 |
+ |
109 |
+PATCHES=( |
110 |
+ "${FILESDIR}"/${P}-comment.patch #537968 |
111 |
+ "${FILESDIR}"/${P}-segfault.patch #565052 |
112 |
+ "${FILESDIR}"/${P}-mono4.patch |
113 |
+ "${FILESDIR}"/${P}-pkgconfig_overlinking.patch |
114 |
+) |
115 |
+ |
116 |
+pkg_setup() { |
117 |
+ use mono && mono-env_pkg_setup |
118 |
+ use python && python-single-r1_pkg_setup |
119 |
+} |
120 |
+ |
121 |
+src_prepare() { |
122 |
+ default |
123 |
+ |
124 |
+ # mono-4 fixes from Fedora |
125 |
+ sed -i "s#public DateTime#public System.DateTime#g" bindings/mono/libgpod-sharp/Artwork.cs || die |
126 |
+ eautoreconf |
127 |
+} |
128 |
+ |
129 |
+src_configure() { |
130 |
+ econf \ |
131 |
+ $(use_enable static-libs static) \ |
132 |
+ $(use_enable udev) \ |
133 |
+ $(use_enable gtk gdk-pixbuf) \ |
134 |
+ $(use_enable python pygobject) \ |
135 |
+ --without-hal \ |
136 |
+ $(use_with ios libimobiledevice) \ |
137 |
+ --with-udev-dir="$(get_udevdir)" \ |
138 |
+ $(use_with python) \ |
139 |
+ $(use_with mono) |
140 |
+} |
141 |
+ |
142 |
+src_install() { |
143 |
+ default |
144 |
+ rmdir "${ED}"/tmp |
145 |
+ prune_libtool_files --modules |
146 |
+} |