commit: 87007525fa588ab13e780311b5d52c8f18d397b7 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri Aug 29 13:50:54 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Aug 29 14:19:59 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87007525
media-sound/snd: add 25.6 Closes: https://bugs.gentoo.org/961801 Closes: https://bugs.gentoo.org/947499 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> media-sound/snd/Manifest | 1 + media-sound/snd/snd-25.6.ebuild | 106 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/media-sound/snd/Manifest b/media-sound/snd/Manifest index 5f1766d25c89..18db46aa9095 100644 --- a/media-sound/snd/Manifest +++ b/media-sound/snd/Manifest @@ -1 +1,2 @@ DIST snd-22.9.tar.gz 14704873 BLAKE2B 788a0d77571b13cac0bb191bd88e0d18d5a6808fbee170c8cb3237a2bdc8b20a72cd3a4360cf0632c1746bec317b367ebf6344ac05d9a5485d54a77268ab96cf SHA512 641f49438dd71285249d2da6f36f30ca52ec8f8fc8189af7815abff054db7651d8da54798509c77d93d542d09bb11e3ad6662aec51e9ba1c7a6a1672bb0eba48 +DIST snd-25.6.tar.gz 14892626 BLAKE2B 2c38451d3e61876ee465e2461344d285a667fcb401a11a698e2816178702445dd025e857f07a3ba7430e048e1647eb5627e3a559ac4da927e306aa4f07c6b9d5 SHA512 6bbc74b95366f76faf7b4d3ca0c9f472c2e6ecd54020da6d95f27a998796ae33d4e8df5018cebdb9b642c4745f44773159d668c7d854f18acce7b82cd5065cdc diff --git a/media-sound/snd/snd-25.6.ebuild b/media-sound/snd/snd-25.6.ebuild new file mode 100644 index 000000000000..4d014723f6a5 --- /dev/null +++ b/media-sound/snd/snd-25.6.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Sound editor" +HOMEPAGE="https://ccrma.stanford.edu/software/snd/" +SRC_URI="https://ccrma.stanford.edu/software/${PN}/${P}.tar.gz" + +LICENSE="Snd 0BSD BSD-2 HPND GPL-2+ LGPL-2.1+ LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="alsa doc fftw gmp gsl gui jack ladspa notcurses opengl oss portaudio pulseaudio readline ruby +s7" + +RDEPEND=" + alsa? ( media-libs/alsa-lib ) + fftw? ( sci-libs/fftw:3.0= ) + gmp? ( + dev-libs/gmp:= + dev-libs/mpc + dev-libs/mpfr:= + ) + gsl? ( sci-libs/gsl:= ) + gui? ( x11-libs/motif:0 ) + jack? ( virtual/jack ) + ladspa? ( media-libs/ladspa-sdk ) + notcurses? ( dev-cpp/notcurses ) + opengl? ( virtual/opengl ) + portaudio? ( media-libs/portaudio ) + pulseaudio? ( media-libs/libpulse ) + readline? ( sys-libs/readline:= ) + ruby? ( dev-lang/ruby:* ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +REQUIRED_USE=" + ?? ( portaudio pulseaudio ) + ?? ( ruby s7 )" + +PATCHES=( + "${FILESDIR}"/${PN}-22.8-undefined-oss_sample_types.patch +) + +src_prepare() { + default + + sed -i -e "s:-O2 ::" configure.ac || die + eautoreconf +} + +src_configure() { + # Workaround executable sections QA warning (bug #348754) + append-ldflags -Wl,-z,noexecstack + + local myeconfargs=( + $(use_with alsa) + $(use_with fftw) + $(use_with gmp) + $(use_with gsl) + $(use_with gui) + $(use_with jack) + $(use_with ladspa) + $(use_with notcurses) + $(use_with oss) + $(use_with portaudio) + $(use_with pulseaudio) + $(use_with ruby) + $(use_with s7) + ) + + if ! use ruby && ! use s7 ; then + myeconfargs+=( --without-extension-language ) + fi + + econf "${myeconfargs[@]}" +} + +src_compile() { + emake snd + + # Do not compile ruby extensions for command line programs since they fail + sed -i -e "s:HAVE_RUBY 1:HAVE_RUBY 0:" mus-config.h || die + + emake sndplay sndinfo +} + +src_install() { + dobin snd sndplay sndinfo + + if use ruby ; then + insinto /usr/share/snd + doins *.rb + fi + + if use s7 ; then + insinto /usr/share/snd + doins *.scm + fi + + use doc && HTML_DOCS=( *.html pix/*.png ) + einstalldocs + dodoc HISTORY.Snd +}
