summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Dupeyron <calchan@gentoo.org>2008-12-10 16:27:25 +0000
committerDenis Dupeyron <calchan@gentoo.org>2008-12-10 16:27:25 +0000
commit94dfa4797ebff52899c1b2c61eabf54ab3392b52 (patch)
tree8af04057ebf3d08a5f7ecc807b0e7dda489c8fb1 /sci-electronics
parentStable for HPPA (bug #208898). (diff)
downloadgentoo-2-94dfa4797ebff52899c1b2c61eabf54ab3392b52.tar.gz
gentoo-2-94dfa4797ebff52899c1b2c61eabf54ab3392b52.tar.bz2
gentoo-2-94dfa4797ebff52899c1b2c61eabf54ab3392b52.zip
Version bump, bug #249949.
(Portage version: 2.1.6/cvs/Linux 2.6.27-gentoo-r4 i686)
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/ng-spice-rework/ChangeLog10
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-18-src_makefile.patch24
-rw-r--r--sci-electronics/ng-spice-rework/ng-spice-rework-18.ebuild106
3 files changed, 138 insertions, 2 deletions
diff --git a/sci-electronics/ng-spice-rework/ChangeLog b/sci-electronics/ng-spice-rework/ChangeLog
index 8c554734fb36..955f1560b5c0 100644
--- a/sci-electronics/ng-spice-rework/ChangeLog
+++ b/sci-electronics/ng-spice-rework/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-electronics/ng-spice-rework
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.17 2007/05/26 20:57:56 calchan Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.18 2008/12/10 16:27:25 calchan Exp $
+
+*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)
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-18-src_makefile.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-18-src_makefile.patch
new file mode 100644
index 000000000000..7b99c9fbcfb0
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-18-src_makefile.patch
@@ -0,0 +1,24 @@
+diff -Ndur ng-spice-rework-18.orig/src/Makefile.am ng-spice-rework-18/src/Makefile.am
+--- ng-spice-rework-18.orig/src/Makefile.am 2008-11-26 10:40:16.000000000 +0100
++++ ng-spice-rework-18/src/Makefile.am 2008-12-09 14:43:19.000000000 +0100
+@@ -127,7 +127,10 @@
+ winmain.o: winmain.c
+ $(COMPILE) -DSIMULATOR -o winmain.o -c $(srcdir)/winmain.c
+
+-spice.lo: main.c
++mkdepdir:
++ test -d $(DEPDIR) || mkdir $(DEPDIR)
++
++spice.lo: main.c mkdepdir
+ $(LTCOMPILE) -DSIMULATOR -MT spice.lo -MD -MP -MF $(DEPDIR)/spice.Tpo -c -o spice.o $<
+ mv -f $(DEPDIR)/spice.Tpo $(DEPDIR)/spice.Plo
+
+@@ -302,7 +305,7 @@
+ $(mkinstalldirs) $(DESTDIR)$(libdir)/spice
+ $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(libdir)/spice
+
+-tclspice.lo: tclspice.c
++tclspice.lo: tclspice.c mkdepdir
+ $(LTCOMPILE) -DTCLSPICE_version="\"$(TCLSPICE_VERSION)\"" -MT tclspice.lo -MD -MP -MF $(DEPDIR)/tclspice.Tpo -c -o tclspice.o $<
+ mv -f $(DEPDIR)/tclspice.Tpo $(DEPDIR)/tclspice.Plo
+
diff --git a/sci-electronics/ng-spice-rework/ng-spice-rework-18.ebuild b/sci-electronics/ng-spice-rework/ng-spice-rework-18.ebuild
new file mode 100644
index 000000000000..64ffddd5cfa5
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/ng-spice-rework-18.ebuild
@@ -0,0 +1,106 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ng-spice-rework-18.ebuild,v 1.1 2008/12/10 16:27:25 calchan Exp $
+
+inherit eutils autotools
+
+DESCRIPTION="The Next Generation Spice (Electronic Circuit Simulator)."
+SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz
+ doc? ( http://users.ece.gatech.edu/~mrichard/Xspice/Xspice_Users_Manual.pdf \
+ http://users.ece.gatech.edu/~mrichard/Xspice/XSpice_SoftwareDesignDoc_Sep92.pdf \
+ http://users.ece.gatech.edu/~mrichard/Xspice/XSpice_InterfaceDesignDoc_Sep92.pdf \
+ http://users.ece.gatech.edu/~mrichard/Xspice/XSpice_CodeModelSubsysSoftwareDesign.pdf \
+ http://users.ece.gatech.edu/~mrichard/Xspice/XSpice_CodeModelSubsysInterfaceDesign.pdf )"
+HOMEPAGE="http://ngspice.sourceforge.net"
+LICENSE="BSD GPL-2"
+
+SLOT="0"
+IUSE="X debug doc 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 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -rf xgraph
+ epatch "${FILESDIR}"/${PN}-postscript.patch
+ epatch "${FILESDIR}"/${P}-src_makefile.patch
+ sed -i -e 's/\-O2//' configure.in || die "sed failed"
+ if use doc ; then
+ cp "${DISTDIR}"/Xspice_Users_Manual.pdf "${S}"
+ cp "${DISTDIR}"/XSpice_SoftwareDesignDoc_Sep92.pdf "${S}"
+ cp "${DISTDIR}"/XSpice_InterfaceDesignDoc_Sep92.pdf "${S}"
+ cp "${DISTDIR}"/XSpice_CodeModelSubsysSoftwareDesign.pdf "${S}"
+ cp "${DISTDIR}"/XSpice_CodeModelSubsysInterfaceDesign.pdf "${S}"
+ fi
+ eautoreconf
+}
+
+src_compile() {
+ 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-intnoise \
+ --enable-xspice \
+ --enable-numparam \
+ --enable-dot-global \
+ --disable-xgraph \
+ --disable-dependency-tracking \
+ $(use_with X x) \
+ $(use_with readline) \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+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"
+
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins doc/ngspice.pdf
+ doins *.pdf
+ fi
+
+ # We don't need makeidx to be installed
+ rm "${D}"/usr/bin/makeidx
+}
+
+src_test () {
+ # Bug 108405
+ true
+}