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-sound/mpg123/
Date: Tue, 05 Nov 2019 14:37:53
Message-Id: 1572964661.d60a32c291f8e502fb5edc0fe7eacee7d3694263.polynomial-c@gentoo
1 commit: d60a32c291f8e502fb5edc0fe7eacee7d3694263
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 5 13:35:42 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 5 14:37:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d60a32c2
7
8 media-sound/mpg123: Bump to version 1.25.13
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 media-sound/mpg123/Manifest | 1 +
14 media-sound/mpg123/mpg123-1.25.13.ebuild | 108 +++++++++++++++++++++++++++++++
15 2 files changed, 109 insertions(+)
16
17 diff --git a/media-sound/mpg123/Manifest b/media-sound/mpg123/Manifest
18 index 548424894c2..1d2f095547f 100644
19 --- a/media-sound/mpg123/Manifest
20 +++ b/media-sound/mpg123/Manifest
21 @@ -1,3 +1,4 @@
22 DIST mpg123-1.25.10.tar.bz2 921219 BLAKE2B 04bfbe8915e3943ed42cc2d3597b0bd9c4686f77ee699f5845e7d1e905022206724cf23d6b0420a36e64b232f840dd9367f46f3c00dc2fe6256f44e8b83fa5b2 SHA512 a33666ae4aca7e7c1a93a6414d8c525ec19044c54f712d578180147d88e63033f7af2370b9ad22960cc3a0b454f15967b7a831cccc97e034c8855f70cdf1ab09
23 DIST mpg123-1.25.11.tar.bz2 909478 BLAKE2B e821826c91acd3c0b4b9e6b83df6c5625f86611ecfdedd2dcc12b0ce8b3389199aa4cf7eea48b597e5b7f740bbe2c7612d27e75897e34bed2a2407e98b2b7a43 SHA512 986338d0f4829ec9e40990cb384746c7abfa80d3b3d5656b6dda73d03e2441c1f28ffbe7f3f82b0008a1c4ebcfa07aeffb493e95f13f7d04cbc818a09f1008ed
24 DIST mpg123-1.25.12.tar.bz2 910149 BLAKE2B 4e1b6329fafb4d1e018c6f5fc0846480ef8cfb6811f92d745f7e88d45fa6a8704ad707d110b12709763ac79fe095603c8ece0bbecb54cc2cde4de819083a2078 SHA512 fa3c719c68dbe45b265fd7677d0932b07f6a14e7ffe365ede965ff1637e655c4b57c86f7e4cd60cace7df5fcc93d48e0d44f082931394b7c6ef19f5d11638eff
25 +DIST mpg123-1.25.13.tar.bz2 910176 BLAKE2B c7881fdfda1d2b5acf27c2bd8b2a25329708b481a500a29b4a6ca89d2fc849c05fa25d35b85782b0d430437853013dba23c3b1519f9e299106317c31786302ba SHA512 2308a899f47eb0d17a603cb8a19ea07b1f338d85d9c2f798fb55732d77c603802e18b6ca0215cc59ccdd70fe89816c09fd16a6a91b1d1cd3834bd7877239cb39
26
27 diff --git a/media-sound/mpg123/mpg123-1.25.13.ebuild b/media-sound/mpg123/mpg123-1.25.13.ebuild
28 new file mode 100644
29 index 00000000000..2a6b18dd31c
30 --- /dev/null
31 +++ b/media-sound/mpg123/mpg123-1.25.13.ebuild
32 @@ -0,0 +1,108 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic toolchain-funcs libtool multilib-minimal
39 +
40 +DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
41 +HOMEPAGE="https://www.mpg123.org/"
42 +SRC_URI="https://www.mpg123.org/download/${P}.tar.bz2"
43 +
44 +LICENSE="GPL-2 LGPL-2.1"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
47 +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"
48 +
49 +# No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs.
50 +RDEPEND="
51 + app-eselect/eselect-mpg123
52 + dev-libs/libltdl:0
53 + alsa? ( media-libs/alsa-lib )
54 + jack? ( virtual/jack )
55 + nas? ( media-libs/nas )
56 + portaudio? ( media-libs/portaudio )
57 + pulseaudio? ( media-sound/pulseaudio )
58 + sdl? ( media-libs/libsdl )"
59 +DEPEND="${RDEPEND}"
60 +BDEPEND="
61 + sys-devel/libtool
62 + virtual/pkgconfig
63 +"
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 + local flag
85 + for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
86 + if use ${flag}; then
87 + _audio+=" ${flag/pulseaudio/pulse}"
88 + _output=${flag/pulseaudio/pulse}
89 + fi
90 + done
91 + fi
92 +
93 + use altivec && _cpu=altivec
94 +
95 + if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
96 + use cpu_flags_x86_sse && _cpu=x86-64
97 + elif use x86 && gcc-specs-pie ; then
98 + # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504
99 + _cpu=generic_fpu
100 + elif use x86-macos ; then
101 + # ASM doesn't work quite as expected with the Darwin linker
102 + _cpu=generic_fpu
103 + else
104 + use cpu_flags_x86_mmx && _cpu=mmx
105 + use cpu_flags_x86_3dnow && _cpu=3dnow
106 + use cpu_flags_x86_sse && _cpu=x86
107 + use cpu_flags_x86_3dnowext && _cpu=x86
108 + fi
109 +
110 + local myconf=(
111 + --with-optimization=0
112 + --with-audio="${_audio}"
113 + --with-default-audio=${_output}
114 + --with-cpu=${_cpu}
115 + --enable-network
116 + $(use_enable ipv6)
117 + --enable-int-quality=$(usex int-quality)
118 + )
119 + multilib_is_native_abi || myconf+=( --disable-modules )
120 +
121 + ECONF_SOURCE="${S}" econf "${myconf[@]}"
122 +
123 + if ! $(multilib_is_native_abi) ; then
124 + sed -i -e 's:src doc:src/libmpg123:' Makefile || die
125 + fi
126 +}
127 +
128 +multilib_src_install_all() {
129 + einstalldocs
130 + mv "${ED}"/usr/bin/mpg123{,-mpg123}
131 + find "${ED}" -type f -name '*.la' -delete || die
132 +}
133 +
134 +pkg_postinst() {
135 + eselect mpg123 update ifunset
136 +}
137 +
138 +pkg_postrm() {
139 + eselect mpg123 update ifunset
140 +}