1 |
commit: 3e5c54adf02f84fff35e746792a7c3e4cce6ce72 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 27 21:10:32 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 28 12:26:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e5c54ad |
7 |
|
8 |
media-libs/sdl-mixer: EAPI-7 bump, https, drop eutils/ltprune |
9 |
|
10 |
Package-Manager: Portage-3.0.16, Repoman-3.0.2 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-libs/sdl-mixer/sdl-mixer-1.2.12-r4.ebuild | 87 +++++++++++++------------ |
14 |
1 file changed, 47 insertions(+), 40 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/sdl-mixer/sdl-mixer-1.2.12-r4.ebuild b/media-libs/sdl-mixer/sdl-mixer-1.2.12-r4.ebuild |
17 |
index d9efb2a003f..7757eec8749 100644 |
18 |
--- a/media-libs/sdl-mixer/sdl-mixer-1.2.12-r4.ebuild |
19 |
+++ b/media-libs/sdl-mixer/sdl-mixer-1.2.12-r4.ebuild |
20 |
@@ -1,18 +1,20 @@ |
21 |
# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
-inherit eutils ltprune multilib-minimal |
26 |
+EAPI=7 |
27 |
|
28 |
MY_P=${P/sdl-/SDL_} |
29 |
+inherit multilib-minimal |
30 |
+ |
31 |
DESCRIPTION="Simple Direct Media Layer Mixer Library" |
32 |
-HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/" |
33 |
-SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz" |
34 |
+HOMEPAGE="https://www.libsdl.org/projects/SDL_mixer/" |
35 |
+SRC_URI="https://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz" |
36 |
|
37 |
LICENSE="ZLIB" |
38 |
SLOT="0" |
39 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris" |
40 |
IUSE="flac fluidsynth mad midi mikmod mod modplug mp3 playtools smpeg static-libs timidity vorbis +wav" |
41 |
+ |
42 |
REQUIRED_USE=" |
43 |
midi? ( || ( timidity fluidsynth ) ) |
44 |
timidity? ( midi ) |
45 |
@@ -23,60 +25,65 @@ REQUIRED_USE=" |
46 |
mod? ( || ( mikmod modplug ) ) |
47 |
mikmod? ( mod ) |
48 |
modplug? ( mod ) |
49 |
- " |
50 |
+" |
51 |
|
52 |
-RDEPEND=">=media-libs/libsdl-1.2.15-r4[${MULTILIB_USEDEP}] |
53 |
+RDEPEND=" |
54 |
+ >=media-libs/libsdl-1.2.15-r4[${MULTILIB_USEDEP}] |
55 |
flac? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}] ) |
56 |
midi? ( |
57 |
fluidsynth? ( >=media-sound/fluidsynth-1.1.6-r1:=[${MULTILIB_USEDEP}] ) |
58 |
timidity? ( media-sound/timidity++ ) |
59 |
) |
60 |
+ mod? ( |
61 |
+ mikmod? ( >=media-libs/libmikmod-3.3.6-r1[${MULTILIB_USEDEP}] ) |
62 |
+ modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
63 |
+ ) |
64 |
mp3? ( |
65 |
mad? ( >=media-libs/libmad-0.15.1b-r8[${MULTILIB_USEDEP}] ) |
66 |
smpeg? ( >=media-libs/smpeg-0.4.4-r10[${MULTILIB_USEDEP}] ) |
67 |
) |
68 |
- mod? ( |
69 |
- modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] ) |
70 |
- mikmod? ( >=media-libs/libmikmod-3.3.6-r1[${MULTILIB_USEDEP}] ) |
71 |
- ) |
72 |
vorbis? ( |
73 |
- >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
74 |
>=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] |
75 |
- )" |
76 |
-DEPEND=${RDEPEND} |
77 |
+ >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] |
78 |
+ ) |
79 |
+" |
80 |
+DEPEND="${RDEPEND}" |
81 |
+ |
82 |
+S="${WORKDIR}/${MY_P}" |
83 |
|
84 |
-S=${WORKDIR}/${MY_P} |
85 |
+PATCHES=( |
86 |
+ "${FILESDIR}"/${P}-wav.patch |
87 |
+ "${FILESDIR}"/${P}-clang.patch |
88 |
+ "${FILESDIR}"/${P}-Fix-compiling-against-libmodplug-0.8.8.5.patch |
89 |
+ "${FILESDIR}"/${P}-mikmod-r58{7,8}.patch # bug 445980 |
90 |
+) |
91 |
|
92 |
src_prepare() { |
93 |
- epatch \ |
94 |
- "${FILESDIR}"/${P}-wav.patch \ |
95 |
- "${FILESDIR}"/${P}-clang.patch \ |
96 |
- "${FILESDIR}"/${P}-Fix-compiling-against-libmodplug-0.8.8.5.patch \ |
97 |
- "${FILESDIR}"/${P}-mikmod-r58{7,8}.patch #445980 |
98 |
- sed -i \ |
99 |
- -e '/link.*play/s/-o/$(LDFLAGS) -o/' \ |
100 |
- Makefile.in || die |
101 |
+ default |
102 |
+ sed -e '/link.*play/s/-o/$(LDFLAGS) -o/' -i Makefile.in || die |
103 |
} |
104 |
|
105 |
multilib_src_configure() { |
106 |
+ local myeconfargs=( |
107 |
+ --disable-music-flac-shared |
108 |
+ --disable-music-fluidsynth-shared |
109 |
+ --disable-music-mod-shared |
110 |
+ --disable-music-mp3-shared |
111 |
+ --disable-music-ogg-shared |
112 |
+ $(use_enable wav music-wave) |
113 |
+ $(use_enable vorbis music-ogg) |
114 |
+ $(use_enable mikmod music-mod) |
115 |
+ $(use_enable modplug music-mod-modplug) |
116 |
+ $(use_enable flac music-flac) |
117 |
+ $(use_enable static-libs static) |
118 |
+ $(use_enable smpeg music-mp3) |
119 |
+ $(use_enable mad music-mp3-mad-gpl) |
120 |
+ $(use_enable timidity music-timidity-midi) |
121 |
+ $(use_enable fluidsynth music-fluidsynth-midi) |
122 |
+ LIBMIKMOD_CONFIG="${EPREFIX}"/usr/bin/${CHOST}-libmikmod-config |
123 |
+ ) |
124 |
ECONF_SOURCE=${S} \ |
125 |
- econf \ |
126 |
- --disable-music-flac-shared \ |
127 |
- --disable-music-fluidsynth-shared \ |
128 |
- --disable-music-mod-shared \ |
129 |
- --disable-music-mp3-shared \ |
130 |
- --disable-music-ogg-shared \ |
131 |
- $(use_enable wav music-wave) \ |
132 |
- $(use_enable vorbis music-ogg) \ |
133 |
- $(use_enable mikmod music-mod) \ |
134 |
- $(use_enable modplug music-mod-modplug) \ |
135 |
- $(use_enable flac music-flac) \ |
136 |
- $(use_enable static-libs static) \ |
137 |
- $(use_enable smpeg music-mp3) \ |
138 |
- $(use_enable mad music-mp3-mad-gpl) \ |
139 |
- $(use_enable timidity music-timidity-midi) \ |
140 |
- $(use_enable fluidsynth music-fluidsynth-midi) \ |
141 |
- LIBMIKMOD_CONFIG=${EPREFIX}/usr/bin/${CHOST}-libmikmod-config |
142 |
+ econf "${myeconfargs[@]}" |
143 |
} |
144 |
|
145 |
multilib_src_install() { |
146 |
@@ -88,7 +95,7 @@ multilib_src_install() { |
147 |
|
148 |
multilib_src_install_all() { |
149 |
dodoc CHANGES README |
150 |
- prune_libtool_files |
151 |
+ find "${ED}" -name '*.la' -delete || die |
152 |
} |
153 |
|
154 |
pkg_postinst() { |