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

(-)sci-electronics/kicad/kicad-20070115.ebuild (-7 / +7 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2007 Gentoo Foundation
1
# Copyright 1999-2007 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-20070115.ebuild,v 1.1 2007/01/30 20:37:45 calchan Exp $
3
# $Header: $
4
4
5
inherit wxwidgets
5
inherit wxwidgets eutils
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 15-34 Link Here
15
KEYWORDS="~x86 ~amd64"
15
KEYWORDS="~x86 ~amd64"
16
IUSE="unicode doc examples minimal"
16
IUSE="unicode doc examples minimal"
17
17
18
DEPEND=">=x11-libs/wxGTK-2.6
18
DEPEND="=x11-libs/wxGTK-2.6*
19
	media-gfx/wings"
19
	media-gfx/wings"
20
20
21
pkg_setup() {
21
pkg_setup() {
22
	# Tell wxwidgets.eclass the version we need. We pick the latest on the system.
22
	# Tell wxwidgets.eclass the version we need. We pick the latest on the system.
23
	WX_GTK_VER=$(`ls /usr/bin/wx-config* | sort | tail -n 1` --release)
23
	export WX_GTK_VER="2.6"
24
24
25
	# Check for proper wxGTK USE flags.
25
	# Check for proper wxGTK USE flags.
26
	if use unicode; then
26
	if use unicode; then
27
		need-wxwidgets unicode || die "You need to install wxGTK with unicode support."
27
		need-wxwidgets unicode
28
	else
28
	else
29
		need-wxwidgets gtk2 || die "You need to install wxGTK with gtk2 support."
29
		need-wxwidgets gtk2
30
	fi
30
	fi
31
	built_with_use ">=x11-libs/wxGTK-${WX_GTK_VER}" opengl || die "You need to install wxGTK with opengl support."
31
	built_with_use "=x11-libs/wxGTK-2.6*" opengl || die "You need to install wxGTK-2.6 with opengl support."
32
}
32
}
33
33
34
src_unpack() {
34
src_unpack() {

Return to bug 169728