1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="GUI frontend for Ngspice and Gnucap"
9 HOMEPAGE="http://www.geda.seul.org/tools/gspiceui/index.html"
10 SRC_URI="http://www.geda.seul.org/dist/${MY_P}.tar.gz"
17 DEPEND="=x11-libs/wxGTK-2.6*"
19 || ( sci-electronics/ng-spice-rework sci-electronics/gnucap )
23 S="${WORKDIR}/${MY_P}"
29 -e "s:CXXFLAGS =-O -pipe:CXXFLAGS +=:" \
30 -e "s:WXCFG = wx-config:WXCFG = wx-config-2.6:" \
32 || die "Patching src/Makefile failed"
34 -e "s:/share/gspiceui/html/gSpiceUI.html:/share/doc/${P}/html/gSpiceUI.html:" \
35 src/main/HelpTasks.cpp \
36 || die "Patching src/main/HelpTasks.cpp failed"
41 dodoc AUTHORS ChangeLog README TODO
42 insinto /usr/share/doc/${P}/html
43 dohtml html/*.html html/*.css html/*.jpeg
44 newicon src/icons/gspiceui-48x48.xpm gspiceui.xpm
45 make_desktop_entry gspiceui "GNU Spice GUI" gspiceui.xpm "Education;Science;Electronics"