# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/tclspice/tclspice-0.2.17.ebuild,v 1.2 2005/02/16 23:52:46 hansmi Exp $ inherit libtool gnuconfig DESCRIPTION="Spice circuit simulator with TCL scripting language and GUI" HOMEPAGE="http://tclspice.sf.net/" SRC_URI="mirror://sourceforge/tclspice/${P}.tar.gz" IUSE="" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~sparc ~ppc" DEPEND="dev-lang/tk >=dev-tcltk/blt-2.4z >=dev-tcltk/tclreadline-2.1.0" RDEPEND="$DEPEND sys-libs/readline" S=${WORKDIR}/${PN} MAKEOPTS="$MAKEOPTS -j1" # Seems to get out-of-sync and break otherwise src_unpack() { unpack ${A} cd ${S} elibtoolize # Fix an error that happens at least on ppc sed -i -e '/#include / i#include ' \ src/xspice/cmpp/ifs_yacc.y } src_compile() { gnuconfig_update econf --enable-xspice --enable-experimental --with-tcl || die emake tcl || die } src_install() { make DESTDIR=${D} install-tcl || die cd ${S} dodoc README README.Tcl ChangeLog cd src/tcl docinto tcl dodoc ChangeLog README }