ChangeLog

# ChangeLog for dev-tcltk/thread
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/thread/ChangeLog,v 1.14 2007/04/10 11:43:58 fmccor Exp $

10 Apr 2007; Ferris McCormick thread-2.6.2.ebuild:
Stable on sparc --- Bug #173645 --- seems OK.

10 Apr 2007; Raúl Porcel thread-2.6.2.ebuild:
ia64 stable wrt bug 173645

10 Apr 2007; Jeroen Roovers thread-2.6.2.ebuild:
Stable for HPPA (bug #173645).

08 Apr 2007; Markus Rothe thread-2.6.2.ebuild:
Stable on ppc64; bug #173645

07 Apr 2007; nixnut thread-2.6.2.ebuild:
Stable on ppc wrt bug 173645

07 Apr 2007; Peter Weller thread-2.6.2.ebuild:
Stable on amd64 wrt bug 173645, restricted test

07 Apr 2007; Markus Ullmann thread-2.6.2.ebuild:
Meh, forgot it... Stable on arm as well ;)

07 Apr 2007; Markus Ullmann thread-2.6.2.ebuild:
Stable on x86

07 Apr 2007; Markus Ullmann -thread-2.6.1.ebuild,
thread-2.6.2.ebuild:
Fix bug #116709

09 Dec 2006; Timothy Redaelli thread-2.6.2.ebuild:
Add ~x86-fbsd keyword

*thread-2.6.2 (08 Jan 2006)

08 Jan 2006; MATSUU Takuto +thread-2.6.2.ebuild:
Version bumped. Bug 117121.

16 Nov 2005; Herbie Hopkins thread-2.6.1.ebuild:
Multilib fix.

03 Jul 2005; MATSUU Takuto thread-2.6.1.ebuild:
Fixed with gdbm cofigure issue. Bug 97738.
Fixed DISCRIPTION. Bug 97739.

*thread-2.6.1 (02 Jul 2005)

02 Jul 2005; MATSUU Takuto +metadata.xml,
+thread-2.6.1.ebuild:
initial ebuild. Bug 97357.

Manifest

DIST thread2.6.2.tar.gz 267344 RMD160 320988e4cd05c8166fb079b612607cf4b5adbcf4 SHA1 60fb5a385f39900a7d21a70d9d4c9f40feb098cc SHA256 7f7b6a10102989f55b57946837e965e307b3dddfc65ac50438422ce937dcff7c
EBUILD thread-2.6.2.ebuild 1364 RMD160 e3f0af0bfb9f539e57d0679f979fea927d4e8943 SHA1 3232c9df1e72d18964550e0653a3701521806a02 SHA256 125219aa4cbf099d3d941c7f032f3bee659514c8596ba541d23387af505ea9a9
MISC ChangeLog 1772 RMD160 dcc4742ab59a8691bd6461da88b63ccebea9869d SHA1 95abf08df46a7af036fb2f81c8f84e55c00016f6 SHA256 117b200d85af68f39cc08e10027f736045232cf3d8f9c009878a193fbde35be7
MISC metadata.xml 158 RMD160 f197c34c7dd71f6025e93436e3f999137928554a SHA1 edb8e5ac668440e92e947fc3dff54484b28c7775 SHA256 62fb2b0a899315973de885234e3931a2f652b343b68f90fe0778378fdca6f290

metadata.xml




tcltk

thread-2.6.2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/thread/thread-2.6.2.ebuild,v 1.13 2007/06/24 23:29:15 vapier Exp $

inherit autotools eutils multilib

DESCRIPTION="the Tcl Thread extension"
HOMEPAGE="http://www.tcl.tk/"
SRC_URI="mirror://sourceforge/tcl/${PN}${PV}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="gdbm"

DEPEND="gdbm? ( sys-libs/gdbm )
dev-lang/tcl"

S=${WORKDIR}/${PN}${PV}

RESTRICT="test"

pkg_setup() {
if ! built_with_use dev-lang/tcl threads ; then
eerror "dev-lang/tcl was not merged with threading enabled."
eerror "please re-emerge dev-lang/tcl with USE=threads"
die "threading not enabled in dev-lang/tcl"
fi
}

src_unpack() {
unpack ${A}
cd "${S}"

# Search for libs in libdir not just exec_prefix/lib
sed -i -e 's:${exec_prefix}/lib:${libdir}:' \
aclocal.m4 || die "sed failed"

sed -i -e "s/relid'/relid/" tclconfig/tcl.m4

eaclocal
eautoconf
}

src_compile() {
econf \
--with-threads \
--with-tclinclude=/usr/include \
--with-tcl="/usr/$(get_libdir)" \
$(use_with gdbm) || die "econf failed"
emake || die "emake failed"
}

src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog README
}