Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 214489 | Differences between
and this patch

Collapse All | Expand All

(-)pygame-1.8.0_rc4.ebuild (-4 / +12 lines)
Lines 13-19 Link Here
13
LICENSE="LGPL-2.1"
13
LICENSE="LGPL-2.1"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
15
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
16
IUSE="doc"
16
IUSE="doc X"
17
17
18
RDEPEND=">=media-libs/libsdl-1.2.5
18
RDEPEND=">=media-libs/libsdl-1.2.5
19
	>=media-libs/sdl-ttf-2.0.6
19
	>=media-libs/sdl-ttf-2.0.6
Lines 27-35 Link Here
27
S="${WORKDIR}/${MY_P}"
27
S="${WORKDIR}/${MY_P}"
28
28
29
pkg_setup() {
29
pkg_setup() {
30
	if ! built_with_use media-libs/libsdl X ; then
30
	if use X ; then
31
		eerror "Please re-emerge media-libs/libsdl with the X USE-flag set."
31
		# if we want X11 (at all), make sure libsdl was also built with X11 support 
32
		die "Missing USE-flag for media-libs/libsdl"
32
		if ! built_with_use media-libs/libsdl X ; then
33
			eerror "Please re-emerge media-libs/libsdl with the X USE-flag set."
34
			die "Missing USE-flag for media-libs/libsdl"
35
		fi
33
	fi
36
	fi
34
}
37
}
35
38
Lines 39-44 Link Here
39
	sed -i \
42
	sed -i \
40
		-e "s:/lib:/$(get_libdir):" \
43
		-e "s:/lib:/$(get_libdir):" \
41
		"${S}/config_unix.py" || die "sed failed"
44
		"${S}/config_unix.py" || die "sed failed"
45
	if use !X ; then
46
		# if we do not want X11 support, disable it
47
		einfo "Disabling X11 support"
48
		epatch ${FILESDIR}/${MY_P}_disable-X11.diff
49
	fi
42
}
50
}
43
51
44
src_compile() {
52
src_compile() {

Return to bug 214489