Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 255917
Collapse All | Expand All

(-)/usr/portage/sci-electronics/kicad/kicad-20070702.ebuild (-2 / +6 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2009 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/kicad/kicad-20070702.ebuild,v 1.6 2008/02/29 20:39:59 carlo Exp $
3
# $Header: $
4
4
5
inherit eutils wxwidgets multilib
5
inherit eutils wxwidgets multilib
6
6
7
UPSTREAM_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
7
UPSTREAM_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}"
8
DESCRIPTION="Electronic schematic and PCB design tools."
8
DESCRIPTION="Electronic schematic and PCB design tools."
Lines 14-23 Link Here
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
16
IUSE="doc examples minimal unicode"
16
IUSE="doc examples minimal unicode"
17
17
18
DEPEND="=x11-libs/wxGTK-2.6*"
18
DEPEND="=x11-libs/wxGTK-2.6*"
19
RDEPEND=""
19
20
20
pkg_setup() {
21
pkg_setup() {
21
	# Tell wxwidgets.eclass which version we need
22
	# Tell wxwidgets.eclass which version we need
22
	WX_GTK_VER="2.6"
23
	WX_GTK_VER="2.6"
23
24
Lines 42-51 Link Here
42
	if WX_GTK_VER="2.6" ; then
43
	if WX_GTK_VER="2.6" ; then
43
		sed -i -e "s:wxFD_OVERWRITE_PROMPT:wxOVERWRITE_PROMPT:" kicad/treeprj_frame.cpp || die "sed failed"
44
		sed -i -e "s:wxFD_OVERWRITE_PROMPT:wxOVERWRITE_PROMPT:" kicad/treeprj_frame.cpp || die "sed failed"
44
		sed -i -e "s:, false ): ):" kicad/treeprj_datas.cpp || die "sed failed"
45
		sed -i -e "s:, false ): ):" kicad/treeprj_datas.cpp || die "sed failed"
45
		epatch "${FILESDIR}"/${P}-wxGTK-2.6.patch || die "patch failed"
46
		epatch "${FILESDIR}"/${P}-wxGTK-2.6.patch || die "patch failed"
46
	fi
47
	fi
48
49
	#Fixing pre-stripped files
50
	sed -i -e "/LDFLAGS/ s:-s::" libs.linux || die "sed libs.linux failed"
47
}
51
}
48
52
49
src_compile() {
53
src_compile() {
50
	# Build the main executables
54
	# Build the main executables
51
	emake -f makefile.gtk || die "make failed (main)"
55
	emake -f makefile.gtk || die "make failed (main)"

Return to bug 255917