public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/snd/
Date: Sun, 19 Jan 2020 22:45:48 +0000 (UTC)	[thread overview]
Message-ID: <1579473931.ad2e33153e4a7a88ceb12481abf1669a24d0531a.asturm@gentoo> (raw)

commit:     ad2e33153e4a7a88ceb12481abf1669a24d0531a
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 19 22:43:59 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 22:45:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad2e3315

media-sound/snd: Drop bogus gtkglext dependency

Bug: https://bugs.gentoo.org/660328
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-sound/snd/snd-17.4-r1.ebuild | 119 +++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)

diff --git a/media-sound/snd/snd-17.4-r1.ebuild b/media-sound/snd/snd-17.4-r1.ebuild
new file mode 100644
index 00000000000..294872469b8
--- /dev/null
+++ b/media-sound/snd/snd-17.4-r1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools flag-o-matic
+
+DESCRIPTION="Snd is a sound editor"
+HOMEPAGE="https://ccrma.stanford.edu/software/snd/"
+SRC_URI="ftp://ccrma-ftp.stanford.edu/pub/Lisp/${P}.tar.gz"
+
+LICENSE="Snd BSD-2 HPND GPL-2+ LGPL-2.1+ LGPL-3+ ruby? ( free-noncomm ) s7? ( free-noncomm )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="alsa doc fftw gmp gsl gtk jack ladspa motif opengl oss portaudio pulseaudio readline ruby +s7"
+
+RDEPEND="
+	media-libs/audiofile
+	alsa? ( media-libs/alsa-lib )
+	fftw? ( sci-libs/fftw:3.0= )
+	gmp? (
+		dev-libs/gmp:0=
+		dev-libs/mpc
+		dev-libs/mpfr:0=
+	)
+	gsl? ( sci-libs/gsl:= )
+	gtk? (
+		x11-libs/cairo
+		x11-libs/gtk+:3
+		x11-libs/pango
+	)
+	jack? ( virtual/jack )
+	ladspa? ( media-libs/ladspa-sdk )
+	motif? ( >=x11-libs/motif-2.3:0 )
+	opengl? ( virtual/opengl )
+	portaudio? ( media-libs/portaudio )
+	pulseaudio? ( media-sound/pulseaudio )
+	readline? ( sys-libs/readline:* )
+	ruby? ( dev-lang/ruby:* )"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="
+	?? ( portaudio pulseaudio )
+	?? ( ruby s7 )"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-17.4-portaudio.patch
+	"${FILESDIR}"/${PN}-17.4-undefined-oss_sample_types.patch
+)
+
+pkg_setup() {
+	if ! use gtk && ! use motif ; then
+		ewarn "Warning: no graphic toolkit selected (gtk or motif)."
+		ewarn "Upstream suggests to enable one of the toolkits (or both)"
+		ewarn "or only the command line utilities will be helpful."
+	fi
+}
+
+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 myconf
+	if ! use ruby && ! use s7 ; then
+		myconf+=" --without-extension-language"
+	fi
+
+	econf \
+		$(use_with alsa) \
+		$(use_with fftw) \
+		$(use_with gmp) \
+		$(use_with gsl) \
+		$(use_with gtk) \
+		$(use_with jack) \
+		$(use_with ladspa) \
+		$(use_with motif) \
+		$(use_with oss) \
+		$(use_with portaudio) \
+		$(use_with pulseaudio) \
+		$(use_with ruby) \
+		$(use_with s7) \
+		${myconf}
+}
+
+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
+
+	local i
+	for i in sndplay sndinfo; do
+	   emake ${i}
+	done
+}
+
+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
+}


             reply	other threads:[~2020-01-19 22:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19 22:45 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-29 16:23 [gentoo-commits] repo/gentoo:master commit in: media-sound/snd/ Andreas Sturmlechner
2025-08-29 14:20 Andreas Sturmlechner
2022-11-23  9:08 Miroslav Šulc
2021-06-18 21:07 David Seifert
2020-01-19 22:45 Andreas Sturmlechner
2018-05-13 19:20 Aaron Bauman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1579473931.ad2e33153e4a7a88ceb12481abf1669a24d0531a.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox