1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils wxwidgets
9 DESCRIPTION="GUI frontend for Ngspice and Gnucap"
10 HOMEPAGE="http://www.geda.seul.org/tools/gspiceui/index.html"
11 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
18 DEPEND="=x11-libs/wxGTK-2.8*"
20 || ( sci-electronics/ng-spice-rework sci-electronics/gnucap )
24 S="${WORKDIR}/${MY_P}"
30 -e "s:CXXFLAGS =-O -pipe:CXXFLAGS +=:" \
31 src/Makefile || die "Patching src/Makefile failed"
33 -e "s:/share/gspiceui/html/gSpiceUI.html:/share/doc/${P}/html/gSpiceUI.html:" \
34 src/main/HelpTasks.cpp \
35 || die "Patching src/main/HelpTasks.cpp failed"
40 dodoc AUTHORS ChangeLog README TODO
41 insinto /usr/share/doc/${P}/html
42 dohtml html/*.html html/*.css html/*.jpeg
43 newicon src/icons/gspiceui-48x48.xpm gspiceui.xpm
44 make_desktop_entry gspiceui "GNU Spice GUI" gspiceui.xpm "Education;Science;Electronics"