summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sci-electronics/ngspice
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sci-electronics/ngspice')
-rw-r--r--sci-electronics/ngspice/Manifest2
-rw-r--r--sci-electronics/ngspice/files/ngspice-23-flags.patch40
-rw-r--r--sci-electronics/ngspice/metadata.xml12
-rw-r--r--sci-electronics/ngspice/ngspice-26.ebuild103
4 files changed, 157 insertions, 0 deletions
diff --git a/sci-electronics/ngspice/Manifest b/sci-electronics/ngspice/Manifest
new file mode 100644
index 000000000000..04a82ab9da56
--- /dev/null
+++ b/sci-electronics/ngspice/Manifest
@@ -0,0 +1,2 @@
+DIST ngspice-26-manual.pdf 2141771 SHA256 30b4fde001d012b0350aae3ba64892fb2f315d04f6761b95abd79f4b7c4cd85d SHA512 1c160aeef61d8091a6d788677bcf7ea682393cc886d5d535f87bb800cdae4f095cbf1e833babadea481956b904b4bdb688cc18b80d9d6a29cab33a54275abab1 WHIRLPOOL 7e9be918599599da3bd6fc754afdc453e1cc6171cabe2afe05da2be24433b4c1ee46728c29995dc62d04d08f966a441a853aa231b37b55e7bcfd587832dcb5b1
+DIST ngspice-26.tar.gz 6925987 SHA256 51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108 SHA512 eb6a81df90de803c9f7544e8d0de7cc413aac169f69d1dec5cc6d2e667b66d42aede7f14c75bcdd10288be0c2ac07863fd4028b9fe59f2f515d680c2ffa41cab WHIRLPOOL cb356ee817fa00ab4a195c8380445adddf6426b5b08ca7c9af1bd96e6f43f3643bc6e4d2d9a7e4a3f3a79f43aa40b0da08721c2e42365c79b5f2e6bad6aef669
diff --git a/sci-electronics/ngspice/files/ngspice-23-flags.patch b/sci-electronics/ngspice/files/ngspice-23-flags.patch
new file mode 100644
index 000000000000..ad5c231eb2a9
--- /dev/null
+++ b/sci-electronics/ngspice/files/ngspice-23-flags.patch
@@ -0,0 +1,40 @@
+diff -Nadurp ngspice-23.orig//configure.ac ngspice-23/configure.ac
+--- ngspice-23.orig//configure.ac 2011-05-30 12:47:05.000000000 -0600
++++ ngspice-23/configure.ac 2011-07-14 10:47:14.668378976 -0600
+@@ -203,10 +203,10 @@ dnl the above AC_PROG_CC may set CFLAGS
+ if test "$enable_debug" = "no"; then
+ if test "x$GCC" = "xyes"; then
+ AC_MSG_WARN(Removing debugging option!)
+- CFLAGS="$ext_CFLAGS -O2 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls -s"
++ CFLAGS="$ext_CFLAGS -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wimplicit-function-declaration -Wnested-externs -Wold-style-definition -Wredundant-decls"
+ else
+ AC_MSG_WARN(Removing debugging option!)
+- CFLAGS="$ext_CFLAGS -O2"
++ CFLAGS="$ext_CFLAGS"
+ fi
+ else
+ AC_DEFINE(NGDEBUG,1,[Compile with debug info])
+diff -Nadurp ngspice-23.orig//src/xspice/icm/makedefs.in ngspice-23/src/xspice/icm/makedefs.in
+--- ngspice-23.orig//src/xspice/icm/makedefs.in 2011-01-25 11:34:11.000000000 -0700
++++ ngspice-23/src/xspice/icm/makedefs.in 2011-07-14 10:58:25.521002437 -0600
+@@ -41,16 +41,16 @@ endif
+ CMPP = $(top_builddir)/src/xspice/cmpp/cmpp
+
+ # Flags to use when linking shared library
+-LDFLAGS = -shared
++LDFLAGS += -shared
+ ifeq ($(ISMINGW), 1)
+- LDFLAGS = -shared @LDFLAGS@
++ LDFLAGS += -shared @LDFLAGS@
+ endif
+ ifeq "$(strip $(uname))" "Darwin"
+- LDFLAGS = -bundle -flat_namespace -undefined suppress
++ LDFLAGS += -bundle -flat_namespace -undefined suppress
+ endif
+ ifeq "$(strip $(uname))" "SunOS"
+ ifneq "$(CC)" "gcc"
+- LDFLAGS = -G
++ LDFLAGS += -G
+ endif
+ endif
+
diff --git a/sci-electronics/ngspice/metadata.xml b/sci-electronics/ngspice/metadata.xml
new file mode 100644
index 000000000000..627c13b51b87
--- /dev/null
+++ b/sci-electronics/ngspice/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-electronics</herd>
+ <longdescription>
+ Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on
+ three open source software packages: Spice3f5, Cider1b1 and Xspice.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ngspice</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-electronics/ngspice/ngspice-26.ebuild b/sci-electronics/ngspice/ngspice-26.ebuild
new file mode 100644
index 000000000000..484abd9bcdbd
--- /dev/null
+++ b/sci-electronics/ngspice/ngspice-26.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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"
+HOMEPAGE="http://ngspice.sourceforge.net"
+LICENSE="BSD GPL-2"
+
+SLOT="0"
+IUSE="X debug readline"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="sys-libs/ncurses
+ 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"
+ # builds also with ncurses[tinfo] (bug #458128)
+ sed -e 's/ncurses termcap/ncurses termcap tinfo/g' -i configure.ac || die
+ 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 "${DISTDIR}"/${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
+}