Gentoo Archives: gentoo-commits

From: "Cedric Krier (cedk)" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/chuck: ChangeLog chuck-1.2.1.3-r1.ebuild chuck-1.2.1.3.ebuild
Date: Tue, 31 Jul 2012 16:23:46
Message-Id: 20120731162333.78F5C2004B@flycatcher.gentoo.org
1 cedk 12/07/31 16:23:33
2
3 Modified: ChangeLog
4 Added: chuck-1.2.1.3-r1.ebuild
5 Removed: chuck-1.2.1.3.ebuild
6 Log:
7 Fix respect of LDFLAGS for Bug #337524
8
9 (Portage version: 2.1.10.65/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.19 media-sound/chuck/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/chuck/ChangeLog?rev=1.19&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/chuck/ChangeLog?rev=1.19&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/chuck/ChangeLog?r1=1.18&r2=1.19
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/chuck/ChangeLog,v
21 retrieving revision 1.18
22 retrieving revision 1.19
23 diff -u -r1.18 -r1.19
24 --- ChangeLog 17 Mar 2012 09:21:23 -0000 1.18
25 +++ ChangeLog 31 Jul 2012 16:23:33 -0000 1.19
26 @@ -1,6 +1,12 @@
27 # ChangeLog for media-sound/chuck
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-sound/chuck/ChangeLog,v 1.18 2012/03/17 09:21:23 cedk Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-sound/chuck/ChangeLog,v 1.19 2012/07/31 16:23:33 cedk Exp $
31 +
32 +*chuck-1.2.1.3-r1 (31 Jul 2012)
33 +
34 + 31 Jul 2012; C├ędric Krier <cedk@g.o> -chuck-1.2.1.3.ebuild,
35 + +chuck-1.2.1.3-r1.ebuild:
36 + Fix respect of LDFLAGS for Bug #337524
37
38 *chuck-1.2.1.3 (17 Mar 2012)
39
40
41
42
43 1.1 media-sound/chuck/chuck-1.2.1.3-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/chuck/chuck-1.2.1.3-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/chuck/chuck-1.2.1.3-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: chuck-1.2.1.3-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-sound/chuck/chuck-1.2.1.3-r1.ebuild,v 1.1 2012/07/31 16:23:33 cedk Exp $
53
54 EAPI=2
55 inherit toolchain-funcs flag-o-matic eutils
56
57 DESCRIPTION="Strongly-timed, Concurrent, and On-the-fly
58 Audio Programming Language"
59 HOMEPAGE="http://chuck.cs.princeton.edu/release/"
60 SRC_URI="http://chuck.cs.princeton.edu/release/files/${P}.tgz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~x86"
65 IUSE="+alsa jack oss examples"
66
67 RDEPEND="jack? ( media-sound/jack-audio-connection-kit )
68 alsa? ( media-libs/alsa-lib )
69 media-libs/libsndfile
70 app-admin/eselect-chuck"
71 DEPEND="${RDEPEND}
72 sys-devel/bison
73 sys-devel/flex"
74
75 pkg_setup() {
76 if ! use alsa && ! use jack && ! use oss; then
77 eerror "One of the following USE flags is needed: jack, alsa or oss"
78 die "Please set one audio engine type"
79 fi
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}"/${PN}-1.2.1.1-hid-smc.patch \
84 "${FILESDIR}"/${PN}-1.2.1.2-gcc44.patch
85 sed -i \
86 -e "s/\$(CXX) -o/\$(CXX) \$(LDFLAGS) -o/" \
87 src/makefile.{alsa,jack,oss} || die "sed failed"
88 }
89
90 compile_backend() {
91 backend=$1
92 cd "${S}/src"
93 einfo "Compiling against ${backend}"
94 emake -f "makefile.${backend}" CC=$(tc-getCC) \
95 CXX=$(tc-getCXX) || die "emake failed"
96 mv chuck{,-${backend}}
97 emake -f "makefile.${backend}" clean
98 cd -
99 }
100
101 src_compile() {
102 # when compile with athlon or athlon-xp flags
103 # chuck crashes on removing a shred with a double free or corruption
104 # it happens in Chuck_VM_Stack::shutdown() on the line
105 # SAFE_DELETE_ARRAY( stack );
106 replace-cpu-flags athlon athlon-xp i686
107
108 use jack && compile_backend jack
109 use alsa && compile_backend alsa
110 use oss && compile_backend oss
111 }
112
113 src_install() {
114 use jack && dobin src/chuck-jack
115 use alsa && dobin src/chuck-alsa
116 use oss && dobin src/chuck-oss
117
118 dodoc AUTHORS DEVELOPER PROGRAMMER QUICKSTART README THANKS TODO VERSIONS
119 docinto doc
120 dodoc doc/*
121 if use examples; then
122 insinto /usr/share/doc/${PF}/examples
123 doins $(find examples -type f)
124 for dir in $(find examples/* -type d); do
125 insinto /usr/share/doc/${PF}/"${dir}"
126 doins "${dir}"/*
127 done
128 fi
129 }
130
131 pkg_postinst() {
132 elog "Chuck now can use many audio engines, so you can specify audio engine"
133 elog "with chuck-{jack,alsa,oss}"
134 elog "Or you can use 'eselect chuck' to set the audio engine"
135
136 einfo "Calling eselect chuck update..."
137 eselect chuck update --if-unset
138 }