Portage is a package management system used by Gentoo Linux
# ChangeLog for dev-lang/tcl
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tcl/ChangeLog,v 1.100 2008/05/11 02:53:27 solar Exp $
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.
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_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.5.1-src.tar.gz 4357002 RMD160 c90bfa5b1bbc7dc54429e4fe18b6f77a9ad1c18b SHA1 53d64b0a65e7dd231c79297ebc79608780bb7eea SHA256 691620f7f31cbc551158111080861bc05e4a86c29932232334c74787073b0c94
EBUILD tcl-8.4.15.ebuild 3560 RMD160 49a53e889d7c174a6fd01775e0790eb06c92744a SHA1 367a11d5ee78854bb53863c44766b416bbe477b0 SHA256 a811a349d521534befa629efb7335994b46fb0b0e59b0b4b52bfd73bd82fa80f
EBUILD tcl-8.4.18.ebuild 3658 RMD160 c5f1e67c0d6155b5794bc78998f0ab65b861a251 SHA1 25a869733f8aa45df3740bb15b91904e374a3eb5 SHA256 5b3fd5a2703258376a60ce0703ff4a985cad3e6d551d598d4068390c44fd6442
EBUILD tcl-8.5.1.ebuild 3220 RMD160 9c943eaca37d1f346560d3aae3c5578595605afe SHA1 2548682abcd66192e8fbe2b1fcec5ccc9e969a01 SHA256 24a0f043768096f6c84cc060061bc6e7a13b531f7ae127190adf8a202a97f7d5
MISC ChangeLog 13115 RMD160 01b1d106575e995ac2ff8629d79aed7f2bde0dbc SHA1 ec31cb881e1d9cc03cab7edc946525a3aa607921 SHA256 3df63a58b9b3492a989db3d1795e1ec44abbeb1ff4b11e73caf00449c5712e71
MISC metadata.xml 264 RMD160 6318855997b3e957f4ad5c59677534993e352c34 SHA1 19fe5fc86133d09d7fcb0b2ce44054eff4fff028 SHA256 01ce19dabf2e53a73d86e4b16f653c6cd2b6c9aca1b79ec095f353315c8b84ee
# 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.8 2007/08/25 22:58:14 vapier Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
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.8 2008/05/11 02:53:27 solar Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
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.5.1.ebuild,v 1.1 2008/02/16 04:43:07 matsuu Exp $
WANT_AUTOCONF=latest
WANT_AUTOMAKE=latest
inherit autotools eutils 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 ~sparc-fbsd ~x86 ~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() {
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
}