summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2017-12-27 12:30:21 +0100
committerMarek Szuba <marecki@gentoo.org>2017-12-27 13:01:46 +0100
commitc81f0b34a260766f971f20c2207f8d834a4a6a40 (patch)
tree33ab1577c3d6d8cb28bee72f19aee78dc4819056 /sci-electronics/ngspice/ngspice-27.ebuild
parentsci-misc/boinc: Update icon cache if icons are installed/removed (diff)
downloadgentoo-c81f0b34a260766f971f20c2207f8d834a4a6a40.tar.gz
gentoo-c81f0b34a260766f971f20c2207f8d834a4a6a40.tar.bz2
gentoo-c81f0b34a260766f971f20c2207f8d834a4a6a40.zip
sci-electronics/ngspice: bump to version 27 and EAPI 6
Major changes: * there is now a proper optional dependency on sci-libs/fftw, controlled by USE=fftw; * enabled OpenMP support, controlled by USE=openmp; * SENSdebug compiles again so it is now included in USE=debug; * the manual is only installed if USE=doc is set; * tests can now be run properly. At present two of them ("empty" and "resume", both in regression/misc/) fail, however it is only because of excessive output from the executable so it should be easy to fix. Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'sci-electronics/ngspice/ngspice-27.ebuild')
-rw-r--r--sci-electronics/ngspice/ngspice-27.ebuild99
1 files changed, 99 insertions, 0 deletions
diff --git a/sci-electronics/ngspice/ngspice-27.ebuild b/sci-electronics/ngspice/ngspice-27.ebuild
new file mode 100644
index 00000000000..c4b3ec1f76c
--- /dev/null
+++ b/sci-electronics/ngspice/ngspice-27.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="The Next Generation Spice (Electronic Circuit Simulator)"
+SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz
+ doc? ( mirror://sourceforge/ngspice/${P}-manual.pdf )"
+HOMEPAGE="http://ngspice.sourceforge.net"
+LICENSE="BSD GPL-2"
+
+SLOT="0"
+IUSE="X debug doc fftw openmp readline"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x64-macos"
+
+DEPEND="X? ( x11-libs/libICE
+ x11-libs/libXaw
+ x11-libs/libXext
+ x11-libs/libXmu )
+ fftw? ( sci-libs/fftw:3.0 )"
+RDEPEND="${DEPEND}
+ X? ( sci-visualization/xgraph )"
+
+DOCS=(
+ ANALYSES
+ AUTHORS
+ BUGS
+ ChangeLog
+ DEVICES
+ NEWS
+ README
+ Stuarts_Poly_Notes
+)
+
+PATCHES=(
+ "${FILESDIR}"/${P}-autoconf_fftw3.patch
+ "${FILESDIR}"/${P}-split_terminfo.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if use debug ; then
+ myconf="--enable-debug \
+ --enable-ftedebug \
+ --enable-cpdebug \
+ --enable-sensdebug \
+ --enable-asdebug \
+ --enable-stepdebug \
+ --enable-pzdebug"
+ else
+ myconf="--disable-debug \
+ --disable-ftedebug \
+ --disable-cpdebug \
+ --disable-sensdebug \
+ --disable-asdebug \
+ --disable-stepdebug \
+ --disable-pzdebug"
+ fi
+ # As of December 2017, these do not compile
+ myconf="${myconf}
+ --disable-blktmsdebug \
+ --disable-smltmsdebug"
+
+ econf \
+ ${myconf} \
+ --enable-xspice \
+ --enable-cider \
+ --enable-ndev \
+ --disable-xgraph \
+ --disable-dependency-tracking \
+ --disable-rpath \
+ $(use_enable openmp) \
+ $(use_with X x) \
+ $(use_with fftw fftw3) \
+ $(use_with readline)
+}
+
+# These will need to be looked at some day:
+# --enable-adms
+# --enable-nodelimiting
+# --enable-predictor
+# --enable-newtrunc
+
+src_install() {
+ default
+
+ # We don't need ngmakeidx to be installed
+ rm -f "${D}"/usr/bin/ngmakeidx
+ rm -f "${D}"/usr/share/man/man1/ngmakeidx.1
+
+ use doc && dodoc "${DISTDIR}"/${P}-manual.pdf
+}