# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-tcltk/tclx/tclx-8.3.ebuild,v 1.2 2002/08/16 21:48:13 george Exp $

DESCRIPTION="readline extension to TCL"

HOMEPAGE="http://tclreadline.sf.net/"
SRC_URI="http://umn.dl.sourceforge.net/sourceforge/tclreadline/${PN}-${PV}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="x86"

DEPEND="=dev-lang/tcl-8.3*
         sys-libs/readline"
RDEPEND=${DEPEND}
S=${WORKDIR}/${PN}-${PV}

src_compile() {
	cd ${S}
	./configure --host=${CHOST} \
		--prefix=/usr \
		--mandir=/usr/share/man \
		|| die
	emake CFLAGS="${CFLAGS}" || die
}

src_install () {
	echo "installing tclreadline"
	make DESTDIR=${D} install
}