summaryrefslogtreecommitdiff
blob: 92fcc7bac5a725b9c82942826f12f0a98defcff6 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="GUI frontend for Ngspice and Gnucap"
HOMEPAGE="http://www.geda.seul.org/tools/gspiceui/index.html"
SRC_URI="http://www.geda.seul.org/dist/${PN}-v${PV}.tar.gz"

IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

DEPEND="=x11-libs/wxGTK-2.6*"
RDEPEND="$DEPEND
	|| ( sci-electronics/ng-spice-rework sci-electronics/gnucap )
	sci-electronics/gwave
	sci-electronics/geda"

S="${WORKDIR}/${PN}-v${PV}"

src_unpack() {
	unpack ${A}
	sed -i \
		-e "s:CXXFLAGS =-O -pipe:CXXFLAGS +=:" \
		-e "s:WXCFG = wx-config:WXCFG = wx-config-2.6:" \
		${S}/src/Makefile \
		|| die "Patching src/Makefile failed"
	sed -i \
		-e "s:/share/gspiceui/html/gSpiceUI.html:/share/doc/${P}/html/gSpiceUI.html:" \
		${S}/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 Electronics
}