1 |
commit: 5584931883b2ea6e78f61557600cd468950d5369 |
2 |
Author: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 7 15:43:35 2018 +0000 |
4 |
Commit: Daniel Pielmeier <billie <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 7 15:43:35 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55849318 |
7 |
|
8 |
media-sound/mac: Revision bump to 4.11.4.5.7-r1. Switch to EAPI 7. |
9 |
|
10 |
Signed-off-by: Daniel Pielmeier <billie <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
12 |
|
13 |
media-sound/mac/files/mac-4.11.4.5.7-null.patch | 12 +++++ |
14 |
media-sound/mac/mac-4.11.4.5.7-r1.ebuild | 61 +++++++++++++++++++++++++ |
15 |
2 files changed, 73 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/mac/files/mac-4.11.4.5.7-null.patch b/media-sound/mac/files/mac-4.11.4.5.7-null.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..fa1f3598ea8 |
20 |
--- /dev/null |
21 |
+++ b/media-sound/mac/files/mac-4.11.4.5.7-null.patch |
22 |
@@ -0,0 +1,12 @@ |
23 |
+diff -Naur monkeys-audio-4.11-u4-b5-s7_old/src/Console/Console.cpp monkeys-audio-4.11-u4-b5-s7/src/Console/Console.cpp |
24 |
+--- monkeys-audio-4.11-u4-b5-s7_old/src/Console/Console.cpp 2017-03-04 17:52:24.154352673 +0100 |
25 |
++++ monkeys-audio-4.11-u4-b5-s7/src/Console/Console.cpp 2017-03-04 17:52:31.400352385 +0100 |
26 |
+@@ -51,7 +51,7 @@ |
27 |
+ |
28 |
+ _ErrorDesc ErrorList[][2] = { |
29 |
+ ERROR_EXPLANATION |
30 |
+- NULL |
31 |
++ 0 |
32 |
+ }; |
33 |
+ #endif |
34 |
+ |
35 |
|
36 |
diff --git a/media-sound/mac/mac-4.11.4.5.7-r1.ebuild b/media-sound/mac/mac-4.11.4.5.7-r1.ebuild |
37 |
new file mode 100644 |
38 |
index 00000000000..aa65b9a5e9e |
39 |
--- /dev/null |
40 |
+++ b/media-sound/mac/mac-4.11.4.5.7-r1.ebuild |
41 |
@@ -0,0 +1,61 @@ |
42 |
+# Copyright 1999-2018 Gentoo Authors |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+ |
45 |
+EAPI=7 |
46 |
+ |
47 |
+inherit flag-o-matic |
48 |
+ |
49 |
+MY_PN=monkeys-audio |
50 |
+MY_PV=$(ver_cut 1-2)-u$(ver_cut 3)-b$(ver_cut 4)-s$(ver_cut 5) |
51 |
+MY_P=${MY_PN}_${MY_PV} |
52 |
+ |
53 |
+DESCRIPTION="Monkey's Audio Codecs" |
54 |
+HOMEPAGE="http://etree.org/shnutils/shntool/ http://www.deb-multimedia.org/dists/testing/main/binary-amd64/package/monkeys-audio.php" |
55 |
+SRC_URI="http://www.deb-multimedia.org/pool/main/m/monkeys-audio/${MY_P}.orig.tar.gz" |
56 |
+ |
57 |
+LICENSE="mac" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" |
60 |
+IUSE="cpu_flags_x86_mmx static-libs" |
61 |
+ |
62 |
+RDEPEND="" |
63 |
+DEPEND=" |
64 |
+ sys-apps/sed |
65 |
+ cpu_flags_x86_mmx? ( dev-lang/yasm ) |
66 |
+" |
67 |
+ |
68 |
+S=${WORKDIR}/${MY_P/_/-} |
69 |
+ |
70 |
+PATCHES=( |
71 |
+ "${FILESDIR}"/${P}-output.patch |
72 |
+ "${FILESDIR}"/${P}-gcc6.patch |
73 |
+ "${FILESDIR}"/${P}-null.patch |
74 |
+) |
75 |
+ |
76 |
+DOCS=( AUTHORS ChangeLog NEWS TODO README src/History.txt src/Credits.txt ChangeLog.shntool ) |
77 |
+ |
78 |
+RESTRICT="mirror" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ |
83 |
+ sed -i -e 's:-O3::' configure || die |
84 |
+} |
85 |
+ |
86 |
+src_configure() { |
87 |
+ append-cppflags -DSHNTOOL |
88 |
+ use cpu_flags_x86_mmx && append-ldflags -Wl,-z,noexecstack |
89 |
+ |
90 |
+ econf \ |
91 |
+ $(use_enable static-libs static) \ |
92 |
+ $(use_enable cpu_flags_x86_mmx assembly) |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ default |
97 |
+ |
98 |
+ insinto /usr/include/${PN} |
99 |
+ doins src/MACLib/{BitArray,UnBitArrayBase,Prepare}.h #409435 |
100 |
+ |
101 |
+ find "${D}" -name '*.la' -delete || die |
102 |
+} |