summaryrefslogtreecommitdiff
path: root/media-libs/libgpod
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libgpod
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libgpod')
-rw-r--r--media-libs/libgpod/Manifest9
-rw-r--r--media-libs/libgpod/files/libgpod-0.8.3-comment.patch15
-rw-r--r--media-libs/libgpod/files/libgpod-0.8.3-mono4.patch11
-rw-r--r--media-libs/libgpod/files/libgpod-0.8.3-pkgconfig_overlinking.patch11
-rw-r--r--media-libs/libgpod/files/libgpod-0.8.3-segfault.patch28
-rw-r--r--media-libs/libgpod/libgpod-0.8.3-r2.ebuild87
-rw-r--r--media-libs/libgpod/metadata.xml15
7 files changed, 176 insertions, 0 deletions
diff --git a/media-libs/libgpod/Manifest b/media-libs/libgpod/Manifest
new file mode 100644
index 000000000000..a34454b46302
--- /dev/null
+++ b/media-libs/libgpod/Manifest
@@ -0,0 +1,9 @@
+AUX libgpod-0.8.3-comment.patch 611 SHA256 bf2c25fc4cbe800a363aa2fa1e0ff225db5c894cfa9505316b7e311e5f0bd613 SHA512 a9d042745d8095a8188e57d82c8e1b00acb41f45da1510b2615d29b607b52ae49e54d3482e5021d085501f3705f4ad0fa79796cd4262c74acd0b4f34f8450a44 WHIRLPOOL 48fa1d082ec571ad7814a8df97e4d0004aa49a5b40df8a7ccaed38459a32d7df2536deb3633fc64e2acd29b6acdf653192bb070fed0fb214126ea984fd6d91d6
+AUX libgpod-0.8.3-mono4.patch 334 SHA256 e53e2515706decc10e4e7d7c6f77582a6d9f4abe365d0b541a8056951d185328 SHA512 293e1c72b60175d4aa5d092955fa84f53120461b39545bde0827a0c76b583f22d14a940534c4a5b79c68edf00250d81dab1524accbc6f4eb2e487afe399c324c WHIRLPOOL c4993fe25ba32c002d9607cb1e48370e05d7dd9f7f5080114b89ea80b2fa9ba30793659e7ea0ec2d5889769046cf38ccaa126caf83a740c5aa30e9ac3f63cc3e
+AUX libgpod-0.8.3-pkgconfig_overlinking.patch 640 SHA256 02daa2b46d0cfdee14c9d96eabf903ba4638694e669c5cb0ec462076837ac2ff SHA512 c8ebcc18ba7b44aef8fada3f9fea88fdaaf6bae12cf809b08f98e85ab6396ae032bfd7706809cd266be67c694749d4364a9cc591eb750478e095cbbcbe061419 WHIRLPOOL 20c936892717d2910b2eecfee87e254f68a6aab93eabb5236f46e85294283a3fb72972d09c778d7053f540c4f378ddd1908c94b994e27b0583a67e204d07818f
+AUX libgpod-0.8.3-segfault.patch 1171 SHA256 196edba9559a78d09c8aef2f88b52e41d92e32a24e913dc2f38c9410f0c1ea1f SHA512 9b2f9a4f4e8f41e5d11cbc943cbba915147b81ec66859b62a5986b5d1c5c90526ce522e24499daf3378c201126ac6e5da8ef855a5f2353b933806c5b3aa6effb WHIRLPOOL 5946f857f865946d8886f173d26c007fa7252ddf415ec1b519111d718217594f7b6bea6109bb5291b7667f2a56ebd8521f315336e8d291e8d62d766c108cd14e
+DIST libgpod-0.8.3.tar.bz2 801903 SHA256 638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d SHA512 e39f22054c2d2bdf5fc764aa1f692de17a1a06c7c7e9c60883d126b216dacca7840bf818e7e7e039218fe2a64c0920ba96d8cbbe310e11c1c4e68b82e7cbbd8e WHIRLPOOL a82d5d5c095d3240dbc0c5dd0f857c836591fa0d29347463a66c2811dc6dce0263c220835eb9e12cb54e82d7570c898dfdf69513f5134ea2d8ad18ccee7f3a5f
+EBUILD libgpod-0.8.3-r2.ebuild 1924 SHA256 19d474e579ff3bad1d92c0965cfe50e656f3ee2bb78a8c90890b6222db5d942c SHA512 73ef0af171d6edddad09b5efd7834f1de38f23d79214c9538de4a8bf53338f75b9bc72bb534257ecdeab7c210b91714e8bf69220a724ccb518b75532bc74c060 WHIRLPOOL 35b4ecd57f0cdcc2880383b1a4b8c2a7313063c96d252064477f5ef31ae3ed679aadd72060bbeda8ddd7b1f3530316ec33e800816cfb3106d38977dbf42dc783
+MISC ChangeLog 3924 SHA256 e545549faf6fa54514100fe9444e628451cbf6dfb3fd314bbd7c7ab6d66cabc4 SHA512 89f23890f5ac1a2aafbdd2bbfcdcc2086a42259cf85f7e17b35f29c9625658b413a53d2627da1f75696a8449b334561ca7dc58fbe25ef73abd39f21030f9e7d1 WHIRLPOOL 0b55c6331a605e31a9c33945953ea7b97fc9575a75b137547ff800d6fbd23a520b0d083bc2281fc6d28db3a465ae8f83ea16d1833808069347319bf3a66c5213
+MISC ChangeLog-2015 13367 SHA256 845066165584ee04d499155ddad927c782a375080acf005b361d70dc9d055fb7 SHA512 71c190dda52552224bedccd89f64262fb0af36c91cde85f19cb9377acf46e8357648130d1f4c75006c2ac949fb4e2059e1fb26c9448a10124b0688ecafce76e3 WHIRLPOOL a4dedba957538b56403851ec9b15d8de2e9c1f2b8a5aadf1edf4476ca4cee9ead55d7774ee658b349d63a3cc7498f68e5768bc6a9733d6c2e0719c8d110b24fa
+MISC metadata.xml 483 SHA256 5d45a64256f032c704275f291e8dcaceb4dc604c08fe5a90cd178cb3a4a5b7bd SHA512 0cf6044e1a0bbbd172d3421b4f1eab9a7334cdf1d732f6f61e689fad2d998bf302cb5436e4a695ad9d1a1beaf5939cd269b643db4b4edc2d869469a20c2f2827 WHIRLPOOL 47b4f3a849508b6516cf0ea7b7737c7d8cf4b9d964e86cbdc1b525052a38af664c3689f5fa8033dee2b094929a1289609c8b44356f2b79da973114c1f3f9e349
diff --git a/media-libs/libgpod/files/libgpod-0.8.3-comment.patch b/media-libs/libgpod/files/libgpod-0.8.3-comment.patch
new file mode 100644
index 000000000000..6099b22870bc
--- /dev/null
+++ b/media-libs/libgpod/files/libgpod-0.8.3-comment.patch
@@ -0,0 +1,15 @@
+--- a/bindings/python/gpod.i.in.orig 2015-06-20 23:15:41.000000000 -0700
++++ b/bindings/python/gpod.i.in 2015-06-20 23:16:28.000000000 -0700
+@@ -298,9 +298,9 @@
+ %include "gpod_doc.i"
+ %include "@top_builddir@/config.h"
+
+-# be nicer to decode these utf8 strings into Unicode objects in the C
+-# layer. Here we are leaving it to the Python side, and just giving
+-# them utf8 encoded Strings.
++// be nicer to decode these utf8 strings into Unicode objects in the C
++// layer. Here we are leaving it to the Python side, and just giving
++// them utf8 encoded Strings.
+ typedef char gchar;
+
+ %typemap(in) time_t {
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/files/libgpod-0.8.3-segfault.patch b/media-libs/libgpod/files/libgpod-0.8.3-segfault.patch
new file mode 100644
index 000000000000..555188149f8b
--- /dev/null
+++ b/media-libs/libgpod/files/libgpod-0.8.3-segfault.patch
@@ -0,0 +1,28 @@
+# Patch from James Burton - https://github.com/jburton/libgpod/commit/342d49c5577682dd4fba35bfd5fb15f7287c7d5a
+--- a/src/itdb_itunesdb.c
++++ b/src/itdb_itunesdb.c
+@@ -1156,6 +1156,7 @@ static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data)
+ GHashTable *pc_dict, *track_dict;
+ GValue *to_parse;
+ GArray *array;
++ GValue value;
+ gint i;
+ guint32 mac_time;
+ guint64 *dbid;
+@@ -1174,13 +1175,14 @@ static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data)
+ playcounts = g_hash_table_new_full (g_int64_hash, g_int64_equal, g_free, g_free);
+
+ array = (GArray*)g_value_get_boxed (to_parse);
+ for (i = 0; i < array->len; i++) {
+- if (!G_VALUE_HOLDS (g_array_index (array, GValue *, i), G_TYPE_HASH_TABLE)) {
++ value = g_array_index (array, GValue, i);
++ if (!G_VALUE_HOLDS (&value, G_TYPE_HASH_TABLE)) {
+ continue;
+ }
+
+- track_dict = g_value_get_boxed (g_array_index (array, GValue *, i));
++ track_dict = g_value_get_boxed (&value);
+ if (track_dict == NULL)
+ continue;
+
+ to_parse = g_hash_table_lookup (track_dict, "persistentID");
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..bbaec2d1a295
--- /dev/null
+++ b/media-libs/libgpod/libgpod-0.8.3-r2.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ppc 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
+}
diff --git a/media-libs/libgpod/metadata.xml b/media-libs/libgpod/metadata.xml
new file mode 100644
index 000000000000..e1549fbc99c5
--- /dev/null
+++ b/media-libs/libgpod/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription lang="en">
+ libgpod is a shared library to access the contents of an iPod. This
+ library is based on code used in the gtkpod project.
+ </longdescription>
+ <use>
+ <flag name="gtk">Enable ArtworkDB support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gtkpod</remote-id>
+ </upstream>
+</pkgmetadata>