Lines 1-6
Link Here
|
1 |
# Copyright 1999-2013 Gentoo Foundation |
1 |
# Copyright 1999-2013 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.284 2013/04/29 22:14:23 tomwij Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v X.XXX 2013/XX/XX XX:XX:XX XXXXXX Exp $ |
4 |
|
4 |
|
5 |
# Description: kernel.eclass rewrite for a clean base regarding the 2.6 |
5 |
# Description: kernel.eclass rewrite for a clean base regarding the 2.6 |
6 |
# series of kernel with back-compatibility for 2.4 |
6 |
# series of kernel with back-compatibility for 2.4 |
Lines 415-433
Link Here
|
415 |
kernel_is 2 6 || kernel_is 2 5 |
415 |
kernel_is 2 6 || kernel_is 2 5 |
416 |
} |
416 |
} |
417 |
|
417 |
|
418 |
# Capture the sources type and set DEPENDs |
418 |
# Capture the sources type and set some basic variables. |
|
|
419 |
# See bug #469696 for discussion of *DEPEND, IUSE and more. |
419 |
if [[ ${ETYPE} == sources ]]; then |
420 |
if [[ ${ETYPE} == sources ]]; then |
420 |
DEPEND="!build? ( sys-apps/sed |
421 |
DEPEND="!build? ( sys-apps/sed )" |
421 |
>=sys-devel/binutils-2.11.90.0.31 )" |
422 |
RDEPEND="!build? ( sys-apps/sed |
422 |
RDEPEND="!build? ( >=sys-libs/ncurses-5.2 |
423 |
>=sys-devel/binutils-2.11.90.0.31 |
423 |
sys-devel/make |
424 |
sys-apps/coreutils |
|
|
425 |
sys-apps/diffutils |
426 |
sys-apps/findutils |
427 |
sys-apps/grep |
428 |
sys-apps/net-tools |
429 |
sys-apps/which |
430 |
sys-devel/make |
431 |
sys-devel/gcc |
432 |
virtual/awk |
424 |
dev-lang/perl |
433 |
dev-lang/perl |
425 |
sys-devel/bc )" |
434 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
|
|
435 |
modules? ( sys-apps/kmod ) |
436 |
gtk? ( virtual/pkgconfig |
437 |
dev-libs/glib:2 |
438 |
x11-libs/gtk+:2 |
439 |
gnome-base/libglade:2.0 |
440 |
) |
441 |
qt4? ( virtual/pkgconfig |
442 |
sys-devel/gcc[cxx] |
443 |
dev-qt/qtcore:4[qt3support] |
444 |
dev-qt/qtgui:4[qt3support] |
445 |
dev-qt/qt3support:4 |
446 |
) |
447 |
lzo? ( app-arch/lzop ) |
448 |
lzma? ( app-arch/xz-utils ) |
449 |
gzip? ( app-arch/gzip ) |
450 |
bzip2? ( app-arch/bzip2 ) |
451 |
initramfs? ( app-arch/cpio ) |
452 |
)" |
426 |
PDEPEND="!build? ( virtual/dev-manager )" |
453 |
PDEPEND="!build? ( virtual/dev-manager )" |
|
|
454 |
REQUIRED_USE="!build? ( || ( lzo lzma gzip bzip2 ) )" |
427 |
|
455 |
|
428 |
SLOT="${PVR}" |
456 |
SLOT="${PVR}" |
429 |
DESCRIPTION="Sources based on the Linux Kernel." |
457 |
DESCRIPTION="Sources based on the Linux Kernel." |
430 |
IUSE="symlink build" |
458 |
IUSE="symlink build +modules ncurses gtk qt4 lzo lzma gzip bzip2 initramfs" |
431 |
|
459 |
|
432 |
# Bug #266157, deblob for libre support |
460 |
# Bug #266157, deblob for libre support |
433 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
461 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
Lines 770-776
Link Here
|
770 |
use deblob && \ |
798 |
use deblob && \ |
771 |
K_SECURITY_UNSUPPORTED=deblob |
799 |
K_SECURITY_UNSUPPORTED=deblob |
772 |
|
800 |
|
773 |
# if we are to forcably symlink, delete it if it already exists first. |
801 |
# if we are to forcibly symlink, delete it if it already exists first. |
774 |
if [[ ${K_SYMLINK} > 0 ]]; then |
802 |
if [[ ${K_SYMLINK} > 0 ]]; then |
775 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
803 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
776 |
MAKELINK=1 |
804 |
MAKELINK=1 |
Lines 1231-1237
Link Here
|
1231 |
|
1259 |
|
1232 |
ABI="${KERNEL_ABI}" |
1260 |
ABI="${KERNEL_ABI}" |
1233 |
[[ ${ETYPE} == headers ]] && setup_headers |
1261 |
[[ ${ETYPE} == headers ]] && setup_headers |
1234 |
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." |
1262 |
if [[ ${ETYPE} == sources ]]; then |
|
|
1263 |
if ! use ncurses && ! use gtk && ! use qt4; then |
1264 |
echo |
1265 |
ewarn "You have neither of the USE flags ncurses/gtk/qt4 turned on." |
1266 |
ewarn "Without these libraries you will be limited to very simple, line-based" |
1267 |
ewarn "kernel configuration means (make config, make oldconfig, ...)." |
1268 |
echo |
1269 |
fi |
1270 |
echo ">>> Preparing to unpack ..." |
1271 |
fi |
1235 |
} |
1272 |
} |
1236 |
|
1273 |
|
1237 |
kernel-2_pkg_postrm() { |
1274 |
kernel-2_pkg_postrm() { |