# ChangeLog for sci-electronics/ng-spice-rework
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.2 2004/12/27 21:04:14 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.3 2004/12/29 15:57:02 plasmaroo Exp $
+
+ 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)
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+MD5 f317f19761af21bea1d8c6ea5255052a ChangeLog 1232
MD5 a11a25807dd08cbe161eedb1b6a5ad09 ng-spice-rework-14.ebuild 647
-MD5 bd46708ab196c551c95069e9dbe3eff7 ChangeLog 1077
+MD5 efe502b2460e37e7d13e81cf7e4d09b1 ng-spice-rework-15.ebuild 1028
MD5 e49bb02132d2cd74ad4e6ee291e102d9 metadata.xml 220
-MD5 a50b259c76cf3ea0a8f3f836d266920e ng-spice-rework-15.ebuild 931
+MD5 c9ab994f230b3c02ffca2d9d02e7d33b files/ng-spice-rework-15.gcc-3.4.patch 804
MD5 419df059e644593b30561622cf904785 files/digest-ng-spice-rework-14 71
MD5 cdcbac36f6d0470a9935636cb8ca3306 files/digest-ng-spice-rework-15 66
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.9.10 (GNU/Linux)
-
-iD8DBQFB0HjUI1lqEGTUzyQRAj3pAKCQejHo/ihnQclhulAc87C9T45HGwCeN2lj
-aY+U4g/10Mg8Qn+nXFKyN7U=
-=1KCa
------END PGP SIGNATURE-----
--- /dev/null
+--- src/frontend/control.c.old 2004-12-29 13:53:16.012519944 +0000
++++ src/frontend/control.c 2004-12-29 13:53:17.683265952 +0000
+@@ -818,6 +818,17 @@
+ return (0); /* va: which value? */
+ }
+
++/* va: This totally frees the control structures */
++void cp_free_control(void)
++{
++ int i;
++
++ for (i=stackp; i>=0; i--) ctl_free(control[i]);
++
++ control[0] = cend[0] = NULL;
++ stackp = 0;
++}
++
+ /* This blows away the control structures... */
+ void
+ cp_resetcontrol(void)
+@@ -878,16 +889,3 @@
+ cend[stackp] = cend[stackp]->co_parent;
+ return;
+ }
+-
+-
+-/* va: This totally frees the control structures */
+-void cp_free_control(void)
+-{
+- int i;
+-
+- for (i=stackp; i>=0; i--) ctl_free(control[i]);
+-
+- control[0] = cend[0] = NULL;
+- stackp = 0;
+-}
+-
# Copyright 1999-2004 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-15.ebuild,v 1.1 2004/12/27 20:05:13 ribosome Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ng-spice-rework-15.ebuild,v 1.2 2004/12/29 15:57:02 plasmaroo Exp $
+
+inherit eutils
DESCRIPTION="NGSpice - The Next Generation Spice (Circuit Emulator)"
SRC_URI="http://www.geda.seul.org/dist/ngspice-rework${PV}.tgz"
DEPEND=">=sys-libs/glibc-2.1.3"
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}.gcc-3.4.patch
+}
+
src_compile() {
econf || die
emake || die