summaryrefslogtreecommitdiff
path: root/sci-electronics/gnucap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-electronics/gnucap
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-electronics/gnucap')
-rw-r--r--sci-electronics/gnucap/Manifest9
-rw-r--r--sci-electronics/gnucap/gnucap-0.35.20091207.ebuild81
-rw-r--r--sci-electronics/gnucap/metadata.xml16
3 files changed, 106 insertions, 0 deletions
diff --git a/sci-electronics/gnucap/Manifest b/sci-electronics/gnucap/Manifest
new file mode 100644
index 000000000000..056c1131834e
--- /dev/null
+++ b/sci-electronics/gnucap/Manifest
@@ -0,0 +1,9 @@
+DIST gnucap-2009-12-07-models-bsim.tar.gz 4074699 SHA256 17e06676ba16847d426d026fa2878ff432b81169df11c0a7fe4627afdfbb2786 SHA512 4f7caaeab0268df113da726f4fbd5a0f3eff63c325a7c08f0cd10ec727318aff6a51ce81619f0f3e31b87f89a51643cd608cb14ba09a70fb7294df9748ed1db4 WHIRLPOOL 9c775ef60c0174d38e1cb5511a20bd24f513c93c13739031580ebdd17d0b3a6db3817edd09d4fe19be456651b5a1659202973790a79bfddaae31fa0c25305fa5
+DIST gnucap-2009-12-07-models-jspice3-2.5.tar.gz 502564 SHA256 732f95292ed8c6dc2354985a2f2ddb875bfa48ae1ca12fe037aa8c0ddf49e29a SHA512 90d93912d5d000218f43e7b63efcd43473467d7d51c1cee160f3fbe53b0bafd5bdeaf5680e2ca67d3176063ba026352248412d1e266d3f6ed93e731e476d61fe WHIRLPOOL 6ad1b4f01cfd1662d218da3d89ed832ce6d3ba66eac54113fb00daeee127ff9c98ea6a6144a9c4e3f2fb1af97e3bcd7e8bf7435bc86ae4da2bd3428febe5a6d9
+DIST gnucap-2009-12-07-models-ngspice17.tar.gz 4418060 SHA256 cf66e6cae5ad1e47d7702a62b94beb66dd88b2230781ded3c2be1defd90e757c SHA512 0f26b4491531d41f18d35b8cde339e99b593794495346186dac74f72bd3632dfe4690ede50a972c47ae41b2229a62d708ecd28bb8fc04b5b7347a481bca709d5 WHIRLPOOL 763db6c2f810d9567bae8de698a484a83a7e3697b1adf56ef9f075a4bdcf1bc71aaf1ca8d07212b05d7607f7b91c973eb4fc7828a5e3e4d7826fda4ee0ea3bbb
+DIST gnucap-2009-12-07-models-spice3f5.tar.gz 629424 SHA256 4b2880aec340823cb2474e5dbecf99fff238325e3820de22a1392d3d85c3c9ed SHA512 4c16e4bcdd3b4092bd6c89c56421ef9ca85b6aba90d9e244fee03278916c6b5ac1c56ecba62d4a5561ff3d93abc61492c0116ccc350c483128ca792b52fa7155 WHIRLPOOL 70f5583914d68777b79fc7b3ef89849f645553ce252033cd7f8f4a9845063b9d9a378cfb18a58570d8255c6499881abca44eba78bdd82f9b7d1de17e7ae81bd3
+DIST gnucap-2009-12-07.tar.gz 545578 SHA256 f6cd8fc0e0636a1aaa50def5a3db2a667b4fff3cb7a34fa0710753082e74e65e SHA512 c0e8a4f6b66eeff2cf95e9cf2050a25aa08f660de1e4b3e78011998deb93cd4e5b562cdcf5f3beb72e04cb3c7650cde6ae8c81602ffc31f5e333d84e7e3867a9 WHIRLPOOL 57f7dfa291ae75f54fa92c387a35c90f6f30cd08e08de3255936756d0a39e41dd9e94219ced704a19cf12d0bac5fe2c2a71bc41841094787dbb867be04753541
+EBUILD gnucap-0.35.20091207.ebuild 2222 SHA256 a5601db2791e1d6cf20fe6b66f5ea472056b3ee62dce50c3f8fa7afe78272768 SHA512 e60b00af725bb116172b614291f92c43effc705aab47a2fcf91aa8661d09143c17e9299e421b0e97fdd66de5303f4448ff5aa2432713d57f1d38564fae5e10b9 WHIRLPOOL 38b9c3d47a405006874a017782e12633acae6ba5617153fdd51ab48b8a7650d2e62af1d5d3de0fa6adebed50634c57cd3a8fc95f299a020f8bca39c977abb6bf
+MISC ChangeLog 2479 SHA256 66195695b21caf2ca8260e17e75c84f4402f98a5ec97511da6262c3342e6e335 SHA512 d93df58eff598278c36d75883505667ea004e31254fe057888beb8791401c4cbe00559773294dbc869cfb89d372fcdade8c46470efe680087d777cb03c3da9cf WHIRLPOOL ee5bb090bb50fcc72f14dd735877f5a213abfa52ad632c0428cae9d0e524b51bac716b34b4b80f81ef90020b8ae057c6eebd8c4677035ef9b60ac205e2b27f7e
+MISC ChangeLog-2015 8835 SHA256 2af892f805b3219d29a72b18f6a36754c59dc3446535dd97eb8a6226de210de9 SHA512 470df3b47f00eb8035d2a649750c827f302d8a9aa531de8d03bd36ba6823de03da030efbe6be02bbce073a90decbaf4d64616cb5eb6a14d1418011953787f91f WHIRLPOOL 5ffde3046da6b67f67b3a1d1ab00d99fbe378f91e70587f5ffd08c2ef1dcadc194bb72dddb3386fad7dafa821945366db15ad548e3e856f19c99234d5526badd
+MISC metadata.xml 744 SHA256 6c0128a24dd1b54a66f0e124fa1a41415be717e3cb3a8dcf928b7600f6a60c94 SHA512 35f918617232c6986e7aa4461861454a0629840c8fee4e814915eb8e7d44d8d50545dba6f74c12700741e9372515b076a2ce832c9c90d4daba5acf8f0e6a87db WHIRLPOOL c834444dc12400ac6dcd691b538d42bc2d180b031850fb797702070f6c063fcdd31fad1270e296a5be286b57505cb9ca0b6f3ef90f94253380eedea1095d3a50
diff --git a/sci-electronics/gnucap/gnucap-0.35.20091207.ebuild b/sci-electronics/gnucap/gnucap-0.35.20091207.ebuild
new file mode 100644
index 000000000000..ef828018d8f4
--- /dev/null
+++ b/sci-electronics/gnucap/gnucap-0.35.20091207.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="2"
+
+inherit multilib toolchain-funcs flag-o-matic
+
+SNAPSHOTDATE="${P##*.}"
+MY_PV="${PN}-${SNAPSHOTDATE:0:4}-${SNAPSHOTDATE:4:2}-${SNAPSHOTDATE:6:2}"
+
+DESCRIPTION="GNUCap is the GNU Circuit Analysis Package"
+SRC_URI="http://www.gnucap.org/devel/${MY_PV}.tar.gz
+ http://www.gnucap.org/devel/${MY_PV}-models-bsim.tar.gz
+ http://www.gnucap.org/devel/${MY_PV}-models-jspice3-2.5.tar.gz
+ http://www.gnucap.org/devel/${MY_PV}-models-ngspice17.tar.gz
+ http://www.gnucap.org/devel/${MY_PV}-models-spice3f5.tar.gz"
+HOMEPAGE="http://www.gnucap.org/"
+
+IUSE="examples"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc x86"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_PV}"
+
+src_prepare() {
+ # No need to install COPYING and INSTALL
+ sed -i \
+ -e 's: COPYING INSTALL::' \
+ -e 's:COPYING history INSTALL:history:' \
+ doc/Makefile.in || die "sed failed"
+
+ if ! use examples ; then
+ sed -i \
+ -e 's:examples modelgen:modelgen:' \
+ Makefile.in || die "sed failed"
+ fi
+
+ sed -i -e 's:CFLAGS = -O2 -g:CPPFLAGS +=:' \
+ -e '/CCFLAGS =/i\CFLAGS += $(CPPFLAGS)' \
+ -e 's:CCFLAGS = $(CFLAGS):CXXFLAGS += $(CPPFLAGS):' \
+ -e 's:LDFLAGS = :LDFLAGS += :' \
+ -e 's:CCFLAGS:CXXFLAGS:' \
+ -e "s:../Gnucap:${S}/src:" \
+ models-*/Make2 || die "sed failed"
+
+ sed -i -e "s:strchr(str2, '|'):const_cast<char*>(strchr(str2, '|')):" \
+ {src,modelgen}/ap_match.cc || die "sed failed"
+
+ tc-export CC CXX
+ append-cxxflags -std=gnu++98
+}
+
+src_compile () {
+ emake || die "Compilation failed"
+ for PLUGIN_DIR in models-* ; do
+ cd "${S}/${PLUGIN_DIR}"
+ emake CC=$(tc-getCC) CCC=$(tc-getCXX) || die "Compilation failed in ${PLUGIN_DIR}"
+ done
+}
+
+src_install () {
+ emake DESTDIR="${D}" install || die "Installation failed"
+ insopts -m0755
+ for PLUGIN_DIR in models-* ; do
+ insinto /usr/$(get_libdir)/gnucap/${PLUGIN_DIR}
+ cd "${S}/${PLUGIN_DIR}"
+ for PLUGIN in */*.so ; do
+ newins ${PLUGIN} ${PLUGIN##*/} \
+ || die "Installation of ${PLUGIN_DIR}/${PLUGIN} failed"
+ done
+ done
+}
+
+pkg_postinst() {
+ elog "Documentation for development releases is now available at :"
+ elog " http://wiki.gnucap.org/dokuwiki/doku.php?id=gnucap:manual"
+}
diff --git a/sci-electronics/gnucap/metadata.xml b/sci-electronics/gnucap/metadata.xml
new file mode 100644
index 000000000000..2f1e74da5b45
--- /dev/null
+++ b/sci-electronics/gnucap/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-electronics@gentoo.org</email>
+ <name>Gentoo Electronics Project</name>
+ </maintainer>
+ <longdescription>
+ Gnucap is a general purpose circuit simulator. It performs nonlinear dc and
+ transient analyses, fourier analysis, and ac analysis. Gnucap is not based on
+ Spice, but some of the models have been derived from the Berkeley models.
+ Unlike Spice, the engine is designed to do true mixed-mode simulation. Most
+ of the code is in place for future support of event driven analog simulation,
+ and true multi-rate simulation.
+ </longdescription>
+</pkgmetadata>