Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/snd: snd-12.8.ebuild ChangeLog
Date: Tue, 07 Feb 2012 08:01:00
Message-Id: 20120207080049.F319F2004B@flycatcher.gentoo.org
1 radhermit 12/02/07 08:00:49
2
3 Modified: ChangeLog
4 Added: snd-12.8.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.60 media-sound/snd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/snd/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 4 Jan 2012 09:36:29 -0000 1.59
24 +++ ChangeLog 7 Feb 2012 08:00:49 -0000 1.60
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-sound/snd
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/snd/ChangeLog,v 1.59 2012/01/04 09:36:29 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/snd/ChangeLog,v 1.60 2012/02/07 08:00:49 radhermit Exp $
30 +
31 +*snd-12.8 (07 Feb 2012)
32 +
33 + 07 Feb 2012; Tim Harder <radhermit@g.o> +snd-12.8.ebuild:
34 + Version bump.
35
36 *snd-12.7 (04 Jan 2012)
37
38
39
40
41 1.1 media-sound/snd/snd-12.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/snd-12.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/snd-12.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: snd-12.8.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-sound/snd/snd-12.8.ebuild,v 1.1 2012/02/07 08:00:49 radhermit Exp $
51
52 EAPI="4"
53
54 inherit multilib flag-o-matic autotools
55
56 DESCRIPTION="Snd is a sound editor"
57 HOMEPAGE="http://ccrma.stanford.edu/software/snd/"
58 SRC_URI="ftp://ccrma-ftp.stanford.edu/pub/Lisp/${P}.tar.gz"
59
60 SLOT="0"
61 LICENSE="as-is"
62 KEYWORDS="~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux"
63 IUSE="alsa doc fam fftw gmp gsl gtk jack ladspa motif opengl oss portaudio pulseaudio readline ruby +s7"
64
65 RDEPEND="media-libs/audiofile
66 alsa? ( media-libs/alsa-lib )
67 fam? ( virtual/fam )
68 fftw? ( sci-libs/fftw )
69 gmp? ( dev-libs/gmp
70 dev-libs/mpc
71 dev-libs/mpfr )
72 gsl? ( sci-libs/gsl )
73 gtk? ( x11-libs/gtk+:3
74 x11-libs/pango
75 x11-libs/cairo
76 opengl? ( x11-libs/gtkglext ) )
77 jack? ( media-sound/jack-audio-connection-kit )
78 ladspa? ( media-libs/ladspa-sdk )
79 motif? ( >=x11-libs/openmotif-2.3:0 )
80 opengl? ( virtual/opengl )
81 portaudio? ( media-libs/portaudio )
82 pulseaudio? ( media-sound/pulseaudio )
83 readline? ( sys-libs/readline )
84 ruby? ( dev-lang/ruby )"
85
86 REQUIRED_USE="^^ (
87 ( !ruby !s7 )
88 ( ruby !s7 )
89 ( !ruby s7 )
90 )"
91
92 pkg_setup() {
93 if ! use gtk && ! use motif ; then
94 ewarn "Warning: no graphic toolkit selected (gtk or motif)."
95 ewarn "Upstream suggests to enable one of the toolkits (or both)"
96 ewarn "or only the command line utilities will be helpful."
97 fi
98 }
99
100 src_prepare() {
101 epatch "${FILESDIR}"/${PN}-12.6-as-needed.patch
102 sed -i -e "s:-O2 ::" configure.ac || die
103 eautoreconf
104 }
105
106 src_configure() {
107 # Workaround executable sections QA warning (bug #348754)
108 append-ldflags -Wl,-z,noexecstack
109
110 local myconf
111 if use opengl ; then
112 myconf+=" --with-just-gl"
113 else
114 myconf+=" --without-gl"
115 fi
116
117 if ! use ruby && ! use s7 ; then
118 myconf+=" --without-extension-language"
119 fi
120
121 econf \
122 $(use_with alsa) \
123 $(use_with fam) \
124 $(use_with fftw) \
125 $(use_with gmp) \
126 $(use_with gsl) \
127 $(use_with gtk) \
128 $(use_with jack) \
129 $(use_with ladspa) \
130 $(use_with motif) \
131 $(use_with oss) \
132 $(use_with portaudio) \
133 $(use_with pulseaudio) \
134 $(use_enable readline) \
135 $(use_with ruby) \
136 $(use_with s7) \
137 --with-float-samples \
138 ${myconf}
139
140 }
141
142 src_compile() {
143 emake snd
144
145 # Do not compile ruby extensions for command line programs since they fail
146 sed -i -e "s:HAVE_RUBY 1:HAVE_RUBY 0:" mus-config.h
147
148 for i in sndinfo audinfo sndplay ; do
149 emake ${i}
150 done
151 }
152
153 src_install () {
154 dobin snd sndplay sndinfo audinfo
155
156 if use ruby ; then
157 insinto /usr/share/snd
158 doins *.rb
159 fi
160
161 if use s7 ; then
162 insinto /usr/share/snd
163 doins *.scm
164 fi
165
166 dodoc README.Snd HISTORY.Snd NEWS
167 use doc && dohtml -r *.html pix/*.png tutorial
168 }