aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortulku <tulku@32389bae-6d03-0410-99cf-db05cde120eb>2006-08-04 03:16:27 +0000
committertulku <tulku@32389bae-6d03-0410-99cf-db05cde120eb>2006-08-04 03:16:27 +0000
commit3712c28455e022b6b2130d6e5dcdbc5d920d3ea2 (patch)
treebaa0be53d97ccae21a0aac3db0778b5816f25ee2
parentNew ebuild for gerbv-1.0.2 (diff)
downloadsci-3712c28455e022b6b2130d6e5dcdbc5d920d3ea2.tar.gz
sci-3712c28455e022b6b2130d6e5dcdbc5d920d3ea2.tar.bz2
sci-3712c28455e022b6b2130d6e5dcdbc5d920d3ea2.zip
Added xspice and X use flag. See bug 140402
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@264 32389bae-6d03-0410-99cf-db05cde120eb
-rw-r--r--sci-electronics/ng-spice-rework/ChangeLog90
-rw-r--r--sci-electronics/ng-spice-rework/Manifest36
-rw-r--r--sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r23
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch37
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch12
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch26
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch40
-rw-r--r--sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch79
-rw-r--r--sci-electronics/ng-spice-rework/metadata.xml9
-rw-r--r--sci-electronics/ng-spice-rework/ng-spice-rework-17-r2.ebuild71
10 files changed, 403 insertions, 0 deletions
diff --git a/sci-electronics/ng-spice-rework/ChangeLog b/sci-electronics/ng-spice-rework/ChangeLog
new file mode 100644
index 000000000..f85054f78
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/ChangeLog
@@ -0,0 +1,90 @@
+# ChangeLog for sci-electronics/ng-spice-rework
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ng-spice-rework/ChangeLog,v 1.14 2006/07/02 15:06:13 calchan Exp $
+
+*ng-spice-rework-17-r2 (04 Aug 2006)
+
+ 04 Aug 2006; Lucas Chiesa <lucas.chiesa@gmail.com> ng-spice-rework-17-r2.ebuild:
+ Added xspice and X use flag. Added --enable-intnoise to econf. Modified dependencies
+ to work with X use flag.
+
+ 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/ng-spice-rework/Manifest b/sci-electronics/ng-spice-rework/Manifest
new file mode 100644
index 000000000..a93c7d3cd
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/Manifest
@@ -0,0 +1,36 @@
+AUX ng-spice-rework-15.gcc-3.4.patch 804 RMD160 d5dff5f8e39d828b6eb189dc6fe84141628c9f43 SHA1 f8e5e6956315959e0016c7252ace1996b720ecdf SHA256 788ab5054992038777aafd2dad2fe9307f9352c7d9600e91dd1aa7e273870a2a
+MD5 c9ab994f230b3c02ffca2d9d02e7d33b files/ng-spice-rework-15.gcc-3.4.patch 804
+RMD160 d5dff5f8e39d828b6eb189dc6fe84141628c9f43 files/ng-spice-rework-15.gcc-3.4.patch 804
+SHA256 788ab5054992038777aafd2dad2fe9307f9352c7d9600e91dd1aa7e273870a2a files/ng-spice-rework-15.gcc-3.4.patch 804
+AUX ng-spice-rework-com_let.patch 504 RMD160 cba8324b3a157936f9014f1d4aabbf8051c4d415 SHA1 14763d9a1bfcf6269b9b5aee36b30dd36a2b2157 SHA256 37b61f085883fe53896c04bbad22c4134dc47ad62697ba5c55674c3d2f6418a8
+MD5 8e6c0b550f83239d57f566eaf99c7e84 files/ng-spice-rework-com_let.patch 504
+RMD160 cba8324b3a157936f9014f1d4aabbf8051c4d415 files/ng-spice-rework-com_let.patch 504
+SHA256 37b61f085883fe53896c04bbad22c4134dc47ad62697ba5c55674c3d2f6418a8 files/ng-spice-rework-com_let.patch 504
+AUX ng-spice-rework-numparam.patch 1335 RMD160 b181c90de971e08c931d03cb14a91263fc7585da SHA1 ce1b75c38e7d2d46472adae70bdf6c85a08c4dc9 SHA256 85d93abd480187e5ab62544b37067ec3910beb4e674c6afe64e901c58cc65be0
+MD5 9c454830eb554090989af6b37825e0ba files/ng-spice-rework-numparam.patch 1335
+RMD160 b181c90de971e08c931d03cb14a91263fc7585da files/ng-spice-rework-numparam.patch 1335
+SHA256 85d93abd480187e5ab62544b37067ec3910beb4e674c6afe64e901c58cc65be0 files/ng-spice-rework-numparam.patch 1335
+AUX ng-spice-rework-pipemode.patch 1462 RMD160 466a50ed92c0c8bd922a5e270ce5cc73097a0ae4 SHA1 7f7362e98a226698c6ce3a93a5c971d4cce54d81 SHA256 6cbe5d9b8ab667e628a2d98242457b864c1951067327da1c1e491a7af25ebb2b
+MD5 e354e1af1ad9d7d634ad8cdeeb284c92 files/ng-spice-rework-pipemode.patch 1462
+RMD160 466a50ed92c0c8bd922a5e270ce5cc73097a0ae4 files/ng-spice-rework-pipemode.patch 1462
+SHA256 6cbe5d9b8ab667e628a2d98242457b864c1951067327da1c1e491a7af25ebb2b files/ng-spice-rework-pipemode.patch 1462
+AUX ng-spice-rework-postscript.patch 2842 RMD160 47c3187efa6f60f30b1c32b39e5a188b0f62d29a SHA1 1fb74659001b079c966d5f0fb5c53e5bc8cf9560 SHA256 ccc80d63df56e7d501437b63918ff68e92f08041685a91b471b74835a7c87604
+MD5 1fd91e68ec6e9ed3a1639bc3e2c04fd0 files/ng-spice-rework-postscript.patch 2842
+RMD160 47c3187efa6f60f30b1c32b39e5a188b0f62d29a files/ng-spice-rework-postscript.patch 2842
+SHA256 ccc80d63df56e7d501437b63918ff68e92f08041685a91b471b74835a7c87604 files/ng-spice-rework-postscript.patch 2842
+DIST ng-spice-rework-17.tar.gz 5919637 RMD160 2345cbdb608bfb182d33c1a6497408b22acffb77 SHA1 5ce17a6dff309fae069e0b1e7309eb1c16b4671b SHA256 58ec02a0ab48369724c9e98f9a6aa3e0f400ae7b361ba194f4bf06d1420f4496
+EBUILD ng-spice-rework-17-r2.ebuild 1773 RMD160 f608eb10bdf1ff53ddaa40be15eb897b82674d4c SHA1 37773d217f14aad61d802613990f950ac5a07e61 SHA256 f84c1a755ffc5636dc022f8a0ffd569a4965167b0e686683575471d5b984bbba
+MD5 404f91fcea4ea69d0b7a6e71858fc102 ng-spice-rework-17-r2.ebuild 1773
+RMD160 f608eb10bdf1ff53ddaa40be15eb897b82674d4c ng-spice-rework-17-r2.ebuild 1773
+SHA256 f84c1a755ffc5636dc022f8a0ffd569a4965167b0e686683575471d5b984bbba ng-spice-rework-17-r2.ebuild 1773
+MISC ChangeLog 2941 RMD160 260c3a58cadfb25edfb810d851cf9b8c6a7fac61 SHA1 3688427168161950efc79c0a8458d08b3807f859 SHA256 0de63603350dbad4dbd4cad16421387b468bd373b67a707761c478f813456d21
+MD5 6f8ca7c53bd5aee698d8611aaa973a86 ChangeLog 2941
+RMD160 260c3a58cadfb25edfb810d851cf9b8c6a7fac61 ChangeLog 2941
+SHA256 0de63603350dbad4dbd4cad16421387b468bd373b67a707761c478f813456d21 ChangeLog 2941
+MISC metadata.xml 361 RMD160 6a0aea151a531b83b4df35307363793de698bc16 SHA1 3e5c1bc6ec70c652533c17535a248e06577be702 SHA256 0cb29147232be6569c365b9e694962c7b606a81ce4c4ce7b404a937378a1d0b8
+MD5 921fcc44ad34d71c06a40e571dcf2d86 metadata.xml 361
+RMD160 6a0aea151a531b83b4df35307363793de698bc16 metadata.xml 361
+SHA256 0cb29147232be6569c365b9e694962c7b606a81ce4c4ce7b404a937378a1d0b8 metadata.xml 361
+MD5 3ae6317642f0e94a7abced651296d868 files/digest-ng-spice-rework-17-r2 259
+RMD160 076219722d64354cee58fda4b3c83d5c4902b1e2 files/digest-ng-spice-rework-17-r2 259
+SHA256 b0c80b0c2fd1c736600c67d593954cd2312944139ae0d6f4f00b3a08529c4f79 files/digest-ng-spice-rework-17-r2 259
diff --git a/sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r2 b/sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r2
new file mode 100644
index 000000000..6f72fd102
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/digest-ng-spice-rework-17-r2
@@ -0,0 +1,3 @@
+MD5 abe283dea98b913a2122f085076865b1 ng-spice-rework-17.tar.gz 5919637
+RMD160 2345cbdb608bfb182d33c1a6497408b22acffb77 ng-spice-rework-17.tar.gz 5919637
+SHA256 58ec02a0ab48369724c9e98f9a6aa3e0f400ae7b361ba194f4bf06d1420f4496 ng-spice-rework-17.tar.gz 5919637
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch
new file mode 100644
index 000000000..cd9f6ba49
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-15.gcc-3.4.patch
@@ -0,0 +1,37 @@
+--- 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;
+-}
+-
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch
new file mode 100644
index 000000000..2fc7626e1
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-com_let.patch
@@ -0,0 +1,12 @@
+diff -Nadurp ng-spice-rework-17/src/frontend/com_let.c ng-spice-rework-17-r1/src/frontend/com_let.c
+--- ng-spice-rework-17/src/frontend/com_let.c 2003-12-25 18:30:50.000000000 +0100
++++ ng-spice-rework-17-r1/src/frontend/com_let.c 2006-05-06 23:14:10.000000000 +0200
+@@ -156,7 +156,7 @@ com_let(wordlist *wl)
+ n->v_flags = (t->v_flags | VF_PERMANENT);
+ n->v_length = t->v_length;
+
+- if (!t->v_numdims) {
++ if ((!t->v_numdims)<=1) {
+ n->v_numdims = 1;
+ n->v_dims[0] = n->v_length;
+ } else {
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch
new file mode 100644
index 000000000..744f23557
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-numparam.patch
@@ -0,0 +1,26 @@
+diff -Nadurp ng-spice-rework-17/src/frontend/numparam/general.h ng-spice-rework-17-r1/src/frontend/numparam/general.h
+--- ng-spice-rework-17/src/frontend/numparam/general.h 2005-04-24 23:18:02.000000000 +0200
++++ ng-spice-rework-17-r1/src/frontend/numparam/general.h 2006-05-06 23:07:39.000000000 +0200
+@@ -136,7 +136,7 @@ Type(Pchar, char AT)
+ #define Str(n,a) char a[n+3]={0,0,(char)n} /* n<255 ! */
+ #define Sini(s) sini(s,sizeof(s)-4)
+
+-Cconst(Maxstr,2004) /* was 255, string maxlen, may be up to 32000 or so */
++Cconst(Maxstr,32004) /* was 255, string maxlen, may be up to 32000 or so */
+
+ typedef char string[258];
+
+diff -Nadurp ng-spice-rework-17/src/frontend/numparam/numparam.h ng-spice-rework-17-r1/src/frontend/numparam/numparam.h
+--- ng-spice-rework-17/src/frontend/numparam/numparam.h 2005-05-29 03:18:20.000000000 +0200
++++ ng-spice-rework-17-r1/src/frontend/numparam/numparam.h 2006-05-06 23:06:37.000000000 +0200
+@@ -28,8 +28,8 @@ Cconst(Llen,1000)
+ typedef char str20 [24];
+ typedef char str80 [84];
+
+-Cconst(Maxline, 1000) /* size of initial unexpanded circuit code */
+-Cconst(Maxckt, 5000) /* size of expanded circuit code */
++Cconst(Maxline, 10000) /* size of initial unexpanded circuit code */
++Cconst(Maxckt, 30000) /* size of expanded circuit code */
+
+
+ typedef Pchar auxtable; /* dummy */
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch
new file mode 100644
index 000000000..871355f6c
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-pipemode.patch
@@ -0,0 +1,40 @@
+diff -Nadurp ng-spice-rework-17/src/main.c ng-spice-rework-17-r1/src/main.c
+--- ng-spice-rework-17/src/main.c 2005-05-31 18:47:48.000000000 +0200
++++ ng-spice-rework-17-r1/src/main.c 2006-05-09 10:24:47.000000000 +0200
+@@ -516,6 +516,7 @@ show_help(void)
+ " -i, --interactive run in interactive mode\n"
+ " -n, --no-spiceinit don't load the local or user's config file\n"
+ " -o, --output=FILE set the outputfile\n"
++ " -p, --pipe run in I/O pipe mode\n"
+ " -q, --completion activate command completion\n"
+ " -r, --rawfile=FILE set the rawfile output\n"
+ " -s, --server run spice as a server process\n"
+@@ -738,6 +739,7 @@ main(int argc, char **argv)
+ {"interactive", 0, 0, 'i'},
+ {"no-spiceinit", 0, 0, 'n'},
+ {"output", 0, 0, 'o'},
++ {"pipe", 0, 0, 'p'},
+ {"completion", 0, 0, 'q'},
+ {"rawfile", 1, 0, 'r'},
+ {"server", 0, 0, 's'},
+@@ -745,7 +747,7 @@ main(int argc, char **argv)
+ {0, 0, 0, 0}
+ };
+
+- c = getopt_long (argc, argv, "hvbc:ihno:qr:st:",
++ c = getopt_long (argc, argv, "hvbc:ihno:pqr:st:",
+ long_options, &option_index);
+ if (c == -1)
+ break;
+@@ -779,6 +781,11 @@ main(int argc, char **argv)
+ iflag = TRUE;
+ break;
+
++ case 'p': /* Pipe mode */
++ iflag = TRUE;
++ istty = TRUE;
++ break;
++
+ case 'n': /* Don't read initialisation file */
+ readinit = FALSE;
+ break;
diff --git a/sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch b/sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch
new file mode 100644
index 000000000..e9e1a67e4
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/files/ng-spice-rework-postscript.patch
@@ -0,0 +1,79 @@
+diff -Nadurp ng-spice-rework-17/src/frontend/postsc.c ng-spice-rework-17-r1/src/frontend/postsc.c
+--- ng-spice-rework-17/src/frontend/postsc.c 2005-05-30 22:28:30.000000000 +0200
++++ ng-spice-rework-17-r1/src/frontend/postsc.c 2006-05-04 09:44:06.000000000 +0200
+@@ -88,14 +88,13 @@ PS_Init(void)
+ scale = 1.0;
+ }
+
++ dispdev->numlinestyles = NUMELEMS(linestyle);
+ if (!cp_getvar("hcopypscolor", VT_STRING, pscolor)) {
+ colorflag = 0;
+ dispdev->numcolors = 2;
+- dispdev->numlinestyles = NUMELEMS(linestyle);
+ } else {
+ colorflag = 1;
+ dispdev->numcolors = 18; /* don't know what the maximum should be */
+- dispdev->numlinestyles = 1;
+ }
+ pscolor[0]='\0';
+
+@@ -118,6 +117,10 @@ PS_Init(void)
+ dispdev->height = 10000;
+ }
+
++ dispdev->width *= 1000;
++ dispdev->height *= 1000;
++ scale *= 1000.0;
++
+ /* The following side effects have to be considered
+ * when the printer is called by com_hardcopy !
+ * gr_init:
+@@ -160,6 +163,7 @@ PS_NewViewport(GRAPH *graph)
+ {
+ int x1,x2,y1,y2;
+ hcopygraphid = graph->graphid;
++ bool nobg;
+
+ if (!(plotfile = fopen(graph->devdep, "w"))) {
+ perror(graph->devdep);
+@@ -180,29 +184,33 @@ PS_NewViewport(GRAPH *graph)
+ graph->absolute.width = dispdev->width;
+ graph->absolute.height = dispdev->height;
+ /* Also done in gr_init, if called . . . */
+- graph->viewportxoff = 8 * fontwidth;
+- graph->viewportyoff = 4 * fontheight;
++ graph->viewportxoff = 8 * graph->fontwidth;
++ graph->viewportyoff = 4 * graph->fontheight;
+
+ xoff = scale * XOFF;
+ yoff = scale * YOFF;
+
+ x1 = 0.75 * 72;
+ y1 = x1;
+- x2 = graph->absolute.width + .75 * 72;
+- y2 = graph->absolute.height + .75 * 72;
++ x2 = graph->absolute.width / 1000 + 0.75 * 72;
++ y2 = graph->absolute.height / 1000 + 0.75 * 72;
+ /* start file off with a % */
+ fprintf(plotfile, "%%!PS-Adobe-3.0 EPSF-3.0\n");
+ fprintf(plotfile, "%%%%Creator: nutmeg\n");
+ fprintf(plotfile, "%%%%BoundingBox: %d %d %d %d\n",x1,y1,x2,y2);
+
+ fprintf(plotfile, "%g %g scale\n", 1.0 / scale, 1.0 / scale);
++ fprintf(plotfile, "1000 setlinewidth\n");
+
+- if (colorflag == 1){ /* set the background to color0 */
++ cp_getvar("hcopypsnobg", VT_BOOL, &nobg);
++ if (!nobg && colorflag == 1){ /* set the background to color0 */
+ PS_SelectColor(0);
+ fprintf(plotfile,"%s setrgbcolor\n",pscolor);
+ fprintf(plotfile,"newpath\n");
+- fprintf(plotfile,"%d %d moveto %d %d lineto\n",x1,y1,x2,y1);
+- fprintf(plotfile,"%d %d lineto %d %d lineto\n",x2,y2,x1,y2);
++ fprintf(plotfile,"%d %d moveto %d %d lineto\n",
++ x1*1000,y1*1000,x2*1000,y1*1000);
++ fprintf(plotfile,"%d %d lineto %d %d lineto\n",
++ x2*1000,y2*1000,x1*1000,y2*1000);
+ fprintf(plotfile,"closepath fill\n");
+ }
+
diff --git a/sci-electronics/ng-spice-rework/metadata.xml b/sci-electronics/ng-spice-rework/metadata.xml
new file mode 100644
index 000000000..97cd3908e
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/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/ng-spice-rework/ng-spice-rework-17-r2.ebuild b/sci-electronics/ng-spice-rework/ng-spice-rework-17-r2.ebuild
new file mode 100644
index 000000000..faf0db346
--- /dev/null
+++ b/sci-electronics/ng-spice-rework/ng-spice-rework-17-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2006 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-17-r1.ebuild,v 1.1 2006/05/12 20:49:03 calchan Exp $
+
+inherit eutils
+
+DESCRIPTION="The Next Generation Spice (Electronic Circuit Simulator)."
+SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz"
+HOMEPAGE="http://ngspice.sourceforge.net"
+LICENSE="BSD GPL-2"
+
+SLOT="0"
+IUSE="readline debug xspice X"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="X? ( || ( (x11-libs/libXaw
+ x11-libs/libX11
+ )
+ virtual/X11
+ ))
+ readline? ( >=sys-libs/readline-5.0 )"
+
+DEPEND="${RDEPEND}
+ X? ( || ( (x11-proto/xproto
+ )
+ virtual/X11
+ ))"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-com_let.patch
+ epatch ${FILESDIR}/${PN}-numparam.patch
+ epatch ${FILESDIR}/${PN}-pipemode.patch
+ epatch ${FILESDIR}/${PN}-postscript.patch
+}
+
+src_compile() {
+ econf \
+ --enable-numparam \
+ --enable-dot-global \
+ --enable-intnoise \
+ --disable-dependency-tracking \
+ $(use_with debug) \
+ $(use_with readline) \
+ $(use_with X) \
+ $(use_enable xspice) || 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
+
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc ANALYSES AUTHORS BUGS ChangeLog DEVICES NEWS \
+ README Stuarts_Poly_Notes || die "failed to install documentation"
+
+ # We don't need makeidx to be installed
+ rm ${D}/usr/bin/makeidx
+}
+
+src_test () {
+ # Bug 108405
+ true
+}