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: ChangeLog snd-12.1.ebuild
Date: Mon, 02 May 2011 23:46:46
Message-Id: 20110502234636.63EBB20054@flycatcher.gentoo.org
1 radhermit 11/05/02 23:46:36
2
3 Modified: ChangeLog
4 Added: snd-12.1.ebuild
5 Log:
6 Version bump. Update to EAPI 4, refactor USE flags and related dependencies, and add workaround to avoid executable sections (bug #348754).
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.51 media-sound/snd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/snd/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 29 Mar 2011 12:42:02 -0000 1.50
24 +++ ChangeLog 2 May 2011 23:46:36 -0000 1.51
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-sound/snd
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/snd/ChangeLog,v 1.50 2011/03/29 12:42:02 angelos Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/snd/ChangeLog,v 1.51 2011/05/02 23:46:36 radhermit Exp $
30 +
31 +*snd-12.1 (02 May 2011)
32 +
33 + 02 May 2011; Tim Harder <radhermit@g.o> +snd-12.1.ebuild:
34 + Version bump. Update to EAPI 4, refactor USE flags and related dependencies,
35 + and add workaround to avoid executable sections (bug #348754).
36
37 29 Mar 2011; Christoph Mende <angelos@g.o> snd-9.11.ebuild:
38 Fix gtk+ slot deps
39
40
41
42 1.1 media-sound/snd/snd-12.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/snd-12.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/snd/snd-12.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: snd-12.1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-sound/snd/snd-12.1.ebuild,v 1.1 2011/05/02 23:46:36 radhermit Exp $
52
53 EAPI=4
54
55 inherit multilib flag-o-matic
56
57 DESCRIPTION="Snd is a sound editor"
58 HOMEPAGE="http://ccrma.stanford.edu/software/snd/"
59 SRC_URI="ftp://ccrma-ftp.stanford.edu/pub/Lisp/${P}.tar.gz"
60
61 SLOT="0"
62 LICENSE="as-is"
63 KEYWORDS="~amd64 ~ppc ~x86 ~x86-interix ~amd64-linux ~x86-linux"
64 IUSE="alsa esd fam fftw gmp gsl gtk jack ladspa motif opengl oss portaudio pulseaudio ruby"
65
66 RDEPEND="media-libs/audiofile
67 sys-libs/readline
68 alsa? ( media-libs/alsa-lib )
69 esd? ( media-sound/esound )
70 fam? ( virtual/fam )
71 fftw? ( sci-libs/fftw )
72 gmp? ( dev-libs/gmp
73 dev-libs/mpc
74 dev-libs/mpfr )
75 gsl? ( >=sci-libs/gsl-0.8 )
76 gtk? ( x11-libs/gtk+:3 x11-libs/gtk+:2
77 x11-libs/pango
78 x11-libs/cairo
79 opengl? ( x11-libs/gtkglext ) )
80 jack? ( media-sound/jack-audio-connection-kit )
81 ladspa? ( media-libs/ladspa-sdk )
82 motif? ( >=x11-libs/openmotif-2.3:0 )
83 opengl? ( virtual/opengl )
84 portaudio? ( media-libs/portaudio )
85 pulseaudio? ( media-sound/pulseaudio )
86 ruby? ( dev-lang/ruby )"
87
88 pkg_setup() {
89 if ! use gtk && ! use motif; then
90 ewarn "Warning: no graphic toolkit selected (gtk or motif)."
91 ewarn "Upstream suggests to enable one of the toolkits (or both)"
92 ewarn "or only the command line utilities will be helpful."
93 fi
94 }
95
96 src_configure() {
97 # Workaround executable sections QA warning (bug #348754)
98 append-ldflags -Wl,-z,noexecstack
99
100 local myconf
101 if use opengl; then
102 myconf="${myconf} --with-just-gl"
103 else
104 myconf="${myconf} --without-gl"
105 fi
106
107 econf \
108 $(use_with alsa) \
109 $(use_with esd) \
110 $(use_with fam) \
111 $(use_with fftw) \
112 $(use_with gmp) \
113 $(use_with gsl) \
114 $(use_with gtk) \
115 $(use_with jack) \
116 $(use_with ladspa) \
117 $(use_with motif) \
118 $(use_with oss) \
119 $(use_with portaudio) \
120 $(use_with pulseaudio) \
121 $(use_with ruby) \
122 --with-float-samples \
123 ${myconf}
124
125 }
126
127 src_compile() {
128 emake snd
129
130 # Do not compile ruby extensions for command line programs since they fail
131 sed -i -e "s:HAVE_RUBY 1:HAVE_RUBY 0:" mus-config.h
132
133 for i in sndinfo audinfo sndplay; do
134 emake ${i}
135 done
136 }
137
138 src_install () {
139 dobin snd
140 dobin sndplay
141 dobin sndinfo
142 dobin audinfo
143
144 insinto /usr/$(get_libdir)/snd/scheme
145 doins *.scm
146
147 dodoc README.Snd HISTORY.Snd NEWS
148 dohtml -r *.html pix/*.png tutorial
149 }