Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/sdl2-mixer/
Date: Sat, 01 Sep 2018 20:18:05
Message-Id: 1535833067.fdf3d97cd1151a75315a91caa59d81e353f90339.asturm@gentoo
1 commit: fdf3d97cd1151a75315a91caa59d81e353f90339
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 1 20:08:27 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 1 20:17:47 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdf3d97c
7
8 media-libs/sdl2-mixer: Drop 2.0.2 (r0)
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild | 115 --------------------------
13 1 file changed, 115 deletions(-)
14
15 diff --git a/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild b/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild
16 deleted file mode 100644
17 index 93edebb30a0..00000000000
18 --- a/media-libs/sdl2-mixer/sdl2-mixer-2.0.2.ebuild
19 +++ /dev/null
20 @@ -1,115 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -inherit multilib-minimal
26 -
27 -MY_P="SDL2_mixer-${PV}"
28 -DESCRIPTION="Simple Direct Media Layer Mixer Library"
29 -HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/"
30 -SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz"
31 -
32 -LICENSE="ZLIB"
33 -SLOT="0"
34 -KEYWORDS="~amd64 ~arm ~hppa ~x86"
35 -IUSE="flac fluidsynth mad midi mikmod mod modplug mp3 playtools smpeg static-libs timidity tremor vorbis +wav"
36 -REQUIRED_USE="
37 - midi? ( || ( timidity fluidsynth ) )
38 - timidity? ( midi )
39 - fluidsynth? ( midi )
40 - mp3? ( || ( smpeg mad ) )
41 - smpeg? ( mp3 )
42 - mad? ( mp3 )
43 - mod? ( || ( mikmod modplug ) )
44 - mikmod? ( mod )
45 - modplug? ( mod )
46 - tremor? ( vorbis )
47 - "
48 -
49 -RDEPEND=">=media-libs/libsdl2-2.0.1-r1[${MULTILIB_USEDEP}]
50 - flac? ( >=media-libs/flac-1.2.1-r5[${MULTILIB_USEDEP}] )
51 - midi? (
52 - fluidsynth? ( >=media-sound/fluidsynth-1.1.6-r1[${MULTILIB_USEDEP}] )
53 - timidity? ( media-sound/timidity++ )
54 - )
55 - mp3? (
56 - mad? ( >=media-libs/libmad-0.15.1b-r8[${MULTILIB_USEDEP}] )
57 - smpeg? ( >=media-libs/smpeg2-2.0.0-r1[${MULTILIB_USEDEP}] )
58 - )
59 - mod? (
60 - modplug? ( >=media-libs/libmodplug-0.8.8.4-r1[${MULTILIB_USEDEP}] )
61 - mikmod? ( >=media-libs/libmikmod-3.3.6-r1[${MULTILIB_USEDEP}] )
62 - )
63 - vorbis? (
64 - tremor? ( >=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}] )
65 - !tremor? (
66 - >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}]
67 - >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )
68 - )"
69 -DEPEND="${RDEPEND}"
70 -
71 -S="${WORKDIR}/${MY_P}"
72 -
73 -PATCHES=(
74 - "${FILESDIR}"/${P}-smpeg.patch
75 -)
76 -
77 -multilib_src_configure() {
78 - local myeconfargs=(
79 - $(use_enable static-libs static)
80 - --disable-sdltest
81 - --enable-music-cmd
82 - $(use_enable wav music-wave)
83 - $(use_enable mod music-mod)
84 - $(use_enable modplug music-mod-modplug)
85 - --disable-music-mod-modplug-shared
86 - $(use_enable mikmod music-mod-mikmod)
87 - --disable-music-mod-mikmod-shared
88 - $(use_enable midi music-midi)
89 - $(use_enable timidity music-midi-timidity)
90 - $(use_enable fluidsynth music-midi-fluidsynth)
91 - --disable-music-midi-fluidsynth-shared
92 - $(use_enable vorbis music-ogg)
93 - $(use_enable tremor music-ogg-tremor)
94 - --disable-music-ogg-shared
95 - $(use_enable flac music-flac)
96 - --disable-music-flac-shared
97 - $(use_enable mp3 music-mp3)
98 - $(use_enable smpeg music-mp3-smpeg)
99 - --disable-music-mp3-smpeg-shared
100 - --disable-smpegtest
101 - $(use_enable mad music-mp3-mad-gpl)
102 - LIBMIKMOD_CONFIG=${EPREFIX}/usr/bin/${CHOST}-libmikmod-config
103 - )
104 - ECONF_SOURCE=${S} econf "${myeconfargs[@]}"
105 -}
106 -
107 -multilib_src_install() {
108 - emake DESTDIR="${D}" install
109 - if multilib_is_native_abi && use playtools ; then
110 - emake DESTDIR="${D}" install-bin
111 - fi
112 -}
113 -
114 -multilib_src_install_all() {
115 - dodoc {CHANGES,README}.txt
116 - find "${D}" -name '*.la' -delete || die
117 -}
118 -
119 -pkg_postinst() {
120 - # bug 412035
121 - # https://bugs.gentoo.org/show_bug.cgi?id=412035
122 - if use midi ; then
123 - if use fluidsynth; then
124 - ewarn "FluidSynth support requires you to set the SDL_SOUNDFONTS"
125 - ewarn "environment variable to the location of a SoundFont file"
126 - ewarn "unless the game or application happens to do this for you."
127 -
128 - if use timidity; then
129 - ewarn "Failing to do so will result in Timidity being used instead."
130 - else
131 - ewarn "Failing to do so will result in silence."
132 - fi
133 - fi
134 - fi
135 -}