1 |
commit: 78c098995b8818447e70e06437d01058aff568c6 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 9 19:55:19 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 9 20:57:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c09899 |
7 |
|
8 |
media-libs/libsidplay: EAPI-7 bump, fix arm64/ppc64 build with GCC-6 |
9 |
|
10 |
Patch kindly borrowed from Debian. |
11 |
|
12 |
Reported-by: ernsteiswuerfel <erhard_f <AT> mailbox.org> |
13 |
Bug: https://bugs.gentoo.org/649804 |
14 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
15 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
16 |
|
17 |
.../libsidplay/files/libsidplay-2.1.1-gcc6.patch | 22 ++++++++ |
18 |
media-libs/libsidplay/libsidplay-2.1.1-r5.ebuild | 61 ++++++++++++++++++++++ |
19 |
2 files changed, 83 insertions(+) |
20 |
|
21 |
diff --git a/media-libs/libsidplay/files/libsidplay-2.1.1-gcc6.patch b/media-libs/libsidplay/files/libsidplay-2.1.1-gcc6.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..7cfac32b229 |
24 |
--- /dev/null |
25 |
+++ b/media-libs/libsidplay/files/libsidplay-2.1.1-gcc6.patch |
26 |
@@ -0,0 +1,22 @@ |
27 |
+Description: explicit cast to int8_t |
28 |
+ Fix FTBFS with GCC 6 due to narrowing conversions from 'char' to 'int8_t'. |
29 |
+Author: Laszlo Boszormenyi (GCS) <gcs@××××××.org> |
30 |
+Forwarded: no |
31 |
+Bug-Debian: https://bugs.debian.org/837378 |
32 |
+Last-Update: 2016-09-19 |
33 |
+ |
34 |
+--- |
35 |
+ |
36 |
+--- sidplay-libs-2.1.1.orig/libsidplay/src/xsid/xsid.cpp |
37 |
++++ sidplay-libs-2.1.1/libsidplay/src/xsid/xsid.cpp |
38 |
+@@ -96,8 +96,8 @@ const int8_t XSID::sampleConvertTable[16 |
39 |
+ */ |
40 |
+ const int8_t XSID::sampleConvertTable[16] = |
41 |
+ { |
42 |
+- '\x80', '\x94', '\xa9', '\xbc', '\xce', '\xe1', '\xf2', '\x03', |
43 |
+- '\x1b', '\x2a', '\x3b', '\x49', '\x58', '\x66', '\x73', '\x7f' |
44 |
++ (int8_t)'\x80', (int8_t)'\x94', (int8_t)'\xa9', (int8_t)'\xbc', (int8_t)'\xce', (int8_t)'\xe1', (int8_t)'\xf2', (int8_t)'\x03', |
45 |
++ (int8_t)'\x1b', (int8_t)'\x2a', (int8_t)'\x3b', (int8_t)'\x49', (int8_t)'\x58', (int8_t)'\x66', (int8_t)'\x73', (int8_t)'\x7f' |
46 |
+ }; |
47 |
+ |
48 |
+ const char *XSID::credit = |
49 |
|
50 |
diff --git a/media-libs/libsidplay/libsidplay-2.1.1-r5.ebuild b/media-libs/libsidplay/libsidplay-2.1.1-r5.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..cb385dd5622 |
53 |
--- /dev/null |
54 |
+++ b/media-libs/libsidplay/libsidplay-2.1.1-r5.ebuild |
55 |
@@ -0,0 +1,61 @@ |
56 |
+# Copyright 1999-2019 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+inherit libtool multilib-minimal |
62 |
+ |
63 |
+MY_P=sidplay-libs-${PV} |
64 |
+ |
65 |
+DESCRIPTION="C64 SID player library" |
66 |
+HOMEPAGE="http://sidplay2.sourceforge.net/" |
67 |
+SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz" |
68 |
+ |
69 |
+LICENSE="GPL-2" |
70 |
+SLOT="2" |
71 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" |
72 |
+IUSE="static-libs" |
73 |
+ |
74 |
+MULTILIB_WRAPPED_HEADERS=( |
75 |
+ /usr/include/sidplay/sidconfig.h |
76 |
+) |
77 |
+ |
78 |
+PATCHES=( |
79 |
+ "${FILESDIR}"/${P}-gcc41.patch |
80 |
+ "${FILESDIR}"/${P}-fbsd.patch |
81 |
+ "${FILESDIR}"/${P}-gcc43.patch |
82 |
+ "${FILESDIR}"/${P}-no_libtool_reference.patch |
83 |
+ "${FILESDIR}"/${P}-gcc6.patch |
84 |
+) |
85 |
+ |
86 |
+S="${WORKDIR}/${MY_P}" |
87 |
+ |
88 |
+src_prepare() { |
89 |
+ default |
90 |
+ elibtoolize |
91 |
+ multilib_copy_sources |
92 |
+} |
93 |
+ |
94 |
+multilib_src_configure() { |
95 |
+ local myeconfargs=( |
96 |
+ --enable-shared |
97 |
+ --with-pic |
98 |
+ $(use_enable static-libs static) |
99 |
+ ) |
100 |
+ econf "${myeconfargs[@]}" |
101 |
+} |
102 |
+ |
103 |
+multilib_src_install_all() { |
104 |
+ docinto libsidplay |
105 |
+ dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO} |
106 |
+ |
107 |
+ docinto libsidutils |
108 |
+ dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO} |
109 |
+ |
110 |
+ docinto resid |
111 |
+ dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO} |
112 |
+ |
113 |
+ doenvd "${FILESDIR}"/65resid |
114 |
+ |
115 |
+ find "${D}" -name '*.la' -delete || die |
116 |
+} |