/[gentoo-x86]/dev-tcltk/tclx/tclx-8.4-r2.ebuild
Gentoo

Contents of /dev-tcltk/tclx/tclx-8.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Jul 29 18:34:32 2012 UTC (20 months, 2 weeks ago) by armin76
Branch: MAIN
Changes since 1.5: +2 -2 lines
Drop alpha/sparc keywords

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclx/tclx-8.4-r2.ebuild,v 1.5 2012/07/03 16:28:40 ranger Exp $
4
5 EAPI=4
6
7 inherit eutils multilib
8
9 DESCRIPTION="A set of extensions to TCL"
10 HOMEPAGE="http://tclx.sourceforge.net"
11 SRC_URI="mirror://sourceforge/tclx/${PN}${PV}.tar.bz2"
12
13 LICENSE="BSD"
14 IUSE="tk threads"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~x86-macos"
17
18 DEPEND="
19 >=dev-lang/tcl-8.4.6
20 tk? ( >=dev-lang/tk-8.4.6 )"
21 RDEPEND="${DEPEND}"
22
23 S="${WORKDIR}"/${PN}${PV}
24
25 # tests broken, bug #279283
26 RESTRICT="test"
27
28 src_prepare() {
29 epatch \
30 "${FILESDIR}"/${P}-relid.patch \
31 "${FILESDIR}"/${P}-varinit.patch \
32 "${FILESDIR}"/${P}-ldflags.patch
33 }
34
35 src_configure() {
36 econf \
37 $(use_enable tk) \
38 $(use_enable threads) \
39 --enable-shared \
40 --with-tcl="${EPREFIX}/usr/$(get_libdir)/"
41
42 # adjust install_name on darwin
43 if [[ ${CHOST} == *-darwin* ]]; then
44 sed -i \
45 -e 's:^\(SHLIB_LD\W.*\)$:\1 -install_name ${pkglibdir}/$@:' \
46 "${S}"/Makefile || die 'sed failed'
47 fi
48 }
49
50 src_install() {
51 default
52 doman doc/*.[n3]
53 }

  ViewVC Help
Powered by ViewVC 1.1.20