summaryrefslogtreecommitdiff
path: root/sci-electronics/gspiceui
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/gspiceui
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-electronics/gspiceui')
-rw-r--r--sci-electronics/gspiceui/Manifest6
-rw-r--r--sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch26
-rw-r--r--sci-electronics/gspiceui/gspiceui-1.1.0.ebuild75
-rw-r--r--sci-electronics/gspiceui/metadata.xml15
4 files changed, 122 insertions, 0 deletions
diff --git a/sci-electronics/gspiceui/Manifest b/sci-electronics/gspiceui/Manifest
new file mode 100644
index 000000000000..b8eea2a7ceca
--- /dev/null
+++ b/sci-electronics/gspiceui/Manifest
@@ -0,0 +1,6 @@
+AUX gspiceui-1.1.0-flags.patch 1089 SHA256 cfe1dacbc65905f749f04ed5f6635eee63da4beda42c16dea7cb6c36f6b600f2 SHA512 2e55f805d9ea543a4adae3801963c106faccf6781fb9f3699e114acda2994bab22fbdca1872787b662ff3f17c6b9f88736dd3ae51f99b8cdf6a51382ff18b109 WHIRLPOOL 932ea29d283cef37039d64ffb8cef6c716c544bf1ee107a83274e88c1833038f79d41e6eb2f0d955b5e47086fe6697ef3dd6831a81e3b843ab557df9d9a6fc74
+DIST gspiceui-v1.1.00.tar.gz 1048236 SHA256 22cbe0a8800f9fade43235c74df2e3defb06f2d6e0ac57cff81d058ab89da564 SHA512 46ccf3dd7a5dd9ec1cac1eb742187ecab15a6c0033467d52a44c916e239696faf7b8797e1a155191cf0ed37b04619b0666cff51e78912a06ecd2c63d377cba93 WHIRLPOOL 66c0e089c9246924eee308ec120a7ecd256d91b4e54306d3c7f9e4bc2fcd2982157bbb551d376fb80f1df1c547ea9723a9dc9b0549745f79ff754f2202ef7204
+EBUILD gspiceui-1.1.0.ebuild 1882 SHA256 e94acd4fa00c4cc828a977b3a832257d43b6da6e5b582218d62bd3b6f7416276 SHA512 5b8353b5354234ee9351a2d2ccec2f6907e38c48ac63b6ea2301e3e43a2ead6d478e3eb76a327eea3739cbc6304b3e9719e189e5255b9572aeef6965775a44f0 WHIRLPOOL 65944c3572a230d72da882130ef9932ddcd7c96e5bf3128fb9d495b36b8ba696897c6dbe4cdf0877e1424ca38aa7112eb1862ebd6b77a536a52e5bee84473cc7
+MISC ChangeLog 3918 SHA256 368fb89660f0e5f6d409fd33d7e8af0fcbf593959a0986a6052031b48f8b6657 SHA512 826e303a6bfb539aa006110551255975fcb816d328736af0a794c3935152386ad3c27cf478e67cb0bb5fed6b636593a8eba9bdca2191fcb6e61fcb459704f549 WHIRLPOOL fd8306a0903a0cd5a3c930e70a814b034ff525966761a27b751e26e1778b48bc566a2d02dfe5b20942c04df60d73bf1f9b27399a1eadf2638caa966e2e8a398d
+MISC ChangeLog-2015 1926 SHA256 2c17410db9de21f8d1c12b6ac95263b87090a0dc3100a36d3cbc8e8f1dd28932 SHA512 01477360cc9942208aade800cde523bef0f882bb34c3722e9a60c7d0d5b82a2d064b6b5a41724040658250d2e9c8fc23bfc3b9e22eba4ccad02c3d28db028853 WHIRLPOOL de222e805763d64c4610cb5dc0cb3c35719ba04ed134cae99f4fddfcad9e8cbaa6cb7607cedb9982206010b485d5a94e6fbe5fa4b9e292f42e7e49ec7cc5b028
+MISC metadata.xml 559 SHA256 6096fb2a92f510f57226484a33adcaa6ac34b02bccc7c2c42dbee7a20aa7faa1 SHA512 b46400695bafea3a709928e2079d85bd3d610184616c692597e9950a66d0521f0b28437a671ca50d98ba7e1a5526991be41039ce816e2379ec7fbcd11e8ff187 WHIRLPOOL 1ffe39b2f06edd8845bbfbb4814734c2a4247933d93d7ed3602133b79d98a219142735122a11a706da4d142b94a61ccd295961a2f87f4367777f28b8ecbec8b7
diff --git a/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch b/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch
new file mode 100644
index 000000000000..60f2acf0477c
--- /dev/null
+++ b/sci-electronics/gspiceui/files/gspiceui-1.1.0-flags.patch
@@ -0,0 +1,26 @@
+--- src/Makefile.old 2015-07-03 18:06:15.000000000 +0200
++++ src/Makefile 2015-07-03 18:08:50.000000000 +0200
+@@ -69,13 +69,7 @@
+ # -Ofast Optimize till it hurts : "-O3" + enable opts not valid for all standard-compliants
+ # -Os Optimize for size
+ # -Og Optimize debugging experience but don't break debugging
+-ifeq ($(GSPICEUI_DBG),0)
+- # Options for release (not using -Wall since it's GCC specific)
+- CXXFLAGS := -O1 -pipe $(shell $(WXCFG) --cxxflags)
+-else
+- # Options for development
+- CXXFLAGS := -g -Og -Wall -Wextra -pipe $(shell $(WXCFG) --cxxflags)
+-endif
++ CXXFLAGS += $(shell $(WXCFG) --cxxflags)
+
+ # The following suppresses spurious warnings from gcc with wxWidgets v2.8.12
+ ifeq ($(GSPICEUI_WXLIB),2.8)
+@@ -134,7 +128,7 @@
+ # -o specify the output file name
+
+ $(BINDIR)/$(PROG) : $(OBJS)
+- $(CXX) -pipe -o $(BINDIR)/$(PROG) obj/*.o $(LIBS)
++ $(CXX) -pipe -o $(BINDIR)/$(PROG) obj/*.o $(LDFLAGS) $(LIBS)
+ ifeq ($(ROOT)/GSpiceUI.app,$(wildcard $(ROOT)/GSpiceUI.app))
+ cp $(BINDIR)/$(PROG) $(ROOT)/GSpiceUI.app/Contents/MacOS/gspiceui
+ endif
diff --git a/sci-electronics/gspiceui/gspiceui-1.1.0.ebuild b/sci-electronics/gspiceui/gspiceui-1.1.0.ebuild
new file mode 100644
index 000000000000..1444cacb86bb
--- /dev/null
+++ b/sci-electronics/gspiceui/gspiceui-1.1.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+WX_GTK_VER="3.0"
+inherit eutils flag-o-matic toolchain-funcs wxwidgets
+
+MY_P="${PN}-v${PV}0"
+
+DESCRIPTION="GUI frontend for Ngspice and Gnucap"
+HOMEPAGE="https://sourceforge.net/projects/gspiceui/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="examples schematics waveform"
+
+DEPEND="x11-libs/wxGTK:3.0[X]
+ sci-electronics/electronics-menu"
+RDEPEND="${DEPEND}
+ || ( sci-electronics/ngspice 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"
+
+ # 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
+
+ # Adjusting call to gwave program
+ sed -i -e "s/gwave2/gwave/g" src/TypeDefs.hpp || die
+
+ # bug 553968
+ replace-flags -O? -O1
+}
+
+src_compile() {
+ emake CXX=$(tc-getCXX)
+}
+
+src_install() {
+ dobin bin/gspiceui
+ dodoc ChangeLog ReadMe ToDo release-notes-v1.1.00.txt
+ doman gspiceui.1
+ newicon src/icons/gspiceui-48x48.xpm gspiceui.xpm
+
+ dohtml html/*.html html/*.jpg html/*.png
+
+ # installing examples and according model and symbol files
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/sch
+ doins -r sch/*
+ insinto /usr/share/doc/${PF}/lib
+ doins -r lib/*
+ 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 and extract 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
+}
diff --git a/sci-electronics/gspiceui/metadata.xml b/sci-electronics/gspiceui/metadata.xml
new file mode 100644
index 000000000000..23e4a696b40e
--- /dev/null
+++ b/sci-electronics/gspiceui/metadata.xml
@@ -0,0 +1,15 @@
+<?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>
+ <use>
+ <flag name="schematics">Use <pkg>sci-electronics/geda</pkg> for schematics editing</flag>
+ <flag name="waveform">Use <pkg>sci-electronics/gwave</pkg> for waveform display</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gspiceui</remote-id>
+ </upstream>
+</pkgmetadata>