diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2011-07-15 22:45:58 +0000 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2011-07-15 22:45:58 +0000 |
commit | d7367c9ab48da4e3aa5fd5462eb29ae785920161 (patch) | |
tree | c24ee834f5ac3e5e57cb3d29fab0d8ba30f170da /sci-electronics | |
parent | Version bump and remove old. (diff) | |
download | gentoo-2-d7367c9ab48da4e3aa5fd5462eb29ae785920161.tar.gz gentoo-2-d7367c9ab48da4e3aa5fd5462eb29ae785920161.tar.bz2 gentoo-2-d7367c9ab48da4e3aa5fd5462eb29ae785920161.zip |
Start the move from sci-electronics/ng-spice-rework to sci-electronics/ngspice. Bump to ngspice-23.
(Portage version: 2.1.10.5/cvs/Linux i686)
Diffstat (limited to 'sci-electronics')
-rw-r--r-- | sci-electronics/ngspice/ChangeLog | 132 | ||||
-rw-r--r-- | sci-electronics/ngspice/files/ngspice-23-flags.patch | 40 | ||||
-rw-r--r-- | sci-electronics/ngspice/metadata.xml | 9 | ||||
-rw-r--r-- | sci-electronics/ngspice/ngspice-23.ebuild | 97 |
4 files changed, 278 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/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 +} |