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

Collapse All | Expand All

(-)/usr/portage/app-laptop/hdapsd/hdapsd-20060409-r1.ebuild (-3 / +11 lines)
Lines 20-29 Link Here
20
20
21
S="${WORKDIR}"
21
S="${WORKDIR}"
22
22
23
CONFIG_CHECK="SENSORS_HDAPS"
24
ERROR_SENSORS_HDAPS="${P} requires support for HDAPS (CONFIG_SENSORS_HDAPS)"
25
26
src_compile() {
23
src_compile() {
24
	# We require the hdaps module; problem is that it can come from either
25
	# kernel sources or from the tp_smapi package. This hack is required because
26
	# the linux-info eclass doesn't export any more suitable config checkers.
27
	# Here we just skip calling its pkg_setup() in case the module is provided
28
	# by the package.
29
	if ! has_version app-laptop/tp_smapi || ! built_with_use app-laptop/tp_smapi hdaps; then
30
		CONFIG_CHECK="SENSORS_HDAPS"
31
		ERROR_SENSORS_HDAPS="${P} requires support for HDAPS (CONFIG_SENSORS_HDAPS) or "
32
		linux-info_pkg_setup
33
	fi
34
27
	cd "${WORKDIR}"
35
	cd "${WORKDIR}"
28
	gcc ${CFLAGS} "${P}".c -o hdapsd || die "failed to compile"
36
	gcc ${CFLAGS} "${P}".c -o hdapsd || die "failed to compile"
29
}
37
}

Return to bug 141565