summaryrefslogtreecommitdiff
path: root/sci-electronics/ngspice
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-22 20:28:19 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-22 20:28:19 +0000
commitabaa75b10f899ada8dd05b23cc03205064394bc6 (patch)
treeeca3dd248b73b92013cba00a0fcc1edf2696e19a /sci-electronics/ngspice
parent24fd814c326e282c4321965c31f341dad77e270d (diff)
gentoo resync : 22.01.2021
Diffstat (limited to 'sci-electronics/ngspice')
-rw-r--r--sci-electronics/ngspice/Manifest8
-rw-r--r--sci-electronics/ngspice/files/ngspice-27-autoconf_fftw3.patch26
-rw-r--r--sci-electronics/ngspice/files/ngspice-27-blt_linkage_workaround.patch12
-rw-r--r--sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch16
-rw-r--r--sci-electronics/ngspice/files/ngspice-27-split_terminfo.patch20
-rw-r--r--sci-electronics/ngspice/ngspice-27-r1.ebuild191
-rw-r--r--sci-electronics/ngspice/ngspice-27.ebuild92
7 files changed, 0 insertions, 365 deletions
diff --git a/sci-electronics/ngspice/Manifest b/sci-electronics/ngspice/Manifest
index ee1be738b55e..385bb79b729e 100644
--- a/sci-electronics/ngspice/Manifest
+++ b/sci-electronics/ngspice/Manifest
@@ -1,12 +1,4 @@
-AUX ngspice-27-autoconf_fftw3.patch 959 BLAKE2B bfc7e1eefd9ea591fee57e8e06dae4eddd5e677a6ffe493a274ad1c1ef9a580f05eda805252b837ce95df8bdf083e43beecb864118eee383d70a79fbaec8c0e7 SHA512 880269c6d3f5b1cb8fe7518df4763b5202923cc216481380ff3f4f3e519c181e3027d6310061df58ffac644aaf7255b768e184960c01fe1dd6afbd9ea7c31eec
-AUX ngspice-27-blt_linkage_workaround.patch 305 BLAKE2B d31977f4acbaf9d0f015cb34adf3b27733307ea98dc3c5a0206605546d62b4b207f19f277131bb6f351842e36de3e4df583c6c450d70d9ffee87e160a818ee8d SHA512 2eab1af989d1729d900f75505be0ddad9302705eb10a2aec6966a3abf9446cca66f42972770e2e24a085702bab49976fefa2868f06ffb5651c9197d13dc0bf2a
-AUX ngspice-27-fix_parsing_tcl_commands.patch 448 BLAKE2B d5d3532bca4301aa4c281173cbdf23d33ea61869ea6731d1ebf782e2bca5945a407ae1e566258564d1ab899330b5b7a85fa8c1b2fc79b2214dbf29a2a2c1e5b2 SHA512 ba82cf454d14fbfeb38a4b0942d1e947ca76a54976aec8fcac08913f8a08f12878593bb067ba469ea9a6c818ea6ea372119c500be1841058b840d9928dcf54ad
-AUX ngspice-27-split_terminfo.patch 1081 BLAKE2B 8e44c6fe8447b419986206cc658a255e3c574d81cbbb3079d00f08046978f7a08c8c3e9697fdbf009aa1840df60d0045bd6712351280977cf8e66e3d2d505ab2 SHA512 2e5b7f83045304fbc5b35a9c7aeff3ed343b27d830e4d69bf5b30c631f59965241116afc5d062f3fb16b20710e42897605fc614fecb01997a92c595c47510f66
-DIST ngspice-27-manual.pdf 3117788 BLAKE2B 6e271abc50b0139c4776844ea31176d231e68c70ce34d0daec48aefc5ef5a9eac90a77f3141081f38c6ac8d42bb95ec061bf1d43bfd3a4fb13e4822c2eff4f57 SHA512 ed87764715917e2cd832c49e911a2908dba9907f9f01c933cb7f97a92c7f9ff345bc26a2f0561dd34b2eede6874b6a67b4864abf3dcff127bd0306e778e997b5
-DIST ngspice-27.tar.gz 7372998 BLAKE2B ce8590518fa4eb4292c73c4eaefdd9d0da19bca8120b51daae954a5b9d86f51912d2dccb5a827480caadce8321373d96f045226db4986a78bcc9170f2e46f9a5 SHA512 1714f95ab5716c228a0b39395a742e8b9a823e0e6f7e08625d089541ea786df5fd7b9d2982bcec8431e27ac6ba7603ecc507f9cfcb0a6aacd53f5633f52bd2ea
DIST ngspice-31-manual.pdf 2149244 BLAKE2B 155f7299cbb6d7c7953d8488e11f0bffc3c18097f02194c491174a9af387cda9e87cb79b13a37f402616386e7e82230eb4d41909fe37d900792e48f2f49c71dd SHA512 3322df92791718979a275f2640f82c3417f394a76d27ebf06b46f29a40a1ee3ef57c65a75a7ba67e697b55bd435f81e9ee61c78532f991a2dd6844b4f325eb55
DIST ngspice-31.tar.gz 7250057 BLAKE2B dabc8e1084eba957d6dad06e74f878b51e97dc8bc49b04ee612a6f9eaadde7302450c9ab93e943c4af42197b6bbdca7cae534464ccd2fcd4869b8a48b6f3140d SHA512 448024f398d267911d5d2a48da03eb0d87ba1133ce39d5132bd318dde8ad359d19c7f85f6b4ec88c08b081c9140f7b931334d84173019a22aa2ac98482bd7d5d
-EBUILD ngspice-27-r1.ebuild 4247 BLAKE2B 01ebbb81f14e25e7ea8745ed6ff510223db3af93067fa28adf694a385c4dd26f5966fca08ac47ce968e9ba4181fc571428375a2eca95ddc66e73a13b7d58c6b2 SHA512 4a185c90365f8098001d6f8d0d0226774aed618418ce078e542d0e25ab511681d9294f494f853f6ef03fac2093f54880e998050efc1e67059e8dc720f99c23c9
-EBUILD ngspice-27.ebuild 1791 BLAKE2B be86cecfa0fd6fe392c1925ded82e154098767d0bc008811f872f77935aad13ab969a51b08299e138ba6c9526b07a9845c7d7d3f304241cda0fb99e543336aa6 SHA512 56fab5c12ab31ddfe654ae8c5021caaa80f019044f94c683987f5457e6401015a4a7d67f9f43499f57d3e798abbc7e09625b128085615e34ff3fcd25d9a41ed9
EBUILD ngspice-31-r1.ebuild 4386 BLAKE2B 3d544f5195dd18e9b7d2ec94518157189a6fb4378b3ccf70865a02cecd69d2b43cea643792153fc8f8e25bdb423cd51ab023fe9a99c4e97bd845875e52932b8e SHA512 1397b9bdd333ced89c244b65d3b1d584b8d3ca1974bb74901dd7339bb20a45e0b96154a09e8b4ec346e13a2521d491a15be3dae4accd9b8cd9984e8063e260da
MISC metadata.xml 676 BLAKE2B 9f7a12febdcf08bf12af50524f20250fdb253888ff12045d6033f957f9c6d81fd21ce47a1e6694d9aa48d28fa2b5f9e3cbabc8e54f4e810ea10e5f251ebf3165 SHA512 3a92c343662ecec1091a9bc8e5b4c9569c783e3ddd78027925487a93446d43c863f918de67a8738eea463994ba6c590e693245d36ed4e05e62312cf100a1f2a7
diff --git a/sci-electronics/ngspice/files/ngspice-27-autoconf_fftw3.patch b/sci-electronics/ngspice/files/ngspice-27-autoconf_fftw3.patch
deleted file mode 100644
index d0eec127c572..000000000000
--- a/sci-electronics/ngspice/files/ngspice-27-autoconf_fftw3.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -191,6 +191,10 @@
- AC_ARG_WITH([ngshared],
- [AS_HELP_STRING([--with-ngshared], [Compiles ngspice as shared library (dll)])])
-
-+# --with-fftw3: Use fftw3 for Fourier transforms. Default is "yes".
-+AC_ARG_WITH([fftw3],
-+ [AS_HELP_STRING([--with-fftw3[=yes/no]], [Use fftw3 for Fourier transforms. Default=yes.])])
-+
- # readline and editline cannot both be enabled
- if test "x$with_editline" = xyes; then
- if test "x$with_readline" = xyes; then
-@@ -726,10 +730,12 @@
- # Look for math library:
- AC_CHECK_LIB([m], [sqrt])
- AC_CHECK_HEADERS([float.h limits.h values.h ieeefp.h])
-+if test "x$with_fftw3" != xno; then
- AC_CHECK_HEADERS([fftw3.h])
- AC_CHECK_LIB([fftw3], [fftw_plan_dft_1d],
- [AC_DEFINE([HAVE_LIBFFTW3], [], [Have fft routines in libfftw3])
- LIBS="$LIBS -lfftw3"])
-+fi
-
- # Check for a few mathematical functions:
- AC_CHECK_FUNCS([erfc logb scalb scalbn asinh acosh atanh finite])
diff --git a/sci-electronics/ngspice/files/ngspice-27-blt_linkage_workaround.patch b/sci-electronics/ngspice/files/ngspice-27-blt_linkage_workaround.patch
deleted file mode 100644
index 53415c748d6d..000000000000
--- a/sci-electronics/ngspice/files/ngspice-27-blt_linkage_workaround.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -461,6 +461,9 @@
- AC_MSG_ERROR([Couldn't find BLT])
- fi
- rm -f conftest.tcl
-+
-+ AC_SEARCH_LIBS([Blt_GetVector], [BLT BLT24 BLT25],,
-+ [AC_MSG_ERROR([Couldnt find BLT library.])])
-
- AC_CHECK_LIB([pthread], [pthread_create])
-
diff --git a/sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch b/sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch
deleted file mode 100644
index bad336590dfa..000000000000
--- a/sci-electronics/ngspice/files/ngspice-27-fix_parsing_tcl_commands.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/src/tclspice.c
-+++ b/src/tclspice.c
-@@ -828,10 +828,9 @@
- int i;
- NG_IGNORE(clientData);
- save_interp();
-- /* Looks backwards through the first command and strips the :: part */
-- for (i = strlen(argv[0])-1; i > 0; i--)
-- if (argv[0][i] == *":")
-- argv[0] += i + 1;
-+ char *prefix = strstr(argv[0], "spice::");
-+ if (prefix)
-+ argv[0] = prefix + 7;
- return _run(argc, (char **)argv);
- }
-
diff --git a/sci-electronics/ngspice/files/ngspice-27-split_terminfo.patch b/sci-electronics/ngspice/files/ngspice-27-split_terminfo.patch
deleted file mode 100644
index 09f5ee29a3c9..000000000000
--- a/sci-electronics/ngspice/files/ngspice-27-split_terminfo.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -1016,7 +1016,7 @@
- AC_CHECK_HEADERS([readline/readline.h readline/history.h],
- [AC_DEFINE([HAVE_GNUREADLINE], [], [Define if we have GNU readline])],
- [AC_MSG_ERROR([Couldn't find GNU readline headers.])])
-- AC_SEARCH_LIBS([tputs], [ncurses termcap],
-+ AC_SEARCH_LIBS([tputs], [ncurses termcap tinfo],
- [AC_DEFINE([HAVE_TERMCAP], [], [Define if we have ncurses or termcap])],
- [AC_MSG_ERROR([Found neither ncurses or termcap])])
- AC_CHECK_LIB([readline], [readline],
-@@ -1036,7 +1036,7 @@
- AC_CHECK_HEADERS([editline/readline.h],
- [AC_DEFINE([HAVE_BSDEDITLINE], [1], [Define to enable BSD editline])],
- [AC_MSG_ERROR([Couldn't find BSD editline headers.])])
-- AC_SEARCH_LIBS([tputs], [ncurses termcap],
-+ AC_SEARCH_LIBS([tputs], [ncurses termcap tinfo],
- [AC_DEFINE([HAVE_TERMCAP], [], [Define if we have ncurses or termcap])],
- [AC_MSG_ERROR([Found neither ncurses or termcap])])
- AC_CHECK_LIB([edit], [readline],
diff --git a/sci-electronics/ngspice/ngspice-27-r1.ebuild b/sci-electronics/ngspice/ngspice-27-r1.ebuild
deleted file mode 100644
index ee256f9f179c..000000000000
--- a/sci-electronics/ngspice/ngspice-27-r1.ebuild
+++ /dev/null
@@ -1,191 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools multibuild toolchain-funcs
-
-DESCRIPTION="The Next Generation Spice (Electronic Circuit Simulator)"
-SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz
- doc? ( mirror://sourceforge/ngspice/${P}-manual.pdf )"
-HOMEPAGE="http://ngspice.sourceforge.net"
-LICENSE="BSD GPL-2"
-
-SLOT="0"
-IUSE="X debug doc examples fftw openmp readline +shared tcl"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x64-macos"
-
-DEPEND="sys-libs/ncurses:0=
- X? ( x11-libs/libXaw
- x11-libs/libXt
- x11-libs/libX11 )
- fftw? ( sci-libs/fftw:3.0 )
- readline? ( sys-libs/readline:0= )
- tcl? ( dev-lang/tcl:0
- dev-tcltk/blt )"
-RDEPEND="${DEPEND}
- X? ( sci-visualization/xgraph )"
-
-DOCS=(
- ANALYSES
- AUTHORS
- BUGS
- ChangeLog
- DEVICES
- NEWS
- README
- Stuarts_Poly_Notes
-)
-
-PATCHES=(
- "${FILESDIR}"/${P}-autoconf_fftw3.patch
- "${FILESDIR}"/${P}-blt_linkage_workaround.patch
- "${FILESDIR}"/${P}-fix_parsing_tcl_commands.patch
- "${FILESDIR}"/${P}-split_terminfo.patch
-)
-
-pkg_setup() {
- MULTIBUILD_VARIANTS=( "binaries" )
- use shared && MULTIBUILD_VARIANTS+=( "shared" )
- use tcl && MULTIBUILD_VARIANTS+=( "tcl" )
- use openmp && tc-check-openmp
-}
-
-src_prepare() {
- default
-
- if use tcl; then
- if use examples; then
- find examples/tclspice -type f -iname \*tcl |
- while read s
- do
- sed -i -e 's@../../../src/.libs/libspice.so@libspice.so@g' \
- -e 's@package require BLT@package require Tk\npackage require BLT@g' \
- -e "s@spice::codemodel \(.*\)/\(.*\).cm@spice::codemodel /usr/$(get_libdir)/ngspice/\2.cm@g" \
- "${s}" || die "sed failed"
- done
- fi
- fi
-
- eautoreconf
-}
-
-src_configure() {
- multibuild_copy_sources
- multibuild_foreach_variant ngspice_configure
-}
-
-ngspice_configure() {
- pushd "${BUILD_DIR}"
-
- local myconf
- if use debug; then
- myconf="--enable-debug \
- --enable-ftedebug \
- --enable-cpdebug \
- --enable-sensdebug \
- --enable-asdebug \
- --enable-stepdebug \
- --enable-pzdebug"
- else
- myconf="--disable-debug \
- --disable-ftedebug \
- --disable-cpdebug \
- --disable-sensdebug \
- --disable-asdebug \
- --disable-stepdebug \
- --disable-pzdebug"
- fi
- # As of December 2017, these do not compile
- myconf="${myconf} \
- --disable-blktmsdebug \
- --disable-smltmsdebug"
-
- myconf="${myconf} \
- --enable-xspice \
- --enable-cider \
- --disable-xgraph \
- --disable-rpath \
- $(use_enable openmp) \
- $(use_with fftw fftw3) \
- $(use_with readline)"
-
- if [ "${MULTIBUILD_VARIANT}" == "shared" ]; then
- myconf="${myconf} \
- --with-ngshared"
- elif [ "${MULTIBUILD_VARIANT}" == "tcl" ]; then
- myconf="${myconf} \
- --with-tcl"
- else
- myconf="${myconf} \
- $(use_with X x)"
- fi
-
- econf ${myconf}
-}
-
-src_compile() {
- multibuild_foreach_variant ngspice_compile
-}
-
-ngspice_compile() {
- pushd "${BUILD_DIR}"
- default
-}
-
-src_install() {
- multibuild_foreach_variant ngspice_install
-
- # merge the installations of all variants
- for v in "${MULTIBUILD_VARIANTS[@]}" ; do
- cp -a "${D}_${v}"/* "${D}" || die "Failed to combine multibuild installations"
- rm -rf "${D}_${v}"
- done
-
- use tcl && DOCS+=( README.tcl )
- use doc && DOCS+=( "${DISTDIR}"/${P}-manual.pdf )
-
- default
-
- # We don't need ngmakeidx to be installed
- rm -f "${D}"/usr/bin/ngmakeidx
- rm -f "${D}"/usr/share/man/man1/ngmakeidx.1
-
- if use examples; then
- use tcl || rm -rf examples/tclspice
-
- insinto /usr/share/${PN}
- doins -r examples
- fi
-}
-
-ngspice_install() {
- pushd "${BUILD_DIR}"
-
- emake DESTDIR="${D}_${MULTIBUILD_VARIANT}" install
-
- # Strip shared-library and Tcl-module builds to the bare minimum;
- # all the support files will have been handled by the 'binaries' build.
- if [ "${MULTIBUILD_VARIANT}" != "binaries" ]; then
- rm -rf "${D}_${MULTIBUILD_VARIANT}"/usr/bin{,.debug}
- rm -rf "${D}_${MULTIBUILD_VARIANT}"/usr/share
- rm -rf "${D}_${MULTIBUILD_VARIANT}"/usr/$(get_libdir)/*.la
- rm -rf "${D}_${MULTIBUILD_VARIANT}"/usr/$(get_libdir)/ngspice/*.cm{,.debug}
- fi
-}
-
-src_test() {
- if ! use debug; then
- multibuild_foreach_variant ngspice_test
- else
- # https://sourceforge.net/p/ngspice/bugs/353/
- ewarn
- ewarn "Skipping tests because they are known to fail in debug mode"
- ewarn
- fi
-}
-
-ngspice_test() {
- pushd "${BUILD_DIR}"
- default
-}
diff --git a/sci-electronics/ngspice/ngspice-27.ebuild b/sci-electronics/ngspice/ngspice-27.ebuild
deleted file mode 100644
index 44503aaf4bc2..000000000000
--- a/sci-electronics/ngspice/ngspice-27.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools
-
-DESCRIPTION="The Next Generation Spice (Electronic Circuit Simulator)"
-SRC_URI="mirror://sourceforge/ngspice/${P}.tar.gz
- doc? ( mirror://sourceforge/ngspice/${P}-manual.pdf )"
-HOMEPAGE="http://ngspice.sourceforge.net"
-LICENSE="BSD GPL-2"
-
-SLOT="0"
-IUSE="X debug doc fftw openmp readline"
-KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x64-macos"
-
-DEPEND="X? ( x11-libs/libICE
- x11-libs/libXaw
- x11-libs/libXext
- x11-libs/libXmu )
- fftw? ( sci-libs/fftw:3.0 )"
-RDEPEND="${DEPEND}
- X? ( sci-visualization/xgraph )"
-
-DOCS=(
- ANALYSES
- AUTHORS
- BUGS
- ChangeLog
- DEVICES
- NEWS
- README
- Stuarts_Poly_Notes
-)
-
-PATCHES=(
- "${FILESDIR}"/${P}-autoconf_fftw3.patch
- "${FILESDIR}"/${P}-split_terminfo.patch
-)
-
-src_prepare() {
- default
- eautoreconf
-}
-
-src_configure() {
- local myconf
- if use debug ; then
- myconf="--enable-debug \
- --enable-ftedebug \
- --enable-cpdebug \
- --enable-sensdebug \
- --enable-asdebug \
- --enable-stepdebug \
- --enable-pzdebug"
- else
- myconf="--disable-debug \
- --disable-ftedebug \
- --disable-cpdebug \
- --disable-sensdebug \
- --disable-asdebug \
- --disable-stepdebug \
- --disable-pzdebug"
- fi
- # As of December 2017, these do not compile
- myconf="${myconf}
- --disable-blktmsdebug \
- --disable-smltmsdebug"
-
- econf \
- ${myconf} \
- --enable-xspice \
- --enable-cider \
- --enable-ndev \
- --disable-xgraph \
- --disable-rpath \
- $(use_enable openmp) \
- $(use_with X x) \
- $(use_with fftw fftw3) \
- $(use_with readline)
-}
-
-src_install() {
- default
-
- # We don't need ngmakeidx to be installed
- rm -f "${D}"/usr/bin/ngmakeidx
- rm -f "${D}"/usr/share/man/man1/ngmakeidx.1
-
- use doc && dodoc "${DISTDIR}"/${P}-manual.pdf
-}