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