1 |
commit: 7081b9df129d289cf210d83a0e1adc7fb4bbf1aa |
2 |
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 30 08:17:23 2016 +0000 |
4 |
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 08:29:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7081b9df |
7 |
|
8 |
media-sound/mpg123: bump to 1.23.6 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
media-sound/mpg123/Manifest | 1 + |
13 |
media-sound/mpg123/mpg123-1.23.6.ebuild | 108 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 109 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/mpg123/Manifest b/media-sound/mpg123/Manifest |
17 |
index 292b9c2..b719586 100644 |
18 |
--- a/media-sound/mpg123/Manifest |
19 |
+++ b/media-sound/mpg123/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST mpg123-1.18.1.tar.bz2 853423 SHA256 bc6d384f7e038f2458cb05a4d175325e5cb25e0 |
21 |
DIST mpg123-1.22.4.tar.bz2 870889 SHA256 5069e02e50138600f10cc5f7674e44e9bf6f1930af81d0e1d2f869b3c0ee40d2 SHA512 d8552b3522fa58647cee7c43227737993851452a15dc6d3ae6948c6c62d4a8f6064e2b284f170413aa3f805a3f3e1a6f1faac7d19daddd25c6790863e4925212 WHIRLPOOL 079ac4dacbee6bbfb915a84c1f2c5738f1edff69b75a7d1c1e6bc9b323c2e1d574985c91339c5ecab8cc0de93d72fc95c8c278676a92511da0c23d210d64a0dd |
22 |
DIST mpg123-1.23.3.tar.bz2 890370 SHA256 5c431da7e7446fae586c9207772dc0038ce2bfe75f0274a7933d1b4a7d84e6c6 SHA512 a5ebfb36223a3966386bc8e5769b8543861872d20f9de037d07857e857000f20e198e0b1db04bdc56b18b19d5b4027d8261a104af0216d6ea45274b21a18dda4 WHIRLPOOL 3d2715f45d1821bdd47b7e62dc496d85f671e66da2965f0f87cf4b885096fff4740b0b3183642b54c1ef300a9d8feac666e1acf673ef54321a25b6ab250be33e |
23 |
DIST mpg123-1.23.4.tar.bz2 892706 SHA256 3495e678dec9a60f29cbcd4fc698abc4c811ec60d1276e744f7a10ac35023b48 SHA512 12660c8f78b53d6310195cea6e24b73323aed66354665e9d4c9f1b2b2c71c5154fbbe239e3cf42a2de22fa48ba9e898e725ae46ddcb2ffc48d7fdeee1afb5862 WHIRLPOOL be2500b7237349b4cc81aa9d455c1d9939565fbd063ccc23293693ebe60e4848462085590cd1a8be1e1fd268fcb67aac3bf8d6af785d274174f27a9cf3cd5cd9 |
24 |
+DIST mpg123-1.23.6.tar.bz2 893351 SHA256 4073d9c60a43872f6f5a3a322f5ea21ab7f0869d2ed25e79c3eb8521fa3c32d4 SHA512 2fe11f921227c0866717c9268e7034d28a09086d96e3748188dcf41189238d8e605347f3200aa419031ca2975dc61ab9dfa51879e26f9a0d2f736a9c20089e3c WHIRLPOOL 4992224ecbf5a576e7d20ce4727cc3734ff08a261348ed114ad8225f0dd08314aa0b3b751c36aa7ddddf2f287efee968eb7d4bfbb24fde20fff9c66a7185120a |
25 |
|
26 |
diff --git a/media-sound/mpg123/mpg123-1.23.6.ebuild b/media-sound/mpg123/mpg123-1.23.6.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..253e153 |
29 |
--- /dev/null |
30 |
+++ b/media-sound/mpg123/mpg123-1.23.6.ebuild |
31 |
@@ -0,0 +1,108 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=6 |
37 |
+inherit flag-o-matic toolchain-funcs libtool multilib-minimal |
38 |
+ |
39 |
+DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" |
40 |
+HOMEPAGE="http://www.mpg123.org/" |
41 |
+SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2" |
42 |
+ |
43 |
+LICENSE="GPL-2 LGPL-2.1" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
46 |
+IUSE="cpu_flags_x86_3dnow cpu_flags_x86_3dnowext alsa altivec coreaudio int-quality ipv6 jack cpu_flags_x86_mmx nas oss portaudio pulseaudio sdl cpu_flags_x86_sse" |
47 |
+ |
48 |
+# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs. |
49 |
+RDEPEND="app-eselect/eselect-mpg123 |
50 |
+ || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 ) |
51 |
+ alsa? ( media-libs/alsa-lib ) |
52 |
+ jack? ( media-sound/jack-audio-connection-kit ) |
53 |
+ nas? ( media-libs/nas ) |
54 |
+ portaudio? ( media-libs/portaudio ) |
55 |
+ pulseaudio? ( media-sound/pulseaudio ) |
56 |
+ sdl? ( media-libs/libsdl ) |
57 |
+ abi_x86_32? ( |
58 |
+ !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9 |
59 |
+ !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] |
60 |
+ )" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ sys-devel/libtool |
63 |
+ virtual/pkgconfig" |
64 |
+ |
65 |
+DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README ) |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ # Build fails without -D_GNU_SOURCE like this: |
69 |
+ # error: ‘struct hostent’ has no member named ‘h_addr’ |
70 |
+ append-cflags -D_GNU_SOURCE |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ elibtoolize # for Darwin bundles |
76 |
+} |
77 |
+ |
78 |
+multilib_src_configure() { |
79 |
+ local _audio=dummy |
80 |
+ local _output=dummy |
81 |
+ local _cpu=generic_fpu |
82 |
+ |
83 |
+ if $(multilib_is_native_abi) ; then |
84 |
+ for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do |
85 |
+ if use ${flag}; then |
86 |
+ _audio+=" ${flag/pulseaudio/pulse}" |
87 |
+ _output=${flag/pulseaudio/pulse} |
88 |
+ fi |
89 |
+ done |
90 |
+ fi |
91 |
+ |
92 |
+ use altivec && _cpu=altivec |
93 |
+ |
94 |
+ if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then |
95 |
+ use cpu_flags_x86_sse && _cpu=x86-64 |
96 |
+ elif use x86 && gcc-specs-pie ; then |
97 |
+ # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504 |
98 |
+ _cpu=generic_fpu |
99 |
+ elif use x86-macos ; then |
100 |
+ # ASM doesn't work quite as expected with the Darwin linker |
101 |
+ _cpu=generic_fpu |
102 |
+ else |
103 |
+ use cpu_flags_x86_mmx && _cpu=mmx |
104 |
+ use cpu_flags_x86_3dnow && _cpu=3dnow |
105 |
+ use cpu_flags_x86_sse && _cpu=x86 |
106 |
+ use cpu_flags_x86_3dnowext && _cpu=x86 |
107 |
+ fi |
108 |
+ |
109 |
+ local myconf="" |
110 |
+ multilib_is_native_abi || myconf="${myconf} --disable-modules" |
111 |
+ |
112 |
+ ECONF_SOURCE="${S}" econf \ |
113 |
+ --with-optimization=0 \ |
114 |
+ --with-audio="${_audio}" \ |
115 |
+ --with-default-audio=${_output} \ |
116 |
+ --with-cpu=${_cpu} \ |
117 |
+ --enable-network \ |
118 |
+ $(use_enable ipv6) \ |
119 |
+ --enable-int-quality=$(usex int-quality) \ |
120 |
+ ${myconf} |
121 |
+ |
122 |
+ if ! $(multilib_is_native_abi) ; then |
123 |
+ sed -i -e 's:src doc:src/libmpg123:' Makefile || die |
124 |
+ fi |
125 |
+} |
126 |
+ |
127 |
+multilib_src_install_all() { |
128 |
+ einstalldocs |
129 |
+ mv "${ED}"/usr/bin/mpg123{,-mpg123} |
130 |
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ eselect mpg123 update ifunset |
135 |
+} |
136 |
+ |
137 |
+pkg_postrm() { |
138 |
+ eselect mpg123 update ifunset |
139 |
+} |