diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2013-01-17 23:22:14 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2013-01-17 23:22:14 +0000 |
commit | 573dce27636cc2565543a068d5c938fe763d95f2 (patch) | |
tree | 36bef2d92386a5f20940708a0c1ebc4d296d02ef | |
parent | version bump (bug #452254) (diff) | |
download | gentoo-2-573dce27636cc2565543a068d5c938fe763d95f2.tar.gz gentoo-2-573dce27636cc2565543a068d5c938fe763d95f2.tar.bz2 gentoo-2-573dce27636cc2565543a068d5c938fe763d95f2.zip |
Version bump.
(Portage version: 2.1.11.43/cvs/Linux x86_64, unsigned Manifest commit)
-rw-r--r-- | sci-electronics/ngspice/ChangeLog | 9 | ||||
-rw-r--r-- | sci-electronics/ngspice/ngspice-25.ebuild | 100 |
2 files changed, 107 insertions, 2 deletions
diff --git a/sci-electronics/ngspice/ChangeLog b/sci-electronics/ngspice/ChangeLog index 256d1c3ea185..c1e27f0e7b44 100644 --- a/sci-electronics/ngspice/ChangeLog +++ b/sci-electronics/ngspice/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-electronics/ngspice -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ngspice/ChangeLog,v 1.5 2012/10/23 17:05:45 flameeyes Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ngspice/ChangeLog,v 1.6 2013/01/17 23:22:14 calchan Exp $ + +*ngspice-25 (17 Jan 2013) + + 17 Jan 2013; Denis Dupeyron <calchan@gentoo.org> +ngspice-25.ebuild: + Version bump. 23 Oct 2012; Diego E. Pettenò <flameeyes@gentoo.org> ngspice-24.ebuild: QA: don't pass -s flag in cflags, as that pre-strips the file. Closes bug diff --git a/sci-electronics/ngspice/ngspice-25.ebuild b/sci-electronics/ngspice/ngspice-25.ebuild new file mode 100644 index 000000000000..eaeb32e3afc5 --- /dev/null +++ b/sci-electronics/ngspice/ngspice-25.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ngspice/ngspice-25.ebuild,v 1.1 2013/01/17 23:22:14 calchan Exp $ + +EAPI="3" + +inherit autotools eutils + +DESCRIPTION="The Next Generation Spice (Electronic Circuit Simulator)." +SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz + mirror://sourceforge/ngspice/${PN}-${PV}-manual.pdf.gz" +HOMEPAGE="http://ngspice.sourceforge.net" +LICENSE="BSD GPL-2" + +SLOT="0" +IUSE="X debug readline" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" + +DEPEND="readline? ( >=sys-libs/readline-5.0 ) + X? ( x11-libs/libXaw + x11-libs/libXt + x11-libs/libX11 + sci-visualization/xgraph )" + +RDEPEND="$DEPEND" + +src_prepare() { + sed -e '/CFLAGS=/s: -s::' -i configure.ac || die "sed failed" + sed -e 's/_CFLAGS -O2/_CFLAGS/' -i configure.ac || die "sed failed" + sed -e 's/LDFLAGS =/LDFLAGS +=/' -i src/xspice/icm/makedefs.in || die "sed failed" + sed -e '/AM_INIT_AUTOMAKE/s:-Werror::' -i configure.ac || die "sed failed" + eautoreconf +} + +src_configure() { + local MYCONF + if use debug ; then + MYCONF="--enable-debug \ + --enable-ftedebug \ + --enable-cpdebug \ + --enable-asdebug \ + --enable-stepdebug \ + --enable-pzdebug" + else + MYCONF="--disable-debug \ + --disable-ftedebug \ + --disable-cpdebug \ + --disable-asdebug \ + --disable-stepdebug \ + --disable-pzdebug" + fi + # Those don't compile + MYCONF="${MYCONF} \ + --disable-sensdebug \ + --disable-blktmsdebug \ + --disable-smltmsdebug" + + econf \ + ${MYCONF} \ + --enable-xspice \ + --enable-cider \ + --enable-ndev \ + --disable-xgraph \ + --disable-dependency-tracking \ + --disable-rpath \ + $(use_with X x) \ + $(use_with readline) +} + +# These will need to be looked at some day: +# --enable-adms +# --enable-nodelimiting +# --enable-predictor +# --enable-newtrunc +# --enable-openmp + +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 + + emake DESTDIR="${D}" install || die "make install failed" + dodoc ANALYSES AUTHORS BUGS ChangeLog DEVICES NEWS \ + README Stuarts_Poly_Notes || die "failed to install documentation" + + insinto /usr/share/doc/${PF} + doins ../${PN}-${PV}-manual.pdf || die "failed to install manual" + + # We don't need ngmakeidx to be installed + rm "${D}"/usr/bin/ngmakeidx +} + +src_test () { + # Bug 108405 + true +} |