summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven J Newbury <steve@snewbury.org.uk>2009-04-07 00:27:19 +0100
committerSteven J Newbury <steve@snewbury.org.uk>2009-04-07 00:27:19 +0100
commite790ec18ca50f5efa7e1bd5dca13e4b116b1f8b2 (patch)
treedbe8a04599b5f5dcb1eba9faeec0aa2e70fb9490 /dev-lang
parentMark dev-db/sqlite-3.6.11 stable on amd64 (diff)
downloadmultilib-portage-e790ec18ca50f5efa7e1bd5dca13e4b116b1f8b2.tar.gz
multilib-portage-e790ec18ca50f5efa7e1bd5dca13e4b116b1f8b2.tar.bz2
multilib-portage-e790ec18ca50f5efa7e1bd5dca13e4b116b1f8b2.zip
Add stable version of dev-lang/tcl
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/tcl/Manifest2
-rw-r--r--dev-lang/tcl/tcl-8.4.18.ebuild125
2 files changed, 127 insertions, 0 deletions
diff --git a/dev-lang/tcl/Manifest b/dev-lang/tcl/Manifest
index 07d8133cb..71850c09e 100644
--- a/dev-lang/tcl/Manifest
+++ b/dev-lang/tcl/Manifest
@@ -5,8 +5,10 @@ AUX tcl-8.4.9-strtod.patch 362 RMD160 90ece8fcccba20cf1bc758133bc072cd515ba090 S
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.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.6-src.tar.gz 4409651 RMD160 1f3c937a5e77ec2fbf79240d385474eed24f8ea5 SHA1 02c57eea35191f027460c6df289179d03f2e9584 SHA256 246d09da115307c60f1c91fcfcef8518952e166de058b6aef7fbcffa76ca150e
+EBUILD tcl-8.4.18.ebuild 3721 RMD160 2089fe8a4058041a7f46f75359c2011873fee230 SHA1 3fe5b07ebb66474638eb7d7a0781f06557f64fa1 SHA256 dc0b8aa09527328dcacec06ae2f3f6a5fcbc221986d9af6ef90afe1208b5c3df
EBUILD tcl-8.4.19.ebuild 3733 RMD160 84a9858740de01cc4f0269a93527ef252c1a9068 SHA1 6804d82bfe6b18686b853292b93f647dbc5f8d53 SHA256 f2d519a3b2afd40ce32a1b04b6516d837f0ce5fd50f7a357232346ed2fe6f710
EBUILD tcl-8.5.6.ebuild 3286 RMD160 b1c526b368f14055d615474c57cf56d412822e62 SHA1 cd5018cd67569b9aa8c27d137d147c3132b5454f SHA256 5a13bcbbb2f3e8223dc30a29c8d46643e79259f3874612817db6f6605089187f
MISC ChangeLog 13507 RMD160 f72b3eadbc756055815d2a75ecd536edab8867f9 SHA1 fc495dc2fd8f3162f838543075b7340d9873ad23 SHA256 b7490f7e53f1cecf0aaa850199ae0dd144b96708ca0cc2a5c40d25e782f1635e
diff --git a/dev-lang/tcl/tcl-8.4.18.ebuild b/dev-lang/tcl/tcl-8.4.18.ebuild
new file mode 100644
index 000000000..f2da9737c
--- /dev/null
+++ b/dev-lang/tcl/tcl-8.4.18.ebuild
@@ -0,0 +1,125 @@
+# 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.1 2008/10/26 11:20:41 mescalinum Exp $
+
+EAPI=2
+
+WANT_AUTOCONF=latest
+WANT_AUTOMAKE=latest
+
+inherit autotools eutils multilib toolchain-funcs multilib-native
+
+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
+}
+
+multilib-native_src_configure_internal() {
+ 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
+}
+
+multilib-native_src_install_internal() {
+ #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
+}