Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-lang/tcl
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.121 2010/08/19 05:25:36 dirtyepic Exp $
*tcl-8.5.8-r2 (19 Aug 2010)
19 Aug 2010; Ryan Hill
+files/tcl-8.5.8-fortify.patch:
Fix buffer overflow with GCC 4.5 and -D_FORTIFY_SOURCE=2 (bug #317727 by
Diego).
16 Jun 2010; Justin Lecher
Compile in src_compile, fix for 324201
15 Jun 2010; Justin Lecher
Removing epause reported in bug 324139
*tcl-8.5.8-r1 (15 Jun 2010)
15 Jun 2010; Justin Lecher
QA, imported prefix changes
*tcl-8.5.8 (07 Jan 2010)
07 Jan 2010; Patrick Lauer
Bump for #297448
06 Oct 2009; Raúl Porcel
ia64/m68k/s390/sh/sparc stable wrt #280845
27 Sep 2009; Markus Meier
arm stable, bug #280845
22 Sep 2009; Markus Meier
amd64 stable, bug #280845
31 Aug 2009; Brent Baude
Marking tcl-8.5.7 ppc64 for bug 280845
29 Aug 2009; nixnut
ppc stable #280845
29 Aug 2009; Tobias Klausmann
Stable on alpha, bug #280845
27 Aug 2009; Jeroen Roovers
Stable for HPPA (bug #280845).
18 Aug 2009; Christian Faulhammer
stable x86, bug 280845
10 Aug 2009; Jeroen Roovers
Move conditional append-cflags out of global scope.
10 Aug 2009; Federico Ferri
fix bug #280934 - tcl stack check issue on hppa
*tcl-8.5.7 (17 Apr 2009)
17 Apr 2009; Federico Ferri
-tcl-8.5.6.ebuild, +tcl-8.5.7.ebuild:
bump to version 8.5.7
*tcl-8.5.6 (17 Jan 2009)
17 Jan 2009; Federico Ferri
+tcl-8.5.6.ebuild:
version bump, #253571
*tcl-8.4.19 (26 Oct 2008)
26 Oct 2008; Federico Ferri
version bump for 8.4 too
*tcl-8.5.5 (26 Oct 2008)
26 Oct 2008; Federico Ferri
+tcl-8.5.5.ebuild:
version bumped
11 May 2008;
tcl-8.4.18.ebuild:
- cross compile fix from buildroot
07 Mar 2008; Christoph Mende
Stable on amd64, bug #210326
25 Feb 2008; Jeroen Roovers
Stable for HPPA (bug #210326).
18 Feb 2008; Brent Baude
Marking tcl-8.4.18 ppc64 for bug 210326
17 Feb 2008; Raúl Porcel
alpha/ia64/sparc stable wrt #210326
17 Feb 2008; nixnut
Stable on ppc wrt bug 210326
16 Feb 2008; Christian Faulhammer
stable x86, bug 210326
*tcl-8.5.1 (16 Feb 2008)
*tcl-8.4.18 (16 Feb 2008)
16 Feb 2008; MATSUU Takuto
-files/tcl-8.4.6-multilib.patch, -tcl-8.4.9.ebuild, -tcl-8.4.17.ebuild,
+tcl-8.4.18.ebuild, -tcl-8.5.0.ebuild, +tcl-8.5.1.ebuild:
Version bumped, bug #208464.
Removed old versions.
*tcl-8.4.17 (04 Feb 2008)
04 Feb 2008; MATSUU Takuto
+tcl-8.4.17.ebuild:
Version bumped.
*tcl-8.5.0 (22 Dec 2007)
*tcl-8.4.16 (22 Dec 2007)
22 Dec 2007; MATSUU Takuto
-files/tcl-8.3.5-tclm4-soname.patch, +files/tcl-8.4.16-multilib.patch,
-tcl-8.4.14.ebuild, -tcl-8.4.14-r1.ebuild, +tcl-8.4.16.ebuild,
-tcl-8.5_alpha6.ebuild, -tcl-8.5_beta3.ebuild, +tcl-8.5.0.ebuild:
Version bumped. bug #194385.
Removed old versions.
*tcl-8.5_beta3 (25 Nov 2007)
25 Nov 2007;
Version bumped.
Fixed tclsh issue wrt bug #200090.
*tcl-8.5b (03 Nov 2007)
03 Nov 2007; Markus Ullmann
Version bump, dropping keywords as status wrt other packages is untested
21 Aug 2007; Christoph Mende
Stable on amd64 wrt bug #178320
18 Aug 2007; nixnut
Stable on ppc wrt bug 178320
15 Aug 2007; Jeroen Roovers
Stable for HPPA (bug #178320).
14 Aug 2007; Markus Rothe
Stable on ppc64; bug #178320
14 Aug 2007; Raúl Porcel
alpha/ia64/x86 stable wrt #178320
13 Aug 2007; Ferris McCormick
Sparc stable --- Bug #178320 --- has been fine for 4 weeks.
*tcl-8.5_alpha6 (20 Jul 2007)
*tcl-8.4.15 (20 Jul 2007)
20 Jul 2007; MATSUU Takuto
+files/tcl-8.4.15-tclm4-soname.patch,
+files/tcl-8.5_alpha6-multilib.patch,
+files/tcl-8.5_alpha6-tclm4-soname.patch, +tcl-8.4.15.ebuild,
+tcl-8.5_alpha6.ebuild:
Version bumped, Bug #173467, #181597.
*tcl-8.4.14-r1 (12 Jul 2007)
12 Jul 2007; MATSUU Takuto
Fixed library filenames issue, bug #149037.
24 Jun 2007; Piotr Jaroszyński
tcl-8.4.14.ebuild:
(QA) Fix ${ROOT} abuse. bug #167271.
25 May 2007; Brent Baude
Marking tcl-8.4.14 ppc64 stable for bug 178320
20 May 2007; nixnut
Stable on ppc wrt bug 178320
16 May 2007; Christian Faulhammer
stable amd64, bug 178320
15 May 2007; Raúl Porcel
alpha/ia64/x86 stable wrt #178320
15 May 2007; Ferris McCormick
Sparc stable --- Bug #178320 --- Has been without problems for over 4 months.
15 May 2007; Jeroen Roovers
Stable for HPPA (bug #178320).
27 Apr 2007; MATSUU Takuto
-tcl-8.4.12.ebuild, -tcl-8.4.13.ebuild, tcl-8.4.14.ebuild:
Fixed soname problem, bug #125971.
Removed old versions.
*tcl-8.4.14 (06 Jan 2007)
06 Jan 2007; MATSUU Takuto
+tcl-8.4.14.ebuild:
Version bumped.
26 Dec 2006; Mike Frysinger
Clean up src_install() to use proper ebuild commands rather than running
`install` and use relative symlinks for libraries.
18 Oct 2006; Roy Marples
Added ~sparc-fbsd keyword.
04 Jun 2006; Diego Pettenò
Export CC variable to be safe on cross-distcc.
*tcl-8.4.13 (03 Jun 2006)
03 Jun 2006; MATSUU Takuto
+files/tcl-8.3.5-tclm4-soname.patch, +tcl-8.4.13.ebuild:
Version bumped, Bug 128681.
Added debug USE flag, Bug 123444.
Added soname patch, Bug 125971.
Removed PDEPEND.
11 Apr 2006; Diego Pettenò
Add ~x86-fbsd keyword.
21 Mar 2006; Aron Griffis
Port bash-3 fix from tcl-8.4.11.ebuild to tcl-8.4.9.ebuild #117744
*tcl-8.4.12 (03 Mar 2006)
03 Mar 2006; MATSUU Takuto
-tcl-8.4.6-r1.ebuild, -tcl-8.4.11.ebuild, +tcl-8.4.12.ebuild:
Version bumped, Bug 117122.
Removed old versions.
26 Feb 2006; Joshua Kinard
Marked stable on mips.
03 Feb 2006; Mike Frysinger
+files/tcl-configure-LANG.patch, tcl-8.4.9.ebuild, tcl-8.4.11.ebuild,
tcl-8.4.11-r1.ebuild:
Fix nls breakage #120133 by J.
18 Jan 2006; Simon Stelling
add missing multilib inherit
*tcl-8.4.11-r1 (08 Jan 2006)
08 Jan 2006; MATSUU Takuto
Fixed fails with bash 3.1, Bug 117744.
03 Aug 2005; Bryan Østergaard
Stable on alpha.
02 Jul 2005; MATSUU Takuto
Added PDEPEND. Bug 97357.
*tcl-8.4.11 (02 Jul 2005)
02 Jul 2005; MATSUU Takuto
+files/tcl-8.4.11-multilib.patch, +tcl-8.4.11.ebuild:
Version bumped.
06 Jun 2005; Markus Rothe
Stable on ppc64
03 Jun 2005; Mike Frysinger
Touchup ROOT / libdir usage to get rid of all the // gremlins.
27 May 2005; Joseph Jezak
Marked ppc stable.
09 May 2005; Gustavo Zacarias
Stable on sparc
08 May 2005; Marcus D. Hanwell
Stable on amd64.
07 May 2005; Aron Griffis
stable on ia64
07 May 2005; MATSUU Takuto
Stable on x86.
21 Mar 2005; Lars Weiler
tcl-8.4.9.ebuild:
Downgrading tcl for ppc.
19 Mar 2005; Doug Goldstein
Changing to proper herd
*tcl-8.4.9 (19 Mar 2005)
19 Mar 2005; MATSUU Takuto
Version bumped, #83816
29 Dec 2004; Ciaran McCreesh
Change encoding to UTF-8 for GLEP 31 compliance
21 Dec 2004; Jeremy Huddleston
+files/tcl-8.4.6-multilib.patch, tcl-8.4.6-r1.ebuild:
Made tcl multilib friendly.
01 Nov 2004; Lars Weiler
Stable on ppc for PHP5, Bug #60442.
19 Oct 2004; Bryan Østergaard
Stable on alpha.
21 Sep 2004; Doug Goldstein
readding arches I removed accidently
*tcl-8.4.6-r1 (21 Sep 2004)
21 Sep 2004; Doug Goldstein
fixed tclConfig.sh when using custom $PORTAGE_TMPDIR... also fixed potential
cross compiling issues
14 Sep 2004; Guy Martin
Stable on hppa.
06 Sep 2004; Ciaran McCreesh
tcl-8.4.6.ebuild:
Switch to use epause and ebeep, bug #62950
24 Aug 2004; Chris Aniszczyk
Stable on x86
17 Aug 2004; Aron Griffis
stable on alpha and ia64
01 Jul 2004; Jeremy Huddleston
tcl-8.4.6.ebuild:
virtual/glibc -> virtual/libc
15 Jun 2004; Ferris McCormick
Marked stable for sparc.
31 May 2004; Tom Gall
stable on ppc64
25 Apr 2004; Michael Sterrett
tcl-8.4.6.ebuild:
don't depend on use echo
25 Apr 2004; Daniel Black
tcl-8.4.6.ebuild:
Removed gentoolkit thanks to Brian Jackson
20 Apr 2004; Ian Leitch
Marking stable on amd64 and s390
20 Apr 2004; Ian Leitch
Marking stable on mips
20 Apr 2004; Ian Leitch
tcl-8.4.6.ebuild:
Enable threads with local USE flag 'threads'. #2024
20 Apr 2004; Ian Leitch
-tcl-8.3.3-r3.ebuild, -tcl-8.4.3.ebuild, -tcl-8.4.4.ebuild,
-tcl-8.4.5.ebuild:
Removed stable ebuilds
*tcl-8.4.6 (04 Mar 2004)
04 Mar 2004; Martin Holzer
Version bumped.
02 Mar 2004; Brian Jackson
added s390 to keywords
04 Jan 2004;
Added mips to KEYWORDS
03 Jan 2004; Aron Griffis
Add ~alpha
03 Jan 2004; Brian Jackson
tcl-8.3.3-r3.ebuild, tcl-8.3.4.ebuild, tcl-8.4.3.ebuild, tcl-8.4.4.ebuild,
tcl-8.4.5.ebuild:
adding ~ia64 keywords, it's installed on the releng ia64 box, so I assume it's
safe, needed for bitkeeper
19 Dec 2003; David Holm
Added to ~ppc.
*tcl-8.4.5 (07 Dec 2003)
07 Dec 2003; Martin Holzer
Version bumped.
07 Dec 2003; Martin Holzer
tcl-8.4.4.ebuild:
changing to sf
16 Nov 2003; Brad House
add ~amd64 flag
*tcl-8.4.4 (22 Oct 2003)
22 Oct 2003; Martin Holzer
Version bumped. Closes #28633.
*tcl-8.4.3 (30 Jun 2003)
30 Sep 2003; Joshua Kinard
Added ~sparc & ~mips to KEYWORDS
30 Jun 2003; Daniel Ahlberg
Version bump.
*tcl-8.4.2-r1 (19 May 2003)
19 May 2003; Stanislav Brabec
Fixed man-pages installation (worked around bug in mkLinks script - unset
variable S for installation).
*tcl-8.4.2 (17 Apr 2003)
09 May 2003; Stanislav Brabec
Added upgrade recompilation warning (bug #19939) and dependency on
revdep-rebuild.
17 Apr 2003; Stanislav Brabec
Updated to version 8.4.2 (bug #18483).
*tcl-8.3.4 (18 Dec 2002)
20 Mar 2003; Zach Welch
add arm keyword
08 Mar 2003; Guy Martin
Added hppa to keywords.
18 Dec 2002; Stefan Jones
New revision.
*tcl-8.3.3-r3 (25 Jun 2002)
06 Dec 2002; Rodney Rees
changed sparc ~sparc keywords
02 Aug 2002; mark Guertin
Added ppc to keywords
25 Jun 2002; Karl Trygve Kalleberg
Some programs had trouble compiling against tcl due to erroneous quoting of
a compile-time env var. Fixed.
Removed tcl-8.3.3-r2.ebuild files/digest-tcl-8.3.3-r2
*tcl-8.3.3-r2 (31 May 2002)
31 May 2002; Preston A. Elder
Fixed the soft links created in the install process.
*tcl-8.3.3-r1 (24 Apr 2002)
02 Aug 2002; mark Guertin
Added ppc to keywords
24 Apr 2002; Karl Trygve Kalleberg
Threading is now disabled as it breaks some packages, most notably lavaps.
Removed tcl-8.3.3.ebuild files/digest-tcl-8.3.3
*tcl-8.3.3 (1 Feb 2002)
1 Feb 2002; G.Bevin
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
AUX tcl-8.4.11-multilib.patch 1808 RMD160 fb26bcbc63a3fb79dc2793af35f64b4dc189fe24 SHA1 21b02ba0c68ec512a9225b2822119624321b30db SHA256 4925265d9fc72077d94ac23420671a4a0403cb0bad1be1dcc5d945e7bef5629a
AUX tcl-8.4.15-tclm4-soname.patch 477 RMD160 65326daf481e3ac425eb4ba9f9495dc122b7964a SHA1 7c664afeddfb3bf51fa52104cca047f6e421fcee SHA256 2130b8b5fdddadfca35b74e9432d2651733e4f1c7b13d66ffc87b6995865076b
AUX tcl-8.4.16-multilib.patch 988 RMD160 b674f7c4c78a89b3435b2b04831f974992c5c369 SHA1 ea83b70443ede2d52a2ad35a3c5e74a666044693 SHA256 6df0027ee02c1f458e8ae5f07538e0838317d72d028c6e1af97e8433d866b0ce
AUX tcl-8.4.9-strtod.patch 362 RMD160 90ece8fcccba20cf1bc758133bc072cd515ba090 SHA1 db6098d47f28b7a40cc329dce2cac4e742a956d8 SHA256 93fad4cd880492430d5d55730b96a12697a58e951d8145b2b66025bceca10386
AUX tcl-8.5.8-fortify.patch 633 RMD160 2601056b5a92d5bb038ca81347de16ea1b650925 SHA1 4b8fa645df12f9c2538b7fa80763eab1dd3615c5 SHA256 c0d05495bc75c283acd631140eed61eec278f305637940398b1714c1e0570408
AUX tcl-8.5_alpha6-multilib.patch 830 RMD160 e99162cf85299e44137c87c482b9d27f767f38f0 SHA1 c9de5b434aa2b479557e6be4db5dbb62ebcb2fe8 SHA256 5686025ce4e685afcf06cafac591a91a5ccd10f952c422cf01b4f72263023d55
AUX tcl-8.5_alpha6-tclm4-soname.patch 486 RMD160 1795d442bf8ced0804d6aa364f628c545eb791f8 SHA1 9a7c9ed07eb1394c5ba16a8a41f9d47428414ac4 SHA256 af3c3ea0b0d6c37c666d2fb54cd9891c273c90ebaea4a4707583076faffb2925
AUX tcl-configure-LANG.patch 1686 RMD160 4ff8355af81705058fd411910dfae94887bcd884 SHA1 67ae0deff73689cb39cd6e7451262bdda9c25a39 SHA256 dc9386b88eac48c282d63d0be7e7be81d4a0a08035a8b97138a61133e057bcea
DIST tcl8.4.15-src.tar.gz 3635163 RMD160 b6b41cb5ae18744ba5aa7fdf3d64277d97d8546e SHA1 fbfae3ca68633a10b3fe870018588ade0944caed SHA256 84670f6a3647bc4e3608ab4630621a84caa8e35b0dda017d6beea2b06940afad
DIST tcl8.4.18-src.tar.gz 3653369 RMD160 735a9cc0575585de70cbd3cb2ff5c97d46c1dfbd SHA1 83b04c3ad092c22507869dec3a5c7ba821f109b0 SHA256 dee273cba588ec9190f0ee3dfe917be49c52ae847f20c3aa72461546451df0a4
DIST tcl8.4.19-src.tar.gz 3658647 RMD160 6e3d2991e8e44a2e32f0da8fdf7ab07aa9b8202f SHA1 ed25c5a206bcd603c2d5e58790354b9be178f331 SHA256 1c244722fb409e8774c5d45d6a0b21edc3e4541fd016a40afdf53c94a69a3db9
DIST tcl8.5.7-src.tar.gz 4421720 RMD160 1bb843548c05332eb3404b99b4800613f25a9dbf SHA1 a603d27bf0b854739c99f0d658bfc3f1c485f578 SHA256 67d28d51a8d04c37114030276503bc8859a4b291bc33133556ab2d11303e66f2
DIST tcl8.5.8-src.tar.gz 4452127 RMD160 dfba63e9a3896350b88f592301fbe6669a60b5c1 SHA1 21de27a24633c7550383bc7c35736e9acd5cb3a8 SHA256 6b090c1024038d0381e1ccfbd6d5c0f0e6ef205269ceb9d28bd7bd7ac5bbf4a7
EBUILD tcl-8.4.15.ebuild 3521 RMD160 6ce2fae9e2dabab1fe0fc60ca06847443bdf91f1 SHA1 591bb89518fc289498f8a528534a35f831cbb4cd SHA256 960ab873e207dcc45057ec500c51a5df8c42e38f9752b840a7994788d8bb38b0
EBUILD tcl-8.4.18.ebuild 3616 RMD160 0e692057dc06d804d2e135f3d9fd34592066a5a9 SHA1 3498973d4ae81b61ee34210fdb1cad7a6368ac6d SHA256 533956e3efd4d579e3c34e2a6c0b6be191788b7018203aa8b9ae8a6a7d8da74e
EBUILD tcl-8.4.19.ebuild 3627 RMD160 7abc5e056c8b826e8a2c5c0831098136e7970249 SHA1 048455a731e94bfa9c0e7a00a05bee293983e3e9 SHA256 69a6c8f859a0b618ad2efcbe46fbdb2a02603787c56ec0728a6962d3ac7a0839
EBUILD tcl-8.5.7.ebuild 3293 RMD160 446a3decdb73bdafebceafae2307b4bd8cfa3254 SHA1 a36ffa5cd1ac5f46b4843cff91626b39724c4339 SHA256 e8d85e915f11eb2fea254ae361e682cd929f57d3588cc495c67151357c675af9
EBUILD tcl-8.5.8-r1.ebuild 3577 RMD160 9bfb38b242da93722d8dca25a90a6483d3d05380 SHA1 d455f6e3e23d6ecbca3427fc6ad4d84f67655efe SHA256 75942b89ffb236cdc08005ff0f00302e94c6326d528018467cc1013fec3b9174
EBUILD tcl-8.5.8-r2.ebuild 3632 RMD160 0e92e41c7d29c8fa3687d3b89e211be27ef47c94 SHA1 8e7bc9ec391dcef7fca81aa6111c412eb46501ad SHA256 dc3c25450c6307a79906555acd77e97b61366bda66b1aa1b812a023ebc1d6e84
EBUILD tcl-8.5.8.ebuild 3304 RMD160 7dc5371797c0d561ab06732a68e0f61e8042b174 SHA1 5e27053d4a9b289dc0f1f81a2b6e9011cfb4d963 SHA256 c986c410052bd0bba1bc100e67e2c404d6452f83c96446f4f7209bdb909e3933
MISC ChangeLog 15395 RMD160 3259a5ed643cff4f8f785e61834e0d3e97b6aa0a SHA1 fd6912fb91cd2211e4fd77c6ab11e1bcc1fcb8b5 SHA256 77e561c8ca5b731944ec01f0d8af05860a3ff732cde23f5337a2197eb3ea25ab
MISC metadata.xml 264 RMD160 6318855997b3e957f4ad5c59677534993e352c34 SHA1 19fe5fc86133d09d7fcb0b2ce44054eff4fff028 SHA256 01ce19dabf2e53a73d86e4b16f653c6cd2b6c9aca1b79ec095f353315c8b84ee
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
iEYEARECAAYFAkxswUUACgkQiqiDRvmkBmI0LACgncs9/52iH+wSWDgQvSoAR5QU
keMAn3yyVHY0kNWVs6LTaigSzhpFkkPJ
=OIbz
-----END PGP SIGNATURE-----
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.4.15.ebuild,v 1.10 2010/06/15 23:46:51 mr_bones_ Exp $
inherit autotools eutils multilib toolchain-funcs
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${PN}${PV}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="debug threads"
DEPEND=""
S=${WORKDIR}/${PN}${PV}
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${P} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
epause 5
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-8.4.11-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${P}-tclm4-soname.patch
local d
for d in */configure ; do
cd "${S}"/${d%%/*}
EPATCH_SINGLE_MSG="Patching nls cruft in ${d}" \
epatch "${FILESDIR}"/tcl-configure-LANG.patch
done
cd "${S}"/unix
eautoreconf
}
src_compile() {
tc-export CC
local local_config_use=""
if use threads ; then
local_config_use="--enable-threads"
fi
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
"${D}"/usr/${mylibdir}/tclConfig.sh || die
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
if use debug ; then
dosym libtcl${v1}g.so /usr/${mylibdir}/libtcl${v1}.so
dosym libtclstub${v1}g.a /usr/${mylibdir}/libtclstub${v1}.a
fi
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
dosym tclsh${v1} /usr/bin/tclsh
cd "${S}"
dodoc ChangeLog* README changes
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from tcl-8.3, you must recompile the other"
ewarn "packages on your system that link with tcl after the upgrade"
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.4.18.ebuild,v 1.11 2010/06/15 23:46:51 mr_bones_ Exp $
inherit autotools eutils multilib toolchain-funcs
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${PN}${PV}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="debug threads"
DEPEND=""
S="${WORKDIR}/${PN}${PV}"
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${PF} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
epause 5
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-8.4.16-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${PN}-8.4.15-tclm4-soname.patch
# cross-compile fix from buildroot.
epatch "${FILESDIR}"/${PN}-8.4.9-strtod.patch
local d
for d in */configure ; do
cd "${S}"/${d%%/*}
EPATCH_SINGLE_MSG="Patching nls cruft in ${d}" \
epatch "${FILESDIR}"/tcl-configure-LANG.patch
done
cd "${S}"/unix
eautoreconf
}
src_compile() {
tc-export CC
local local_config_use=""
if use threads ; then
local_config_use="--enable-threads"
fi
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
"${D}"/usr/${mylibdir}/tclConfig.sh || die
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
if use debug ; then
dosym libtcl${v1}g.so /usr/${mylibdir}/libtcl${v1}.so
dosym libtclstub${v1}g.a /usr/${mylibdir}/libtclstub${v1}.a
fi
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
dosym tclsh${v1} /usr/bin/tclsh
cd "${S}"
dodoc ChangeLog* README changes
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from tcl-8.3, you must recompile the other"
ewarn "packages on your system that link with tcl after the upgrade"
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.4.19.ebuild,v 1.3 2010/06/15 23:46:51 mr_bones_ Exp $
inherit autotools eutils multilib toolchain-funcs
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${PN}${PV}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE="debug threads"
DEPEND=""
S="${WORKDIR}/${PN}${PV}"
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${PF} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
epause 5
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-8.4.16-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${PN}-8.4.15-tclm4-soname.patch
# cross-compile fix from buildroot.
epatch "${FILESDIR}"/${PN}-8.4.9-strtod.patch
local d
for d in */configure ; do
cd "${S}"/${d%%/*}
EPATCH_SINGLE_MSG="Patching nls cruft in ${d}" \
epatch "${FILESDIR}"/tcl-configure-LANG.patch
done
cd "${S}"/unix
eautoreconf
}
src_compile() {
tc-export CC
local local_config_use=""
if use threads ; then
local_config_use="--enable-threads"
fi
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
"${D}"/usr/${mylibdir}/tclConfig.sh || die
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
if use debug ; then
dosym libtcl${v1}g.so /usr/${mylibdir}/libtcl${v1}.so
dosym libtclstub${v1}g.a /usr/${mylibdir}/libtclstub${v1}.a
fi
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
dosym tclsh${v1} /usr/bin/tclsh
cd "${S}"
dodoc ChangeLog* README changes
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from tcl-8.3, you must recompile the other"
ewarn "packages on your system that link with tcl after the upgrade"
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.7.ebuild,v 1.13 2010/06/15 23:46:51 mr_bones_ Exp $
inherit autotools eutils flag-o-matic multilib toolchain-funcs
MY_P="${PN}${PV/_beta/b}"
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE="debug threads"
DEPEND=""
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${P} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
epause 5
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
cd "${S}"/unix
eautoreconf
}
src_compile() {
# workaround stack check issues, bug #280934
if use hppa; then
append-cflags "-DTCL_NO_STACK_CHECK=1"
fi
tc-export CC
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
"${D}"/usr/${mylibdir}/tclConfig.sh || die
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
dosym tclsh${v1} /usr/bin/tclsh
cd "${S}"
dodoc ChangeLog* README changes
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.8-r1.ebuild,v 1.4 2010/06/16 07:40:18 jlec Exp $
EAPI="3"
inherit autotools eutils flag-o-matic multilib toolchain-funcs
MY_P="${PN}${PV/_beta/b}"
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
IUSE="debug threads"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${P} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
cd "${S}"/unix
eautoreconf
}
src_configure() {
# workaround stack check issues, bug #280934
if use hppa; then
append-cflags "-DTCL_NO_STACK_CHECK=1"
fi
tc-export CC
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
}
src_compile() {
cd "${S}"/unix
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='${EPREFIX}/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='${EPREFIX}/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
"${ED}"/usr/${mylibdir}/tclConfig.sh || die
[[ ${CHOST} != *-darwin* ]] && sed -i \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
"${ED}"/usr/${mylibdir}/tclConfig.sh
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so || die
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a || die
dosym tclsh${v1} /usr/bin/tclsh || die
cd "${S}"
dodoc ChangeLog* README changes || die
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.8-r2.ebuild,v 1.1 2010/08/19 05:25:36 dirtyepic Exp $
EAPI="3"
inherit autotools eutils flag-o-matic multilib toolchain-funcs
MY_P="${PN}${PV/_beta/b}"
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x86-solaris"
IUSE="debug threads"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${P} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
fi
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
epatch "${FILESDIR}"/${P}-fortify.patch # 317727
cd "${S}"/unix
eautoreconf
}
src_configure() {
# workaround stack check issues, bug #280934
if use hppa; then
append-cflags "-DTCL_NO_STACK_CHECK=1"
fi
tc-export CC
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
}
src_compile() {
cd "${S}"/unix
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='${EPREFIX}/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='${EPREFIX}/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
"${ED}"/usr/${mylibdir}/tclConfig.sh || die
[[ ${CHOST} != *-darwin* ]] && sed -i \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:${EPREFIX}/usr/${mylibdir}'," \
"${ED}"/usr/${mylibdir}/tclConfig.sh
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${ED}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so || die
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a || die
dosym tclsh${v1} /usr/bin/tclsh || die
cd "${S}"
dodoc ChangeLog* README changes || die
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/tcl-8.5.8.ebuild,v 1.3 2010/06/15 23:46:51 mr_bones_ Exp $
inherit autotools eutils flag-o-matic multilib toolchain-funcs
MY_P="${PN}${PV/_beta/b}"
DESCRIPTION="Tool Command Language"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${MY_P}-src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
IUSE="debug threads"
DEPEND=""
S="${WORKDIR}/${MY_P}"
pkg_setup() {
if use threads ; then
ewarn ""
ewarn "PLEASE NOTE: You are compiling ${P} with"
ewarn "threading enabled."
ewarn "Threading is not supported by all applications"
ewarn "that compile against tcl. You use threading at"
ewarn "your own discretion."
ewarn ""
epause 5
fi
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-8.5_alpha6-multilib.patch
# Bug 125971
epatch "${FILESDIR}"/${PN}-8.5_alpha6-tclm4-soname.patch
cd "${S}"/unix
eautoreconf
}
src_compile() {
# workaround stack check issues, bug #280934
if use hppa; then
append-cflags "-DTCL_NO_STACK_CHECK=1"
fi
tc-export CC
cd "${S}"/unix
econf \
$(use_enable threads) \
$(use_enable debug symbols) || die
emake || die
}
src_install() {
#short version number
local v1
v1=${PV%.*}
cd "${S}"/unix
S= emake DESTDIR="${D}" install || die
# fix the tclConfig.sh to eliminate refs to the build directory
local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/}
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L$/usr/${mylibdir}," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/${mylibdir}/tcl${v1}/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/${mylibdir}," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/${mylibdir}," \
-e "s,^TCL_LIB_FILE='libtcl${v1}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${v1}\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/${mylibdir}'," \
"${D}"/usr/${mylibdir}/tclConfig.sh || die
# install private headers
insinto /usr/${mylibdir}/tcl${v1}/include/unix
doins "${S}"/unix/*.h || die
insinto /usr/${mylibdir}/tcl${v1}/include/generic
doins "${S}"/generic/*.h || die
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tcl.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclDecls.h
rm -f "${D}"/usr/${mylibdir}/tcl${v1}/include/generic/tclPlatDecls.h
# install symlink for libraries
dosym libtcl${v1}.so /usr/${mylibdir}/libtcl.so
dosym libtclstub${v1}.a /usr/${mylibdir}/libtclstub.a
dosym tclsh${v1} /usr/bin/tclsh
cd "${S}"
dodoc ChangeLog* README changes
}
pkg_postinst() {
ewarn
ewarn "If you're upgrading from
ewarn "completes. To perform this action, please run revdep-rebuild"
ewarn "in package app-portage/gentoolkit."
ewarn "If you have dev-lang/tk and dev-tcltk/tclx installed you should"
ewarn "upgrade them before this recompilation, too,"
ewarn
}