summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/gspiceui/gspiceui-0.8.90.ebuild')
-rw-r--r--sci-electronics/gspiceui/gspiceui-0.8.90.ebuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/sci-electronics/gspiceui/gspiceui-0.8.90.ebuild b/sci-electronics/gspiceui/gspiceui-0.8.90.ebuild
index 92fcc7bac..99a58ad31 100644
--- a/sci-electronics/gspiceui/gspiceui-0.8.90.ebuild
+++ b/sci-electronics/gspiceui/gspiceui-0.8.90.ebuild
@@ -4,9 +4,10 @@
inherit eutils
+MY_P="${PN}-v${PV}"
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"
+SRC_URI="http://www.geda.seul.org/dist/${MY_P}.tar.gz"
IUSE=""
LICENSE="GPL-2"
@@ -19,18 +20,19 @@ RDEPEND="$DEPEND
sci-electronics/gwave
sci-electronics/geda"
-S="${WORKDIR}/${PN}-v${PV}"
+S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
+ cd "${S}"
sed -i \
-e "s:CXXFLAGS =-O -pipe:CXXFLAGS +=:" \
-e "s:WXCFG = wx-config:WXCFG = wx-config-2.6:" \
- ${S}/src/Makefile \
+ 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 \
+ src/main/HelpTasks.cpp \
|| die "Patching src/main/HelpTasks.cpp failed"
}