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.1-r1.ebuild_orig (-2 / +22 lines)
Lines 13-21 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[X]
18
RDEPEND=">=media-libs/libsdl-1.2.5
19
	>=media-libs/sdl-ttf-2.0.6
19
	>=media-libs/sdl-ttf-2.0.6
20
	>=media-libs/sdl-image-1.2.2[png,jpeg]
20
	>=media-libs/sdl-image-1.2.2[png,jpeg]
21
	>=media-libs/sdl-mixer-1.2.4
21
	>=media-libs/sdl-mixer-1.2.4
Lines 49-51 Link Here
49
	python_version
49
	python_version
50
	PYTHONPATH="$(ls -d build/lib.*)" "${python}" run_tests.py || die "tests failed"
50
	PYTHONPATH="$(ls -d build/lib.*)" "${python}" run_tests.py || die "tests failed"
51
}
51
}
52
53
pkg_setup() {
54
	if use X ; then
55
		# if we want X11 (at all), make sure libsdl was also built with X11 support 
56
		if ! built_with_use media-libs/libsdl X ; then
57
			eerror "Please re-emerge media-libs/libsdl with the X USE-flag set."
58
			die "Missing USE-flag for media-libs/libsdl"
59
		fi
60
	fi
61
}
62
63
src_unpack() {
64
	unpack "${A}"
65
	cd "${S}"
66
 	if use !X ; then
67
 		# if we do not want X11 support, disable it
68
 		einfo "Disabling X11 support"
69
 		epatch ${FILESDIR}/${P}_disable-X11.diff
70
 	fi
71
}

Return to bug 214489