blob: e50551189643eb8a2d15757b2c4eb95d1dcbf6ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
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/index.html"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
DEPEND="=x11-libs/wxGTK-2.8*"
RDEPEND="${DEPEND}
|| ( sci-electronics/ng-spice-rework sci-electronics/gnucap )
sci-electronics/gwave
sci-electronics/geda"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s:CXXFLAGS =-O -pipe:CXXFLAGS +=:" \
src/Makefile || die "Patching src/Makefile failed"
sed -i \
-e "s:/share/gspiceui/html/gSpiceUI.html:/share/doc/${P}/html/gSpiceUI.html:" \
src/main/HelpTasks.cpp \
|| die "Patching src/main/HelpTasks.cpp failed"
}
src_install() {
dobin bin/gspiceui
dodoc AUTHORS ChangeLog README TODO
insinto /usr/share/doc/${P}/html
dohtml html/*.html html/*.css html/*.jpeg
newicon src/icons/gspiceui-48x48.xpm gspiceui.xpm
make_desktop_entry gspiceui "GNU Spice GUI" gspiceui.xpm "Education;Science;Electronics"
}
|