new package: ngspice
This commit is contained in:
parent
fecd26227d
commit
d2c703c5f7
10
packages/ngspice/build.sh
Normal file
10
packages/ngspice/build.sh
Normal file
@ -0,0 +1,10 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://ngspice.sourceforge.net/
|
||||
TERMUX_PKG_DESCRIPTION="A mixed-level/mixed-signal circuit simulator"
|
||||
TERMUX_PKG_LICENSE="BSD 3-Clause, LGPL-2.1"
|
||||
TERMUX_PKG_LICENSE_FILE="COPYING"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=35
|
||||
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/ngspice/ngspice-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=c1b7f5c276db579acb3f0a7afb64afdeb4362289a6cab502d4ca302d6e5279ec
|
||||
TERMUX_PKG_DEPENDS="libc++"
|
||||
TERMUX_PKG_GROUPS="science"
|
11
packages/ngspice/src-frontend-com_shell.c.patch
Normal file
11
packages/ngspice/src-frontend-com_shell.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/frontend/com_shell.c
|
||||
+++ b/src/frontend/com_shell.c
|
||||
@@ -14,7 +14,7 @@
|
||||
#ifdef _WIN32
|
||||
#define SHELL "cmd /k"
|
||||
#else
|
||||
-#define SHELL "/bin/csh"
|
||||
+#define SHELL "@TERMUX_PREFIX@/bin/sh"
|
||||
#endif
|
||||
|
||||
/* Fork a shell. */
|
11
packages/ngspice/src-frontend-inp.c.patch
Normal file
11
packages/ngspice/src-frontend-inp.c.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/src/frontend/inp.c
|
||||
+++ b/src/frontend/inp.c
|
||||
@@ -1653,7 +1653,7 @@
|
||||
if (Def_Editor && *Def_Editor)
|
||||
editor = Def_Editor;
|
||||
else
|
||||
- editor = "/usr/bin/vi";
|
||||
+ editor = "@TERMUX_PREFIX@/bin/vi";
|
||||
}
|
||||
}
|
||||
int len = snprintf(buf, BSIZE_SP - 1, "%s %s", editor, filename);
|
15
packages/ngspice/src-frontend-parser-complete.c.patch
Normal file
15
packages/ngspice/src-frontend-parser-complete.c.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/src/frontend/parser/complete.c
|
||||
+++ b/src/frontend/parser/complete.c
|
||||
@@ -213,10 +213,12 @@
|
||||
lcomp = buf;
|
||||
if (*buf == cp_til) { /* User name completion... */
|
||||
buf++;
|
||||
+#ifndef __ANDROID__
|
||||
while ((pw = getpwent()) != NULL)
|
||||
if (prefix(buf, pw->pw_name))
|
||||
wl = wl_cons(copy(pw->pw_name), wl);
|
||||
(void) endpwent();
|
||||
+#endif
|
||||
return (wl);
|
||||
}
|
||||
} else {
|
13
packages/ngspice/src-include-ngspice-defines.h.patch
Normal file
13
packages/ngspice/src-include-ngspice-defines.h.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/src/include/ngspice/defines.h
|
||||
+++ b/src/include/ngspice/defines.h
|
||||
@@ -82,8 +82,8 @@
|
||||
#define DIR_TERM '/'
|
||||
#define DIR_CWD "."
|
||||
|
||||
-#define TEMPFORMAT "/tmp/%s%d"
|
||||
-#define TEMPFORMAT2 "/tmp/%s%d_%d"
|
||||
+#define TEMPFORMAT "@TERMUX_PREFIX@/tmp/%s%d"
|
||||
+#define TEMPFORMAT2 "@TERMUX_PREFIX@/tmp/%s%d_%d"
|
||||
#define SYSTEM_PLOT5LPR "lpr -P%s -g %s"
|
||||
#define SYSTEM_PSLPR "lpr -P%s %s"
|
||||
#define SYSTEM_MAIL "Mail -s \"%s (%s) Bug Report\" %s"
|
Loading…
Reference in New Issue
Block a user