# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="NGSpice - The Next Generation Spice (Circuit Emulator)" SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz" HOMEPAGE="http://ngspice.sourceforge.net" SLOT="0" IUSE="debug readline" LICENSE="BSD GPL-2" KEYWORDS="~amd64 ~ppc ~x86" DEPEND=">=sys-libs/glibc-2.1.3 readline? ( >=sys-libs/readline-5.0 )" src_compile() { econf \ $(use_with debug) \ $(use_with readline) \ || die emake || die } src_install () { local infoFile for infoFile in doc/ngspice.info*; do echo 'INFO-DIR-SECTION EDA' >> ${infoFile} echo 'START-INFO-DIR-ENTRY' >> ${infoFile} echo '* NGSPICE: (ngspice). Electronic Circuit Simulator.' >> ${infoFile} echo 'END-INFO-DIR-ENTRY' >> ${infoFile} done make DESTDIR=${D} install || die dodoc COPYING COPYRIGHT CREDITS ChangeLog README }