Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/sox/
Date: Wed, 22 Sep 2021 04:12:07
Message-Id: 1632283797.a01c742fa152cbfaa8dc95eea382d9b1ece29385.fordfrog@gentoo
1 commit: a01c742fa152cbfaa8dc95eea382d9b1ece29385
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 22 04:09:57 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 22 04:09:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a01c742f
7
8 media-sound/sox: bump to 14.4.2_p20210509
9
10 updated ./configure options according to the upstream changes,
11 dropped debug use flag
12
13 Bug: https://bugs.gentoo.org/813783
14 Package-Manager: Portage-3.0.23, Repoman-3.0.3
15 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
16
17 media-sound/sox/Manifest | 1 +
18 media-sound/sox/sox-14.4.2_p20210509.ebuild | 108 ++++++++++++++++++++++++++++
19 2 files changed, 109 insertions(+)
20
21 diff --git a/media-sound/sox/Manifest b/media-sound/sox/Manifest
22 index f8cd840cafa..a1b59d86eef 100644
23 --- a/media-sound/sox/Manifest
24 +++ b/media-sound/sox/Manifest
25 @@ -1 +1,2 @@
26 DIST sox-14.4.2_p20200803.zip 1089835 BLAKE2B fa53d8c9f14620675bf534090bf6c69ec256bb977aa1b3c01b2d95ba8e685eb4f9d479872f303b2954aa1b063c095bf3b90e5b746fd8d7d66e35476e5218fa6b SHA512 8c485a53b9ecce9ecf759d7bbf8d95e568a89505bec7d1258afded4c7ad0f28c624b637a188ab87b64dee720db59b8de20c347805910f0401f00550832e16392
27 +DIST sox-14.4.2_p20210509.zip 942551 BLAKE2B 2ddd229faacb9190fe18052b1c02da40d4c3f24fc73dd08b28ac99bef267cb05f8bcbf64e0c397c391b3be2467667783ed94f6c60798af069567e1c237ec9ccd SHA512 4868f9b77141b7e2caf2571ceb68a48bd744732e72f63ed787f8e0b9fe39b77de4e998b32d99c2500e10b017a1fd1a3379f4f9f8b67db6093b85d02cb3447934
28
29 diff --git a/media-sound/sox/sox-14.4.2_p20210509.ebuild b/media-sound/sox/sox-14.4.2_p20210509.ebuild
30 new file mode 100644
31 index 00000000000..78d457847df
32 --- /dev/null
33 +++ b/media-sound/sox/sox-14.4.2_p20210509.ebuild
34 @@ -0,0 +1,108 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +inherit autotools
41 +
42 +# We take a snapshot because of the huge number of security
43 +# and other fixes since the release of 14.4.2.
44 +# Recommend mirroring the snapshot; unclear if they are stable URIs.
45 +COMMIT="42b3557e13e0fe01a83465b672d89faddbe65f49"
46 +MY_P="sox-code-${COMMIT}"
47 +
48 +DESCRIPTION="The swiss army knife of sound processing programs"
49 +HOMEPAGE="http://sox.sourceforge.net"
50 +# Source: https://sourceforge.net/code-snapshots/git/s/so/sox/code.git/${MY_P}.zip
51 +SRC_URI="https://dev.gentoo.org/~fordfrog/distfiles/${MY_P}.zip -> ${P}.zip"
52 +S="${WORKDIR}/${MY_P}"
53 +
54 +LICENSE="LGPL-2.1"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-solaris"
57 +IUSE="alsa amr ao encode flac id3tag ladspa mad ogg openmp oss opus png pulseaudio sndfile sndio static-libs twolame wavpack"
58 +
59 +BDEPEND="
60 + app-arch/unzip
61 + virtual/pkgconfig
62 +"
63 +RDEPEND="
64 + dev-libs/libltdl:0=
65 + >=media-sound/gsm-1.0.12-r1
66 + sys-apps/file
67 + alsa? ( media-libs/alsa-lib )
68 + amr? ( media-libs/opencore-amr )
69 + ao? ( media-libs/libao:= )
70 + encode? ( >=media-sound/lame-3.98.4 )
71 + flac? ( >=media-libs/flac-1.1.3 )
72 + id3tag? ( media-libs/libid3tag:= )
73 + ladspa? ( media-libs/ladspa-sdk )
74 + mad? ( media-libs/libmad )
75 + ogg? (
76 + media-libs/libogg
77 + media-libs/libvorbis
78 + )
79 + opus? (
80 + media-libs/opus
81 + media-libs/opusfile
82 + )
83 + png? (
84 + media-libs/libpng:0=
85 + sys-libs/zlib
86 + )
87 + pulseaudio? ( media-sound/pulseaudio )
88 + sndfile? ( >=media-libs/libsndfile-1.0.11 )
89 + sndio? ( media-sound/sndio:= )
90 + twolame? ( media-sound/twolame )
91 + wavpack? ( media-sound/wavpack )"
92 +DEPEND="${RDEPEND}"
93 +
94 +DOCS=( AUTHORS ChangeLog NEWS )
95 +
96 +src_prepare() {
97 + default
98 +
99 + # bug #386027
100 + sed -i -e 's:CFLAGS="-g":CFLAGS="$CFLAGS -g":' configure.ac || die
101 +
102 + # bug #712630
103 + if use elibc_musl ; then
104 + ewarn "Applying musl workaround for bug #712630."
105 + ewarn "File-type detection with pipes may be missing."
106 + sed -i '/error FIX NEEDED HERE/d' src/formats.c || die
107 + fi
108 +
109 + eautoreconf
110 +}
111 +
112 +src_configure() {
113 + econf \
114 + $(use_enable alsa) \
115 + $(use_enable amr amrnb) \
116 + $(use_enable amr amrwb) \
117 + $(use_enable ao) \
118 + $(use_with encode lame) \
119 + $(use_enable flac) \
120 + $(use_with id3tag) \
121 + $(use_with ladspa) \
122 + $(use_with mad) \
123 + $(use_enable openmp) \
124 + $(use_enable ogg oggvorbis) \
125 + $(use_enable oss) \
126 + $(use_enable opus) \
127 + $(use_with png) \
128 + $(use_enable pulseaudio) \
129 + $(use_enable sndfile) \
130 + $(use_enable sndio) \
131 + $(use_enable static-libs static) \
132 + $(use_with twolame) \
133 + $(use_enable wavpack) \
134 + --with-distro="Gentoo"
135 +}
136 +
137 +src_install() {
138 + default
139 + # libltdl is used for loading plugins, keeping libtool files with empty
140 + # dependency_libs what otherwise would be -exec rm -f {} +
141 + find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
142 +}