1 |
commit: 90c03ac835bc34210bca7c5038224ca862c49361 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 25 22:13:07 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 25 22:13:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90c03ac8 |
7 |
|
8 |
media-sound/snd: version bump to 16.3 |
9 |
|
10 |
Gentoo-Bug: 404201, 475150 |
11 |
* EAPI=6 |
12 |
|
13 |
Package-Manager: portage-2.2.27 |
14 |
|
15 |
media-sound/snd/Manifest | 1 + |
16 |
media-sound/snd/files/snd-16.3-portaudio.patch | 49 ++++++++++ |
17 |
media-sound/snd/snd-16.3.ebuild | 121 +++++++++++++++++++++++++ |
18 |
3 files changed, 171 insertions(+) |
19 |
|
20 |
diff --git a/media-sound/snd/Manifest b/media-sound/snd/Manifest |
21 |
index cda7e64..d54026f 100644 |
22 |
--- a/media-sound/snd/Manifest |
23 |
+++ b/media-sound/snd/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST snd-12.8.tar.gz 15546751 SHA256 1ff683615ec6d0c7e2c8359e921117f4fd78695675bb06eb765667edb55a1939 SHA512 99a8600a175a889ad597053e9f52af69124cab8feca693c852cb03d34df5b80bcc50994ea66d070fe61e318eca715fdfe095a458b22da80d95f88a1d695baebd WHIRLPOOL b8903b138ab31f2ee51aeabe66068943c24e15e2cd82e628bc446224ebb0e697365c0070ec99d126379a02c1ef7544a1c6195e0bb3a0c8ecb167751eb3c673ef |
26 |
+DIST snd-16.3.tar.gz 14824756 SHA256 7314fd8c73da9d3afa0ed2c7b5a10cda94eaf1e7fb6ab9f6ac2e085c18f50934 SHA512 b58971e95411839b2f1cafde4cdd66784f41510c67588f3816408290fc826b6c24054a03423ca3a59b11dddd45c058cb592fb97cd90d1333eeec36dd125a7821 WHIRLPOOL ad00d30d80e8dbf9b533824a382864725f14ad8a587803a8df6bedb8fe59cc36ae442e345599ebf08d67b9503d6e79e643c066b33be92d50d832d03677da8792 |
27 |
|
28 |
diff --git a/media-sound/snd/files/snd-16.3-portaudio.patch b/media-sound/snd/files/snd-16.3-portaudio.patch |
29 |
new file mode 100644 |
30 |
index 0000000..3be6843 |
31 |
--- /dev/null |
32 |
+++ b/media-sound/snd/files/snd-16.3-portaudio.patch |
33 |
@@ -0,0 +1,49 @@ |
34 |
+--- snd-16.3/configure.ac |
35 |
++++ snd-16.3/configure.ac |
36 |
+@@ -527,8 +527,9 @@ |
37 |
+ |
38 |
+ if test "$with_portaudio" = yes ; then |
39 |
+ AC_DEFINE(MUS_PORTAUDIO) |
40 |
++ PKG_CHECK_MODULES([PORTAUDIO], [portaudio-2.0]) |
41 |
+ AUDIO_SYSTEM=portaudio |
42 |
+- AUDIO_LIB="-lportaudio" |
43 |
++ AUDIO_LIB="${PORTAUDIO_LIBS}" |
44 |
+ fi |
45 |
+ |
46 |
+ if test "$with_jack" = yes ; then |
47 |
+--- snd-16.3/makefile.in |
48 |
++++ snd-16.3/makefile.in |
49 |
+@@ -11,6 +11,7 @@ |
50 |
+ GL_FLAGS = @GL_FLAGS@ |
51 |
+ GSL_FLAGS = @GSL_CFLAGS@ |
52 |
+ JACK_FLAGS = @JACK_FLAGS@ |
53 |
++PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@ |
54 |
+ |
55 |
+ ORIGINAL_LDFLAGS = @ORIGINAL_LDFLAGS@ |
56 |
+ LDFLAGS = @LDFLAGS@ |
57 |
+@@ -26,6 +27,7 @@ |
58 |
+ FFTW_LIBS = @FFTW_LIBS@ |
59 |
+ JACK_LIBS = @JACK_LIBS@ |
60 |
+ GMP_LIBS = @GMP_LIBS@ |
61 |
++PORTAUDIO_LIBS = @PORTAUDIO_LIBS@ |
62 |
+ |
63 |
+ LDSO_FLAGS = @LDSO_FLAGS@ |
64 |
+ SO_FLAGS = @SO_FLAGS@ |
65 |
+@@ -51,7 +53,7 @@ |
66 |
+ .SUFFIXES: .c .o |
67 |
+ |
68 |
+ .c.o: |
69 |
+- $(CC) -c $(DEFS) $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(CFLAGS) $(XEN_CFLAGS) $(GSL_FLAGS) $(GL_FLAGS) $(JACK_FLAGS) $(FFTW_CFLAGS) $< |
70 |
++ $(CC) -c $(DEFS) $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(CFLAGS) $(XEN_CFLAGS) $(GSL_FLAGS) $(GL_FLAGS) $(JACK_FLAGS) $(FFTW_CFLAGS) $(PORTAUDIO_CFLAGS) $< |
71 |
+ |
72 |
+ SND_SCRIPTS = *.scm *.fs *.rb *.fsm |
73 |
+ SNDLIB_HEADERS = mus-config.h sndlib.h _sndlib.h sndlib-strings.h clm.h vct.h sndlib2xen.h clm2xen.h xen.h clm-strings.h |
74 |
+@@ -82,7 +84,7 @@ |
75 |
+ main_target: @MAKE_TARGET@ |
76 |
+ |
77 |
+ snd: $(SNDLIB_HEADERS) $(SND_HEADERS) $(GX_HEADERS) $(S7_HEADERS) $(S7_O_FILES) $(SNDLIB_O_FILES) $(O_FILES) $(GX_FILES) $(GL_FILES) |
78 |
+- $(CC) $(LDFLAGS) $(CFLAGS) $(S7_O_FILES) $(SNDLIB_O_FILES) $(O_FILES) $(GX_FILES) $(GL_FILES) -o snd $(SNDLIB_LIB) $(XEN_LIBS) $(GTK_LIBS) $(GL_LIBS) $(JACK_LIBS) $(AUDIO_LIB) $(FFTW_LIBS) $(GSL_LIBS) $(GMP_LIBS) $(LIBS) |
79 |
++ $(CC) $(LDFLAGS) $(CFLAGS) $(S7_O_FILES) $(SNDLIB_O_FILES) $(O_FILES) $(GX_FILES) $(GL_FILES) -o snd $(SNDLIB_LIB) $(XEN_LIBS) $(GTK_LIBS) $(GL_LIBS) $(JACK_LIBS) $(AUDIO_LIB) $(FFTW_LIBS) $(GSL_LIBS) $(GMP_LIBS) $(PORTAUDIO_LIBS) $(LIBS) |
80 |
+ |
81 |
+ xm: xen.h mus-config.h $(S7_HEADERS) |
82 |
+ $(CC) -c xm.c -DUSE_SND=0 $(DEFS) $(SO_FLAGS) $(GTK_CFLAGS) $(CAIRO_CFLAGS) $(CFLAGS) $(XEN_CFLAGS) $(GSL_FLAGS) $(JACK_FLAGS) $(GL_FLAGS) |
83 |
|
84 |
diff --git a/media-sound/snd/snd-16.3.ebuild b/media-sound/snd/snd-16.3.ebuild |
85 |
new file mode 100644 |
86 |
index 0000000..a14da28 |
87 |
--- /dev/null |
88 |
+++ b/media-sound/snd/snd-16.3.ebuild |
89 |
@@ -0,0 +1,121 @@ |
90 |
+# Copyright 1999-2016 Gentoo Foundation |
91 |
+# Distributed under the terms of the GNU General Public License v2 |
92 |
+# $Id$ |
93 |
+ |
94 |
+EAPI=6 |
95 |
+ |
96 |
+inherit autotools flag-o-matic |
97 |
+ |
98 |
+DESCRIPTION="Snd is a sound editor" |
99 |
+HOMEPAGE="http://ccrma.stanford.edu/software/snd/" |
100 |
+SRC_URI="ftp://ccrma-ftp.stanford.edu/pub/Lisp/${P}.tar.gz" |
101 |
+ |
102 |
+LICENSE="Snd BSD-2 HPND GPL-2+ LGPL-2.1+ LGPL-3+ ruby? ( free-noncomm ) s7? ( free-noncomm )" |
103 |
+SLOT="0" |
104 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux" |
105 |
+IUSE="alsa doc fftw gmp gsl gtk jack ladspa motif opengl oss portaudio pulseaudio readline ruby +s7" |
106 |
+ |
107 |
+RDEPEND="media-libs/audiofile |
108 |
+ alsa? ( media-libs/alsa-lib ) |
109 |
+ fftw? ( sci-libs/fftw ) |
110 |
+ gmp? ( dev-libs/gmp |
111 |
+ dev-libs/mpc |
112 |
+ dev-libs/mpfr ) |
113 |
+ gsl? ( sci-libs/gsl ) |
114 |
+ gtk? ( x11-libs/gtk+:3 |
115 |
+ x11-libs/pango |
116 |
+ x11-libs/cairo |
117 |
+ opengl? ( x11-libs/gtkglext ) ) |
118 |
+ jack? ( media-sound/jack-audio-connection-kit ) |
119 |
+ ladspa? ( media-libs/ladspa-sdk ) |
120 |
+ motif? ( >=x11-libs/motif-2.3:0 ) |
121 |
+ opengl? ( virtual/opengl ) |
122 |
+ portaudio? ( media-libs/portaudio ) |
123 |
+ pulseaudio? ( media-sound/pulseaudio ) |
124 |
+ readline? ( sys-libs/readline ) |
125 |
+ ruby? ( dev-lang/ruby )" |
126 |
+ |
127 |
+REQUIRED_USE=" |
128 |
+ portaudio? ( !pulseaudio ) |
129 |
+ pulseaudio? ( !portaudio ) |
130 |
+ ^^ ( |
131 |
+ ( !ruby !s7 ) |
132 |
+ ( ruby !s7 ) |
133 |
+ ( !ruby s7 ) |
134 |
+ )" |
135 |
+PATCHES=( |
136 |
+ "${FILESDIR}/${P}-portaudio.patch" |
137 |
+) |
138 |
+ |
139 |
+pkg_setup() { |
140 |
+ if ! use gtk && ! use motif ; then |
141 |
+ ewarn "Warning: no graphic toolkit selected (gtk or motif)." |
142 |
+ ewarn "Upstream suggests to enable one of the toolkits (or both)" |
143 |
+ ewarn "or only the command line utilities will be helpful." |
144 |
+ fi |
145 |
+} |
146 |
+ |
147 |
+src_prepare() { |
148 |
+ default |
149 |
+ sed -i -e "s:-O2 ::" configure.ac || die |
150 |
+ eautoreconf |
151 |
+} |
152 |
+ |
153 |
+src_configure() { |
154 |
+ # Workaround executable sections QA warning (bug #348754) |
155 |
+ append-ldflags -Wl,-z,noexecstack |
156 |
+ |
157 |
+ local myconf |
158 |
+ if ! use ruby && ! use s7 ; then |
159 |
+ myconf+=" --without-extension-language" |
160 |
+ fi |
161 |
+ |
162 |
+ econf \ |
163 |
+ $(use_with alsa) \ |
164 |
+ $(use_with fftw) \ |
165 |
+ $(use_with gmp) \ |
166 |
+ $(use_with gsl) \ |
167 |
+ $(use_with gtk) \ |
168 |
+ $(use_with jack) \ |
169 |
+ $(use_with ladspa) \ |
170 |
+ $(use_with motif) \ |
171 |
+ $(use_with oss) \ |
172 |
+ $(use_with portaudio) \ |
173 |
+ $(use_with pulseaudio) \ |
174 |
+ $(use_with ruby) \ |
175 |
+ $(use_with s7) \ |
176 |
+ ${myconf} |
177 |
+} |
178 |
+ |
179 |
+src_compile() { |
180 |
+ emake snd |
181 |
+ |
182 |
+ # Do not compile ruby extensions for command line programs since they fail |
183 |
+ sed -i -e "s:HAVE_RUBY 1:HAVE_RUBY 0:" mus-config.h || die |
184 |
+ |
185 |
+ local i |
186 |
+ for i in sndplay sndinfo; do |
187 |
+ emake ${i} |
188 |
+ done |
189 |
+} |
190 |
+ |
191 |
+src_install () { |
192 |
+ dobin snd sndplay sndinfo |
193 |
+ |
194 |
+ if use ruby ; then |
195 |
+ insinto /usr/share/snd |
196 |
+ doins *.rb |
197 |
+ fi |
198 |
+ |
199 |
+ if use s7 ; then |
200 |
+ insinto /usr/share/snd |
201 |
+ doins *.scm |
202 |
+ fi |
203 |
+ |
204 |
+ dodoc README.Snd HISTORY.Snd NEWS |
205 |
+ |
206 |
+ if use doc ; then |
207 |
+ docinto html/ |
208 |
+ dodoc -r *.html pix/*.png tutorial |
209 |
+ fi |
210 |
+} |