public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2/, media-sound/xmms2/files/
Date: Sat,  4 Nov 2017 18:14:03 +0000 (UTC)	[thread overview]
Message-ID: <1509819239.c2395af07199c94377833699367243a29f9c83c6.slyfox@gentoo> (raw)

commit:     c2395af07199c94377833699367243a29f9c83c6
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  4 18:13:47 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Nov  4 18:13:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2395af0

media-sound/xmms2: adapt to mac-3 -> mac-4 API change

Picked patch sas-is from:
https://github.com/xmms2/xmms2-devel/pull/2

Package-Manager: Portage-2.3.13, Repoman-2.3.4

 .../xmms2/files/xmms2-0.8_p20161122-mac-4.patch    | 50 ++++++++++++++++++++++
 media-sound/xmms2/xmms2-0.8_p20161122-r1.ebuild    |  3 ++
 2 files changed, 53 insertions(+)

diff --git a/media-sound/xmms2/files/xmms2-0.8_p20161122-mac-4.patch b/media-sound/xmms2/files/xmms2-0.8_p20161122-mac-4.patch
new file mode 100644
index 00000000000..df3e4d2af85
--- /dev/null
+++ b/media-sound/xmms2/files/xmms2-0.8_p20161122-mac-4.patch
@@ -0,0 +1,50 @@
+From e87745721deaf46d7054ac40cc55838561c9f552 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Carretero?= <cJ@zougloub.eu>
+Date: Tue, 24 Oct 2017 18:43:26 -0400
+Subject: [PATCH] plugins: mac: support newer mac API version
+
+---
+ src/plugins/mac/mac.cpp          | 6 +++++-
+ src/plugins/mac/source_adapter.h | 8 +++++++-
+ 2 files changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/src/plugins/mac/mac.cpp b/src/plugins/mac/mac.cpp
+index cec43e52..d8d3d1b9 100644
+--- a/src/plugins/mac/mac.cpp
++++ b/src/plugins/mac/mac.cpp
+@@ -210,8 +210,12 @@ xmms_mac_get_media_info (xmms_xform_t *xform)
+ 				gchar *name;
+ 
+ 				field_name = pTagField->GetFieldName ();
+-				name = (gchar *)GetUTF8FromUTF16 (field_name);
+ 
++#if MAC_DLL_INTERFACE_VERSION_NUMBER >= 1000
++				name = (gchar *)CAPECharacterHelper::GetUTF8FromUTF16 (field_name);
++#else
++				name = (gchar *)GetUTF8FromUTF16 (field_name);
++#endif
+ 				memset (field_value, 0, 255);
+ 				int size = 255;
+ 				p_ape_tag->GetFieldString (field_name, (char *)field_value, &size, TRUE);
+diff --git a/src/plugins/mac/source_adapter.h b/src/plugins/mac/source_adapter.h
+index 94f75359..70617514 100644
+--- a/src/plugins/mac/source_adapter.h
++++ b/src/plugins/mac/source_adapter.h
+@@ -38,7 +38,13 @@ public:
+ 	~CSourceAdapter () {};
+ 
+ 	// open / close
+-	int Open (const wchar_t * pName) { return ERROR_SUCCESS; }
++#if MAC_DLL_INTERFACE_VERSION_NUMBER >= 1000
++	int Open (const wchar_t * pName, BOOL bOpenReadOnly = FALSE)
++#else
++	int Open (const wchar_t * pName)
++#endif
++	{ return ERROR_SUCCESS; }
++
+ 	int Close () { return ERROR_SUCCESS; }
+ 
+ 	// read / write
+-- 
+2.15.0
+

diff --git a/media-sound/xmms2/xmms2-0.8_p20161122-r1.ebuild b/media-sound/xmms2/xmms2-0.8_p20161122-r1.ebuild
index 8e1a03998bf..f65e222e0da 100644
--- a/media-sound/xmms2/xmms2-0.8_p20161122-r1.ebuild
+++ b/media-sound/xmms2/xmms2-0.8_p20161122-r1.ebuild
@@ -135,6 +135,9 @@ src_prepare() {
 	# fix hash to be the same on LE/BE platforms
 	eapply "${FILESDIR}/${P}"-be-hash.patch
 
+	# handle mac-3 -> -4 API change
+	eapply "${FILESDIR}/${P}"-mac-4.patch
+
 	eapply_user
 }
 


             reply	other threads:[~2017-11-04 18:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-04 18:14 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-11-24 11:01 [gentoo-commits] repo/gentoo:master commit in: media-sound/xmms2/, media-sound/xmms2/files/ Ionen Wolkens
2020-04-14  8:41 James Le Cuirot
2020-01-28 19:58 Sergei Trofimovich
2018-07-01 21:27 Sergei Trofimovich
2016-04-02 12:04 Sergei Trofimovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1509819239.c2395af07199c94377833699367243a29f9c83c6.slyfox@gentoo \
    --to=slyfox@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox