Lines 14-20
Link Here
|
14 |
LICENSE="GPL-2" |
14 |
LICENSE="GPL-2" |
15 |
SLOT="0" |
15 |
SLOT="0" |
16 |
KEYWORDS="~x86 ~amd64" |
16 |
KEYWORDS="~x86 ~amd64" |
17 |
IUSE="doc debug screen custom-cflags" |
17 |
IUSE="doc debug screen custom-cflags pae" |
18 |
|
18 |
|
19 |
DEPEND="sys-apps/iproute2 |
19 |
DEPEND="sys-apps/iproute2 |
20 |
net-misc/bridge-utils |
20 |
net-misc/bridge-utils |
Lines 36-41
Link Here
|
36 |
|
36 |
|
37 |
src_unpack() { |
37 |
src_unpack() { |
38 |
unpack ${A} |
38 |
unpack ${A} |
|
|
39 |
|
40 |
epatch ${FILESDIR}/gentoo-make.patch |
41 |
|
39 |
# if the user *really* wants to use their own custom-cflags, let them |
42 |
# if the user *really* wants to use their own custom-cflags, let them |
40 |
if use custom-cflags; then |
43 |
if use custom-cflags; then |
41 |
einfo "User wants their own CFLAGS - removing defaults" |
44 |
einfo "User wants their own CFLAGS - removing defaults" |
Lines 60-72
Link Here
|
60 |
myopt="${myopt} debug=y" |
63 |
myopt="${myopt} debug=y" |
61 |
fi |
64 |
fi |
62 |
|
65 |
|
|
|
66 |
if use pae; then |
67 |
myopt="${myopt} XEN_TARGET_X86_PAE=y" |
68 |
fi |
69 |
|
63 |
if ! use custom-cflags; then |
70 |
if ! use custom-cflags; then |
64 |
unset CFLAGS |
71 |
unset CFLAGS |
65 |
fi |
72 |
fi |
|
|
73 |
|
66 |
filter-flags -fPIE -fstack-protector |
74 |
filter-flags -fPIE -fstack-protector |
67 |
|
75 |
|
68 |
make ${myopt} -C xen || die "compiling xen failed" |
76 |
make ${myopt} gentoo-build || die "compiling xen failed" |
69 |
make ${myopt} -C tools || die "compiling tools failed" |
|
|
70 |
|
77 |
|
71 |
if use doc; then |
78 |
if use doc; then |
72 |
sh ./docs/check_pkgs || die "package check failed" |
79 |
sh ./docs/check_pkgs || die "package check failed" |
Lines 75-87
Link Here
|
75 |
} |
82 |
} |
76 |
|
83 |
|
77 |
src_install() { |
84 |
src_install() { |
78 |
make DESTDIR=${D} -C xen install || die "installing xen failed" |
85 |
local myopt |
|
|
86 |
|
87 |
if use pae; then |
88 |
myopt="${myopt} XEN_TARGET_X86_PAE=y" |
89 |
fi |
79 |
|
90 |
|
80 |
make DESTDIR=${D} XEN_PYTHON_NATIVE_INSTALL=1 -C tools install \ |
91 |
make DESTDIR=${D} XEN_PYTHON_NATIVE_INSTALL=1 ${myopt} gentoo-install \ |
81 |
|| die "installing tools failed" |
92 |
|| die "installing xen failed" |
82 |
|
93 |
|
83 |
if use doc; then |
94 |
if use doc; then |
84 |
make DESTDIR=${D} -C docs install \ |
95 |
make DESTDIR=${D} ${myopt} -C docs install \ |
85 |
|| die "installing docs failed" |
96 |
|| die "installing docs failed" |
86 |
# Rename doc/xen to the Gentoo-style doc/xen-x.y |
97 |
# Rename doc/xen to the Gentoo-style doc/xen-x.y |
87 |
mv ${D}/usr/share/doc/{${PN},${PF}} |
98 |
mv ${D}/usr/share/doc/{${PN},${PF}} |