summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2011-04-28 15:58:00 +0000
committerThomas Beierlein <tomjbe@gentoo.org>2011-04-28 15:58:00 +0000
commiteadb51445e4e2b41a13e3b28f9dd685fbf274b16 (patch)
tree8ff2e5e67049d53dfeec270dcb09fd6f479e9fda /sci-electronics/gspiceui
parentpunt (diff)
downloadgentoo-2-eadb51445e4e2b41a13e3b28f9dd685fbf274b16.tar.gz
gentoo-2-eadb51445e4e2b41a13e3b28f9dd685fbf274b16.tar.bz2
gentoo-2-eadb51445e4e2b41a13e3b28f9dd685fbf274b16.zip
Fix user manual lookup. Add missing spice models for USE=examples
(Portage version: 2.1.9.46/cvs/Linux x86_64)
Diffstat (limited to 'sci-electronics/gspiceui')
-rw-r--r--sci-electronics/gspiceui/ChangeLog10
-rw-r--r--sci-electronics/gspiceui/files/gspiceui-0.9.99-examples.patch52
-rw-r--r--sci-electronics/gspiceui/gspiceui-0.9.99-r1.ebuild69
3 files changed, 129 insertions, 2 deletions
diff --git a/sci-electronics/gspiceui/ChangeLog b/sci-electronics/gspiceui/ChangeLog
index 2c2c04773e29..074daf4be577 100644
--- a/sci-electronics/gspiceui/ChangeLog
+++ b/sci-electronics/gspiceui/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-electronics/gspiceui
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gspiceui/ChangeLog,v 1.4 2010/11/01 15:25:20 fauli Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gspiceui/ChangeLog,v 1.5 2011/04/28 15:58:00 tomjbe Exp $
+
+*gspiceui-0.9.99-r1 (28 Apr 2011)
+
+ 28 Apr 2011; Thomas Beierlein <tomjbe@gentoo.org> +gspiceui-0.9.99-r1.ebuild,
+ +files/gspiceui-0.9.99-examples.patch:
+ Fix user manual lookup. Add missing spice models for USE=examples
01 Nov 2010; Christian Faulhammer <fauli@gentoo.org>
gspiceui-0.9.99.ebuild:
diff --git a/sci-electronics/gspiceui/files/gspiceui-0.9.99-examples.patch b/sci-electronics/gspiceui/files/gspiceui-0.9.99-examples.patch
new file mode 100644
index 000000000000..54d37ce96268
--- /dev/null
+++ b/sci-electronics/gspiceui/files/gspiceui-0.9.99-examples.patch
@@ -0,0 +1,52 @@
+# add missing simulation models
+diff -uNr lib/npn/bc548.mod lib/npn/bc548.mod
+--- lib/npn/bc548.mod 1970-01-01 01:00:00.000000000 +0100
++++ lib/npn/bc548.mod 2009-09-10 01:25:48.000000000 +0200
+@@ -0,0 +1,5 @@
++*BC548BP ZETEX Spice model Last revision 4/90 General Purpose
++*ZTX Si 500mW 30V 200mA 300MHz pkg:TO-92 1,2,3
++.MODEL BC548 NPN( IS=10.2F NF=1 BF=676 VAF=98.6 IKF=60M ISE=1.94P NE=2 BR=4 NR=1
+++ VAR=24 IKR=90M RE=0.515 RB=2.06 RC=0.206 XTB=1.5 CJE=7.05P VJE=1.1 MJE=0.5
+++ CJC=5.21P VJC=0.3 MJC=0.3 TF=530P TR=368N )
+diff -uNr lib/npn/bc550.mod lib/npn/bc550.mod
+--- lib/npn/bc550.mod 1970-01-01 01:00:00.000000000 +0100
++++ lib/npn/bc550.mod 2009-09-10 01:25:33.000000000 +0200
+@@ -0,0 +1,6 @@
++*BC550BP ZETEX Spice model Last revision 4/90 Low Noise
++*ZTX Si 3dB 45V 200mA 300MHz pkg:TO-92 1,2,3
++.MODEL BC550 NPN( IS=1.8E-14 BF=400 NF=0.9955 VAF=80 IKF=0.14 ISE=5E-14
+++ NE=1.46 BR=35.5 NR=1.005 VAR=12.5 IKR=0.03 ISC=1.72E-13 NC=1.27 RB=0.56
+++ RE=0.6 RC=0.25 CJE=1.3E-11 TF=6.4E-10 CJC=4E-12 VJC=0.54 TR=5.072E-8 )
++
+diff -uNr lib/npn/tip41.mod lib/npn/tip41.mod
+--- lib/npn/tip41.mod 1970-01-01 01:00:00.000000000 +0100
++++ lib/npn/tip41.mod 2007-09-04 17:41:08.000000000 +0200
+@@ -0,0 +1,4 @@
++.MODEL TIP41 NPN(IS=457.5f XTI=3 EG=1.11 VAF=50 BF=156.7 ISE=1.346p NE=1.34
+++ IKF=3.296 NK=.5961 XTB=2.2 BR=7.639 ISC=604.1f NC=2.168 IKR=8.131m RC=91.29m
+++ CJC=278.7p MJC=.385 VJC=.75 FC=.5 CJE=433p MJE=.5 VJE=.75 TR=1.412u TF=37.34n
+++ ITF=35.68 XTF=1.163 VTF=10 RB=.1)
+diff -uNr lib/pnp/2n5401.mod lib/pnp/2n5401.mod
+--- lib/pnp/2n5401.mod 1970-01-01 01:00:00.000000000 +0100
++++ lib/pnp/2n5401.mod 2007-09-04 17:41:08.000000000 +0200
+@@ -0,0 +1,4 @@
++.MODEL 2N5401 PNP(IS=4.61E-13 BF=93 VAF=220 IKF=0.91 ISE=7.54E-11
+++ NE=2 BR=4 VAR=20 IKR=1.36 RB=3.86 RE=0.965 RC=0.386 CJE=5.66E-11 VJE=1.1
+++ MJE=0.5 TF=5.3E-10 CJC=2.36E-11 VJC=0.3 MJC=0.3 TR=3.68E-7 XTB=1.5 )
++
+diff -uNr lib/pnp/bc558.mod lib/pnp/bc558.mod
+--- lib/pnp/bc558.mod 1970-01-01 01:00:00.000000000 +0100
++++ lib/pnp/bc558.mod 2007-09-04 17:41:08.000000000 +0200
+@@ -0,0 +1,4 @@
++.MODEL BC558 PNP(IS=1.15E-14 BF=330 NF=0.9872 VAF=84.56 IKF=0.1
+++ ISE=5E-14 NE=1.4 BR=13 NR=0.996 VAR=8.15 IKR=0.012 ISC=1.43E-14 NC=1.1
+++ RB=0.2 RE=0.4 RC=0.95 CJE=1.6E-11 TF=4.93E-10 CJC=1.05E-11 VJC=0.565
+++ MJC=0.415 TR=7.355E-8)
+diff -uNr lib/pnp/tip42.mod lib/pnp/tip42.mod
+--- lib/pnp/tip42.mod 1970-01-01 01:00:00.000000000 +0100
++++ lib/pnp/tip42.mod 2007-09-04 17:41:08.000000000 +0200
+@@ -0,0 +1,4 @@
++.MODEL TIP42 PNP(IS=66.19f XTI=3 EG=1.11 VAF=100 BF=137.6 ISE=862.2f NE=1.481
+++ IKF=1.642 NK=.5695 XTB=2 BR=5.88 ISC=273.5f NC=1.24 IKR=3.555 RC=79.39m
+++ CJC=870.4p MJC=.6481 VJC=.75 FC=.5 CJE=390.1p MJE=.4343 VJE=.75 TR=235.4n
+++ TF=23.21n ITF=71.33 XTF=5.982 VTF=10 RB=.1)
diff --git a/sci-electronics/gspiceui/gspiceui-0.9.99-r1.ebuild b/sci-electronics/gspiceui/gspiceui-0.9.99-r1.ebuild
new file mode 100644
index 000000000000..328a0eb86566
--- /dev/null
+++ b/sci-electronics/gspiceui/gspiceui-0.9.99-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gspiceui/gspiceui-0.9.99-r1.ebuild,v 1.1 2011/04/28 15:58:00 tomjbe Exp $
+
+EAPI="2"
+
+WX_GTK_VER="2.8"
+inherit eutils wxwidgets
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="GUI frontend for Ngspice and Gnucap"
+HOMEPAGE="http://www.geda.seul.org/tools/gspiceui/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples schematics waveform"
+
+DEPEND="x11-libs/wxGTK:2.8[X]
+ sci-electronics/electronics-menu"
+RDEPEND="${DEPEND}
+ || ( sci-electronics/ng-spice-rework sci-electronics/gnucap )
+ waveform? ( sci-electronics/gwave )
+ schematics? ( sci-electronics/geda )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Use Gentoo LDFLAGS and CXXFLAGS
+ epatch "${FILESDIR}/${P}-flags.patch"
+ # Add missing models for examples
+ epatch "${FILESDIR}"/${P}-examples.patch
+
+ # Adjusting the doc path at src/main/HelpTasks.cpp
+ sed -i -e \
+ "s:/share/gspiceui/html/User-Manual.html:/share/doc/${PF}/html/User-Manual.html:g" \
+ src/main/HelpTasks.cpp \
+ || die "Patching src/main/HelpTasks.cpp failed"
+}
+
+src_install() {
+ dobin bin/gspiceui || die
+ dodoc ChangeLog ToDo || die
+ doman gspiceui.1 || die
+ newicon src/icons/gspiceui-48x48.xpm gspiceui.xpm || die
+
+ dohtml html/*.html html/*.jpeg || die
+
+ # installing examples and according model and symbol files
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/sch
+ doins -r sch/* || die
+ insinto /usr/share/doc/${PF}/lib
+ doins -r lib/* || die
+ fi
+
+ make_desktop_entry gspiceui "GNU Spice GUI" gspiceui "Electronics"
+}
+
+pkg_postinst() {
+ if use examples ; then
+ elog "If you want to use the examples, copy from"
+ elog "/usr/share/doc/${PF} the sch and lib directory"
+ elog "side by side to your home directory to be able"
+ elog "to generate the netlists as normal user."
+ fi
+}