# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils IUSE="X" DESCRIPTION="A set of extensions to TCL" HOMEPAGE="http://tclx.sourceforge.net" SRC_URI="mirror://sourceforge/tclx/${PN}${PV}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" DEPEND=">=sys-apps/sed-4 >=dev-lang/tcl-8.4.6 X? ( >=dev-lang/tk-8.4.6 )" S=${WORKDIR}/${PN}${PV} src_compile() { cp configure{,.orig} && sed "s/relid'/relid/" configure.orig > configure local myconf="--enable-shared" econf ${myconf} || die "econf failed" make CFLAGS="${CFLAGS}" || die } src_install() { echo "installing tclx" make DESTDIR=${D} install cd ${S} dodoc ChangeLog README doman doc/*.[n3] }