Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/snd/
Date: Sun, 19 Jan 2020 22:45:52
Message-Id: 1579473931.ad2e33153e4a7a88ceb12481abf1669a24d0531a.asturm@gentoo
1 commit: ad2e33153e4a7a88ceb12481abf1669a24d0531a
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 19 22:43:59 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 22:45:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad2e3315
7
8 media-sound/snd: Drop bogus gtkglext dependency
9
10 Bug: https://bugs.gentoo.org/660328
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 media-sound/snd/snd-17.4-r1.ebuild | 119 +++++++++++++++++++++++++++++++++++++
15 1 file changed, 119 insertions(+)
16
17 diff --git a/media-sound/snd/snd-17.4-r1.ebuild b/media-sound/snd/snd-17.4-r1.ebuild
18 new file mode 100644
19 index 00000000000..294872469b8
20 --- /dev/null
21 +++ b/media-sound/snd/snd-17.4-r1.ebuild
22 @@ -0,0 +1,119 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit autotools flag-o-matic
29 +
30 +DESCRIPTION="Snd is a sound editor"
31 +HOMEPAGE="https://ccrma.stanford.edu/software/snd/"
32 +SRC_URI="ftp://ccrma-ftp.stanford.edu/pub/Lisp/${P}.tar.gz"
33 +
34 +LICENSE="Snd BSD-2 HPND GPL-2+ LGPL-2.1+ LGPL-3+ ruby? ( free-noncomm ) s7? ( free-noncomm )"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
37 +IUSE="alsa doc fftw gmp gsl gtk jack ladspa motif opengl oss portaudio pulseaudio readline ruby +s7"
38 +
39 +RDEPEND="
40 + media-libs/audiofile
41 + alsa? ( media-libs/alsa-lib )
42 + fftw? ( sci-libs/fftw:3.0= )
43 + gmp? (
44 + dev-libs/gmp:0=
45 + dev-libs/mpc
46 + dev-libs/mpfr:0=
47 + )
48 + gsl? ( sci-libs/gsl:= )
49 + gtk? (
50 + x11-libs/cairo
51 + x11-libs/gtk+:3
52 + x11-libs/pango
53 + )
54 + jack? ( virtual/jack )
55 + ladspa? ( media-libs/ladspa-sdk )
56 + motif? ( >=x11-libs/motif-2.3:0 )
57 + opengl? ( virtual/opengl )
58 + portaudio? ( media-libs/portaudio )
59 + pulseaudio? ( media-sound/pulseaudio )
60 + readline? ( sys-libs/readline:* )
61 + ruby? ( dev-lang/ruby:* )"
62 +DEPEND="${RDEPEND}"
63 +
64 +REQUIRED_USE="
65 + ?? ( portaudio pulseaudio )
66 + ?? ( ruby s7 )"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-17.4-portaudio.patch
70 + "${FILESDIR}"/${PN}-17.4-undefined-oss_sample_types.patch
71 +)
72 +
73 +pkg_setup() {
74 + if ! use gtk && ! use motif ; then
75 + ewarn "Warning: no graphic toolkit selected (gtk or motif)."
76 + ewarn "Upstream suggests to enable one of the toolkits (or both)"
77 + ewarn "or only the command line utilities will be helpful."
78 + fi
79 +}
80 +
81 +src_prepare() {
82 + default
83 + sed -i -e "s:-O2 ::" configure.ac || die
84 + eautoreconf
85 +}
86 +
87 +src_configure() {
88 + # Workaround executable sections QA warning (bug #348754)
89 + append-ldflags -Wl,-z,noexecstack
90 +
91 + local myconf
92 + if ! use ruby && ! use s7 ; then
93 + myconf+=" --without-extension-language"
94 + fi
95 +
96 + econf \
97 + $(use_with alsa) \
98 + $(use_with fftw) \
99 + $(use_with gmp) \
100 + $(use_with gsl) \
101 + $(use_with gtk) \
102 + $(use_with jack) \
103 + $(use_with ladspa) \
104 + $(use_with motif) \
105 + $(use_with oss) \
106 + $(use_with portaudio) \
107 + $(use_with pulseaudio) \
108 + $(use_with ruby) \
109 + $(use_with s7) \
110 + ${myconf}
111 +}
112 +
113 +src_compile() {
114 + emake snd
115 +
116 + # Do not compile ruby extensions for command line programs since they fail
117 + sed -i -e "s:HAVE_RUBY 1:HAVE_RUBY 0:" mus-config.h || die
118 +
119 + local i
120 + for i in sndplay sndinfo; do
121 + emake ${i}
122 + done
123 +}
124 +
125 +src_install () {
126 + dobin snd sndplay sndinfo
127 +
128 + if use ruby ; then
129 + insinto /usr/share/snd
130 + doins *.rb
131 + fi
132 +
133 + if use s7 ; then
134 + insinto /usr/share/snd
135 + doins *.scm
136 + fi
137 +
138 + use doc && HTML_DOCS=( *.html pix/*.png )
139 + einstalldocs
140 + dodoc HISTORY.Snd
141 +}