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

(-)emu10k1_org/emu10k1-0.20a-r5.ebuild (-7 / +17 lines)
Lines 21-34 Link Here
21
21
22
S="${WORKDIR}/${MY_P}"
22
S="${WORKDIR}/${MY_P}"
23
23
24
BUILD_MODULE=0
25
24
pkg_setup() {
26
pkg_setup() {
25
	[ -z "$KV" ] && die "Couldn't detect kernel version.  Does /usr/src/linux exist?"
27
	[ -z "$KV" ] && die "Couldn't detect kernel version.  Does /usr/src/linux exist?"
26
	kernel-mod_is_2_4_kernel || die "This module is only compatible with 2.4.x kernels."
28
	kernel-mod_is_2_4_kernel && BUILD_MODULE=1
27
29
28
	return 0
30
	return 0
29
}
31
}
30
32
31
src_unpack() {
33
src_unpack() {
34
	
35
	
32
	unpack ${A}
36
	unpack ${A}
33
	cd ${S}
37
	cd ${S}
34
38
Lines 43-52 Link Here
43
47
44
	# Unset ARCH to prevent conflict with 2.6 kernels.  See bug #40424
48
	# Unset ARCH to prevent conflict with 2.6 kernels.  See bug #40424
45
	# unset ARCH
49
	# unset ARCH
46
50
	if [ $BUILD_MODULE -eq 1 ]
47
	export KERNEL_SOURCE=/usr/src/linux
51
	then
48
	make || die "make failed"
52
		export KERNEL_SOURCE=/usr/src/linux
49
	make all || die "make all failed"
53
		make || die "make failed"
54
		make all || die "make all failed"
55
	fi
50
	make tools || die "make tools failed"
56
	make tools || die "make tools failed"
51
}
57
}
52
58
Lines 54-61 Link Here
54
	insinto /etc/modules.d
60
	insinto /etc/modules.d
55
	newins ${FILESDIR}/modules-emu10k1 emu10k1
61
	newins ${FILESDIR}/modules-emu10k1 emu10k1
56
62
57
	# first install the main parts
63
	if [ $BUILD_MODULE -eq 1 ]
58
	make DESTDIR=${D} install || die "could not install"
64
	then
65
		# first install the main parts
66
		make DESTDIR=${D} install || die "could not install"
67
	fi
68
	
59
	rm -f docs/*patch
69
	rm -f docs/*patch
60
	dodoc docs/* ${FILESDIR}/README.gentoo
70
	dodoc docs/* ${FILESDIR}/README.gentoo
61
71

Return to bug 57539