Gentoo Archives: gentoo-commits

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