summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-10-24 22:03:36 +0200
committerDavid Seifert <soap@gentoo.org>2020-10-24 22:03:36 +0200
commitbc85b6ad461e344a5a2fee86d7b0f4ff0dd66d86 (patch)
treed199af08462cb8e16712f3476d7ea2b65b2f8308 /sci-electronics/gnetman/files
parentdev-haskell/language-haskell-extract: add forgotten patches (diff)
downloadgentoo-bc85b6ad461e344a5a2fee86d7b0f4ff0dd66d86.tar.gz
gentoo-bc85b6ad461e344a5a2fee86d7b0f4ff0dd66d86.tar.bz2
gentoo-bc85b6ad461e344a5a2fee86d7b0f4ff0dd66d86.zip
sci-electronics/gnetman: Port to EAPI 7
Closes: https://bugs.gentoo.org/707894 Closes: https://bugs.gentoo.org/711354 Closes: https://bugs.gentoo.org/746032 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-electronics/gnetman/files')
-rw-r--r--sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-build-system.patch22
-rw-r--r--sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-fno-common.patch30
-rw-r--r--sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-tcl86.patch4
3 files changed, 54 insertions, 2 deletions
diff --git a/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-build-system.patch b/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-build-system.patch
new file mode 100644
index 000000000000..2801fb592818
--- /dev/null
+++ b/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-build-system.patch
@@ -0,0 +1,22 @@
+--- a/src/batch/configure
++++ b/src/batch/configure
+@@ -72,8 +72,8 @@
+ flex -f -Pvr -o../verilog/vrscan.c ../verilog/vrscan.l
+ swig -tcl8 ../tcl/tclfunc.i
+
+-CFLAGS="-g -Wall -W -Wno-unused-parameter -Wno-unused-function -DDD_DEBUG -I../include -I../spice -I/usr/include/tcl8.4"
+-LIBS="-lpopt -ltcl8.4 -lddutil-dbg"
++CFLAGS="${CFLAGS} -W -Wno-unused-parameter -Wno-unused-function -I../include -I../spice"
++LIBS="-lpopt -ltcl -lddutil"
+
+ echo "CC=$CC
+ CFLAGS=$CFLAGS
+@@ -91,7 +91,7 @@
+ TARGET='../../bin/gnetman'
+
+ $(TARGET): $(OBJECTS)
+- $(CC) $(CFLAGS) $(OBJECTS) $(LIBS) -o $(TARGET)
++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $(TARGET)
+
+ clean:
+ rm -f $(OBJECTS) ../*/*database.[ch] ../*/*scan.c ../*/*parse.c
diff --git a/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-fno-common.patch b/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-fno-common.patch
new file mode 100644
index 000000000000..3e247282b403
--- /dev/null
+++ b/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-fno-common.patch
@@ -0,0 +1,30 @@
+--- a/src/sch/schwrite.c
++++ b/src/sch/schwrite.c
+@@ -21,7 +21,7 @@
+ --------------------------------------------------------------------------------------------------*/
+ #include "sch.h"
+
+-FILE *schFile;
++extern FILE *schFile;
+
+ /*--------------------------------------------------------------------------------------------------
+ Write to schFile.
+--- a/src/spice/cir.h
++++ b/src/spice/cir.h
+@@ -36,5 +36,5 @@
+ extern void cirwarn(char *message, ...);
+
+ /* Attribute symbols */
+-utSym cirGraphicalSym, cirNetSym, cirSpiceTypeSym, cirSpiceTextSym;
++extern utSym cirGraphicalSym, cirNetSym, cirSpiceTypeSym, cirSpiceTextSym;
+
+--- a/src/spice/cirwrite.c
++++ b/src/spice/cirwrite.c
+@@ -29,6 +29,7 @@
+ FILE *cirFile;
+ uint32 cirLineNum;
+ cirRoot cirTheRoot;
++utSym cirGraphicalSym, cirNetSym, cirSpiceTypeSym, cirSpiceTextSym;
+
+ static char *cirLine;
+ static uint32 cirLinePos, cirLineSize, cirLastBreakPos;
diff --git a/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-tcl86.patch b/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-tcl86.patch
index fdb6573990f4..62f61cc5a4b1 100644
--- a/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-tcl86.patch
+++ b/sci-electronics/gnetman/files/gnetman-0.0.1_pre20110124-tcl86.patch
@@ -1,5 +1,5 @@
---- gnetman-0.0.1_pre20110124_orig/src/tcl/tclwrap.c 2012-05-25 07:44:51.000000000 +0200
-+++ gnetman-0.0.1_pre20110124/src/tcl/tclwrap.c 2013-02-24 12:58:51.000000000 +0100
+--- a/src/tcl/tclwrap.c
++++ b/src/tcl/tclwrap.c
@@ -46,7 +46,7 @@
result = Tcl_EvalFile(interp, (char *)fileName) == TCL_OK;
if (!result) {