summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2011-07-15 22:45:58 +0000
committerDenis Dupeyron <calchan@gentoo.org>2011-07-15 22:45:58 +0000
commitacb79e932504823d0bdd05ba1194fec4efec8e15 (patch)
tree9ca491220b51bb05b5fdbfdc9c7d7a5153efb62b /sci-electronics/ngspice
parentVersion bump and remove old. (diff)
downloadhistorical-acb79e932504823d0bdd05ba1194fec4efec8e15.tar.gz
historical-acb79e932504823d0bdd05ba1194fec4efec8e15.tar.bz2
historical-acb79e932504823d0bdd05ba1194fec4efec8e15.zip
Start the move from sci-electronics/ng-spice-rework to sci-electronics/ngspice. Bump to ngspice-23.
Package-Manager: portage-2.1.10.5/cvs/Linux i686
Diffstat (limited to 'sci-electronics/ngspice')
-rw-r--r--sci-electronics/ngspice/ChangeLog132
-rw-r--r--sci-electronics/ngspice/Manifest6
-rw-r--r--sci-electronics/ngspice/files/ngspice-23-flags.patch40
-rw-r--r--sci-electronics/ngspice/metadata.xml9
-rw-r--r--sci-electronics/ngspice/ngspice-23.ebuild97
5 files changed, 284 insertions, 0 deletions
diff --git a/sci-electronics/ngspice/ChangeLog b/sci-electronics/ngspice/ChangeLog
new file mode 100644
index 000000000000..a346fc13a868
--- /dev/null
+++ b/sci-electronics/ngspice/ChangeLog
@@ -0,0 +1,132 @@
+# ChangeLog for sci-electronics/ngspice
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ngspice/ChangeLog,v 1.1 2011/07/15 22:45:58 calchan Exp $
+
+*ngspice-23 (15 Jul 2011)
+
+ 15 Jul 2011; Denis Dupeyron <calchan@gentoo.org> +ngspice-23.ebuild,
+ +files/ngspice-23-flags.patch, +metadata.xml:
+ Start the move from sci-electronics/ng-spice-rework to
+ sci-electronics/ngspice. Bump to ngspice-23.
+
+ 03 Oct 2010; Thomas Beierlein <tomjbe@gentoo.org>
+ ng-spice-rework-21.ebuild:
+ Fix potential buffer overflow (bug #339541).
+
+*ng-spice-rework-21 (24 Jun 2010)
+*ng-spice-rework-18-r1 (24 Jun 2010)
+
+ 24 Jun 2010; Justin Lecher <jlec@gentoo.org> -ng-spice-rework-15.ebuild,
+ -files/ng-spice-rework-15.gcc-3.4.patch, -ng-spice-rework-17-r1.ebuild,
+ -ng-spice-rework-17-r2.ebuild, +ng-spice-rework-18-r1.ebuild,
+ +files/ng-spice-rework-18-nostrip.patch, +ng-spice-rework-21.ebuild,
+ +files/ng-spice-rework-21-nostrip.patch,
+ +files/ng-spice-rework-21-src_makefile.patch,
+ -files/ng-spice-rework-com_let.patch,
+ -files/ng-spice-rework-numparam.patch,
+ -files/ng-spice-rework-pipemode.patch:
+ Version Bump, #270876; Prevend stripping, #252036, removed old versions
+
+*ng-spice-rework-18 (10 Dec 2008)
+
+ 10 Dec 2008; Denis Dupeyron <calchan@gentoo.org>
+ +files/ng-spice-rework-18-src_makefile.patch, +ng-spice-rework-18.ebuild:
+ Version bump, bug #249949.
+
+*ng-spice-rework-17-r2 (26 May 2007)
+
+ 26 May 2007; Denis Dupeyron <calchan@gentoo.org>
+ +ng-spice-rework-17-r2.ebuild:
+ Enabled xspice and intnoise after testing them, which closes bug #140402.
+ Added optional ngspice and xspice documentation. Fixed X dependencies and
+ made them optional. Fixed collision with external xgraph. Fixed debug
+ messing with compilation optimizations. Made debug even more chatty.
+
+ 31 Jan 2007; Denis Dupeyron <calchan@gentoo.org>
+ ng-spice-rework-9999.ebuild:
+ Fixed KEYWORDS, see bug #160519.
+
+ 05 Sep 2006; Gustavo Zacarias <gustavoz@gentoo.org>
+ ng-spice-rework-17-r1.ebuild:
+ Keyworded ~sparc
+
+ 02 Jul 2006; Denis Dupeyron <calchan@gentoo.org> metadata.xml:
+ Adjusted metadata, see bug #138062.
+
+*ng-spice-rework-17-r1 (12 May 2006)
+
+ 12 May 2006; Denis Dupeyron <calchan@gentoo.org>
+ +ng-spice-rework-17-r1.ebuild:
+ Backported fixes and patches from live cvs ebuild.
+
+ 12 May 2006; Denis Dupeyron <calchan@gentoo.org>
+ ng-spice-rework-9999.ebuild:
+ Changed SourceForge.net cvs to new host, bug #133081.
+
+*ng-spice-rework-9999 (10 May 2006)
+
+ 10 May 2006; Denis Dupeyron <calchan@gentoo.org>
+ +files/ng-spice-rework-com_let.patch,
+ +files/ng-spice-rework-numparam.patch,
+ +files/ng-spice-rework-pipemode.patch,
+ +files/ng-spice-rework-postscript.patch, +ng-spice-rework-9999.ebuild:
+ Added live CVS ebuild. Options numparam and dot-global are enabled.
+ Additional patches for postscript and 'let' command fixes. Patch enabling
+ pipe mode for xcircuit.
+
+ 01 Jan 2006; <plasmaroo@gentoo.org> ng-spice-rework-17.ebuild:
+ Add debug and readline USE flags; bug #106496.
+
+ 28 Dec 2005; <plasmaroo@gentoo.org> ng-spice-rework-17.ebuild:
+ Fix #116936.
+
+ 06 Nov 2005; <plasmaroo@gentoo.org> ng-spice-rework-17.ebuild:
+ Disable tests for ng-spice-rework-17 since the provided suite fails (bug
+ #108405).
+
+*ng-spice-rework-17 (01 Oct 2005)
+
+ 01 Oct 2005; Olivier Fisette <ribosome@gentoo.org>
+ +ng-spice-rework-17.ebuild:
+ New version (fixes bug #90616).
+
+ 17 May 2005; Michael Hanselmann <hansmi@gentoo.org>
+ ng-spice-rework-15.ebuild:
+ Stable on ppc.
+
+ 25 Mar 2005; <plasmaroo@gentoo.org> -ng-spice-rework-14.ebuild:
+ Remove redundant ng-spice-rework-14.
+
+ 15 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org> ng-spice-rework-15.ebuild:
+ added ~amd64 to KEYWORDS. fixes bug #77716.
+
+ 29 Dec 2004; <plasmaroo@gentoo.org> ng-spice-rework-15.ebuild,
+ +files/ng-spice-rework-15.gcc-3.4.patch:
+ Fixing GCC 3.4 compile issues; bug #75901.
+
+*ng-spice-rework-15 (27 Dec 2004)
+
+ 27 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml,
+ +ng-spice-rework-14.ebuild, +ng-spice-rework-15.ebuild:
+ Moved from app-sci/ng-spice-rework to sci-electronics/ng-spice-rework.
+
+ 13 Sep 2004; <plasmaroo@gentoo.org> ng-spice-rework-15.ebuild:
+ Added GNU info INFO-DIR index information; bug #63391.
+
+ 05 Jun 2004; David Holm <dholm@gentoo.org> ng-spice-rework-15.ebuild:
+ Added to ~ppc.
+
+ 19 Apr 2004; Patrick Kursawe <phosphan@gentoo.org>
+ ng-spice-rework-14.ebuild, ng-spice-rework-15.ebuild:
+ Removing S=... with no effect, adding IUSE.
+
+*ng-spice-rework-15 (01 Feb 2004)
+
+ 01 Feb 2004; <plasmaroo@gentoo.org> ng-spice-rework-15.ebuild:
+ Version bump.
+
+*ng-spice-rework-14 (28 Nov 2003)
+
+ 28 Nov 2003; <plasmaroo@gentoo.org> ng-spice-rework-14.ebuild:
+ Initial commit.
+
diff --git a/sci-electronics/ngspice/Manifest b/sci-electronics/ngspice/Manifest
new file mode 100644
index 000000000000..cf0ae4e0d190
--- /dev/null
+++ b/sci-electronics/ngspice/Manifest
@@ -0,0 +1,6 @@
+AUX ngspice-23-flags.patch 1661 RMD160 455d2eae1442851f91076cd064da2adfd0ae943f SHA1 1628f03eeb296cbd98b239707ca3570820e08ce4 SHA256 624a669bc8ad76b51a97ccb3a18de0d4286cc6ceffbbc1f6cc3b0d4a3d8efad1
+DIST ngspice-23.tar.gz 6485536 RMD160 34a5bb0a06e67a9ebe21f7abe8067cd8e793ea9e SHA1 65fa23d1168cb3af7651b990344f763c77bf6132 SHA256 ce9e4eeaf3ddda6f45d80dda80e2b43e942078ef9fe732361940360ffe6995ef
+DIST ngspice23-manual.pdf.gz 1739176 RMD160 286bfa0dc5b38d0d931cd686d9979c0734a17ea7 SHA1 ea92e50eb84f973bf0b364e75d74416cf69291ce SHA256 45501e8482f01cee2627cfdfb702a0dcce1b19725a8ce1f979d82eaea9450e97
+EBUILD ngspice-23.ebuild 2286 RMD160 8c01bff8e8975e11ec2d50d67b039251da2c47b8 SHA1 5d7a46a65469863d95c048814b33fe366e223257 SHA256 2e929309824b8d0d18b5fda2354319678121653b9ad857499e3bcfcab1ddfef7
+MISC ChangeLog 4782 RMD160 35f6613151017b17fef5a88c06c7132f5e9bbf8f SHA1 5ffeee4317059a2e308ba3583f78dc2d0e552789 SHA256 b8c4a60a81531eaaba6561cc3e38d06619429ba1b30c3e700bc70ffdb617401a
+MISC metadata.xml 361 RMD160 6a0aea151a531b83b4df35307363793de698bc16 SHA1 3e5c1bc6ec70c652533c17535a248e06577be702 SHA256 0cb29147232be6569c365b9e694962c7b606a81ce4c4ce7b404a937378a1d0b8
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..97cd3908e320
--- /dev/null
+++ b/sci-electronics/ngspice/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+</pkgmetadata>
diff --git a/sci-electronics/ngspice/ngspice-23.ebuild b/sci-electronics/ngspice/ngspice-23.ebuild
new file mode 100644
index 000000000000..5af2fc096419
--- /dev/null
+++ b/sci-electronics/ngspice/ngspice-23.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ngspice/ngspice-23.ebuild,v 1.1 2011/07/15 22:45:58 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() {
+ epatch "${FILESDIR}"/${P}-flags.patch
+ 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
+}