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

(-)groff-1.20.1-r1.ebuild (+16 lines)
Lines 24-29 Link Here
24
		x11-libs/libICE
24
		x11-libs/libICE
25
	)"
25
	)"
26
26
27
pkg_setup()
28
{
29
	# The host groff version needs to be the same then what we try to emerge.
30
	if tc-is-cross-compiler ; then
31
		HOSTGROFF=$(groff -v | grep 'GNU groff version' | sed -e 's/GNU groff version //')
32
		if [ "${HOSTGROFF}" == "" ]; then
33
			die "Groff must be installed on host for cross-compiling!"
34
		fi
35
		if [ "${HOSTGROFF}" != "${PV}" ]; then
36
			eerror "Groff version ${HOSTGROFF} is installed on your host,"
37
			eerror "but version ${PV} is required for cross-compilation."
38
			die "Can't crosscompile groff due to version mismatch."
39
		fi
40
	fi
41
}
42
27
src_unpack() {
43
src_unpack() {
28
	unpack ${A}
44
	unpack ${A}
29
	cd "${S}"
45
	cd "${S}"

Return to bug 257778