diff options
author | 2025-05-30 15:14:50 +0100 | |
---|---|---|
committer | 2025-05-30 15:38:09 +0100 | |
commit | 15e14521bfc031251d680588fdd98bbb3c6a559b (patch) | |
tree | 76e252117615b0cdfc6a9d411ce98e490392e04e | |
parent | media-sound/gtick: fix build w/ C23, unrestrict tests (diff) | |
download | gentoo-15e14521bfc031251d680588fdd98bbb3c6a559b.tar.gz gentoo-15e14521bfc031251d680588fdd98bbb3c6a559b.tar.bz2 gentoo-15e14521bfc031251d680588fdd98bbb3c6a559b.zip |
media-sound/twolame: EAPI 8, unrestrict tests
The test restriction was added in 7fd5bddf325bf91fd53317d23d6322d8444fdca3
but I don't see why. The tests pass for me now at least.
Signed-off-by: Sam James <[email protected]>
-rw-r--r-- | media-sound/twolame/twolame-0.4.0-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/media-sound/twolame/twolame-0.4.0-r1.ebuild b/media-sound/twolame/twolame-0.4.0-r1.ebuild new file mode 100644 index 000000000000..868297d0ee43 --- /dev/null +++ b/media-sound/twolame/twolame-0.4.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal + +DESCRIPTION="An optimised MPEG Audio Layer 2 (MP2) encoder" +HOMEPAGE="https://www.twolame.org" +SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="+sndfile static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND="sndfile? ( >=media-libs/libsndfile-1.0.25[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( dev-lang/perl ) +" + +src_prepare() { + sed -i -e '/CFLAGS/s:-O3::' configure || die + # remove -Werror, bug 493940 + sed -i -e '/WARNING_CFLAGS/s:-Werror::' configure || die + + if [[ ${CHOST} == *solaris* ]]; then + # libsndfile doesn't like -std=c99 on Solaris + sed -i -e '/CFLAGS/s:-std=c99::' configure || die + # configure isn't really bourne shell (comment 0) or dash (comment 6) + # compatible, bug #388885 + export CONFIG_SHELL="${BASH}" + fi + + default +} + +multilib_src_configure() { + local myeconfargs=( + $(use_enable sndfile) + $(use_enable static-libs static) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + default + find "${ED}" -type f -name "*.la" -delete || die +} |