Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-tcltk/snack: snack-2.2.10-r3.ebuild ChangeLog snack-2.2.10-r1.ebuild snack-2.2.10.ebuild
Date: Wed, 31 Mar 2010 21:18:15
Message-Id: E1Nx5Ii-0002EL-JX@stork.gentoo.org
1 jlec 10/03/31 21:18:12
2
3 Modified: ChangeLog
4 Added: snack-2.2.10-r3.ebuild
5 Removed: snack-2.2.10-r1.ebuild snack-2.2.10.ebuild
6 Log:
7 Adopted to new python situation, #312215, EAPI=3
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.41 dev-tcltk/snack/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tcltk/snack/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tcltk/snack/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tcltk/snack/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 10 Oct 2009 15:30:43 -0000 1.40
24 +++ ChangeLog 31 Mar 2010 21:18:12 -0000 1.41
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-tcltk/snack
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v 1.40 2009/10/10 15:30:43 armin76 Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/ChangeLog,v 1.41 2010/03/31 21:18:12 jlec Exp $
31 +
32 +*snack-2.2.10-r3 (31 Mar 2010)
33 +
34 + 31 Mar 2010; Justin Lecher <jlec@g.o> -snack-2.2.10.ebuild,
35 + -snack-2.2.10-r1.ebuild, +snack-2.2.10-r3.ebuild:
36 + Adopted to new python situation, #312215, EAPI=3
37
38 10 Oct 2009; Raúl Porcel <armin76@g.o> snack-2.2.10-r2.ebuild:
39 sparc stable wrt #282987
40
41
42
43 1.1 dev-tcltk/snack/snack-2.2.10-r3.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tcltk/snack/snack-2.2.10-r3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-tcltk/snack/snack-2.2.10-r3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: snack-2.2.10-r3.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/snack/snack-2.2.10-r3.ebuild,v 1.1 2010/03/31 21:18:12 jlec Exp $
53
54 EAPI="3"
55
56 PYTHON_DEPEND="python? 2"
57
58 inherit eutils multilib python
59
60 DESCRIPTION="The Snack Sound Toolkit (Tcl)"
61 HOMEPAGE="http://www.speech.kth.se/snack/"
62 SRC_URI="http://www.speech.kth.se/snack/dist/${PN}${PV}.tar.gz"
63
64 LICENSE="GPL-2"
65 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
66 SLOT="0"
67 IUSE="alsa examples python threads vorbis"
68
69 RESTRICT="test" # Bug 78354
70
71 DEPEND="
72 >dev-lang/tk-8.4.3
73 alsa? ( media-libs/alsa-lib )
74 vorbis? ( media-libs/libvorbis )"
75 RDEPEND="${DEPEND}"
76
77 S="${WORKDIR}/${PN}${PV}/unix"
78
79 src_prepare() {
80 # bug 226137 - snack depends on alsa private symbol _snd_pcm_mmap_hw_ptr
81 epatch "${FILESDIR}"/alsa-undef-sym.patch
82 # bug 270839 - error from /usr/include/bits/mathcalls.h:310
83 sed -i -e 's|^\(#define roundf(.*\)|//\1|' ../generic/jkFormatMP3.c
84 }
85
86 src_configure() {
87 local myconf="--libdir=/usr/$(get_libdir) --includedir=/usr/include"
88
89 use alsa && myconf="${myconf} --enable-alsa"
90 use threads && myconf="${myconf} --enable-threads"
91
92 if use vorbis ; then
93 myconf="${myconf} --with-ogg-include=/usr/include"
94 myconf="${myconf} --with-ogg-lib=/usr/$(get_libdir)"
95 fi
96
97 econf ${myconf}
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install || die "make install failed"
102
103 if use python ; then
104 cd "${S}"/../python
105 python setup.py install --root="${D}" || die
106 fi
107
108 cd "${S}"/..
109
110 dodoc README changes
111 dohtml doc/*
112
113 if use examples ; then
114 sed -i -e 's/wish[0-9.]+/wish/g' demos/tcl/* || die
115 docinto examples/tcl
116 dodoc demos/tcl/*
117
118 if use python ; then
119 docinto examples/python
120 dodoc demos/python/*
121 fi
122 fi
123 }
124
125 pkg_postinst() {
126 python_mod_optimize tkSnack.py
127 }
128
129 pkg_postrm() {
130 python_mod_cleanup tkSnack.py
131 }