|
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-apps/coreutils |
| 423 |
sys-devel/make |
424 |
sys-apps/diffutils |
|
|
425 |
sys-apps/findutils |
| 426 |
sys-apps/grep |
| 427 |
sys-apps/net-tools |
| 428 |
sys-apps/which |
| 429 |
sys-devel/make |
| 430 |
sys-devel/gcc |
| 431 |
>=sys-devel/binutils-2.11.90.0.31 |
| 432 |
sys-devel/bc |
| 433 |
virtual/awk |
| 424 |
dev-lang/perl |
434 |
dev-lang/perl |
| 425 |
sys-devel/bc )" |
435 |
ncurses? ( >=sys-libs/ncurses-5.2 ) |
|
|
436 |
modules? ( virtual/modutils ) |
| 437 |
gtk? ( virtual/pkgconfig |
| 438 |
dev-libs/glib:2 |
| 439 |
x11-libs/gtk+:2 |
| 440 |
gnome-base/libglade:2.0 |
| 441 |
) |
| 442 |
qt4? ( virtual/pkgconfig |
| 443 |
sys-devel/gcc[cxx] |
| 444 |
dev-qt/qtcore:4[qt3support] |
| 445 |
dev-qt/qtgui:4[qt3support] |
| 446 |
dev-qt/qt3support:4 |
| 447 |
) |
| 448 |
lzo? ( app-arch/lzop ) |
| 449 |
lzma? ( app-arch/xz-utils ) |
| 450 |
gzip? ( app-arch/gzip ) |
| 451 |
bzip2? ( app-arch/bzip2 ) |
| 452 |
initramfs? ( app-arch/cpio ) |
| 453 |
)" |
| 426 |
PDEPEND="!build? ( virtual/dev-manager )" |
454 |
PDEPEND="!build? ( virtual/dev-manager )" |
|
|
455 |
REQUIRED_USE="!build? ( || ( lzo lzma gzip bzip2 ) )" |
| 427 |
|
456 |
|
| 428 |
SLOT="${PVR}" |
457 |
SLOT="${PVR}" |
| 429 |
DESCRIPTION="Sources based on the Linux Kernel." |
458 |
DESCRIPTION="Sources based on the Linux Kernel." |
| 430 |
IUSE="symlink build" |
459 |
IUSE="symlink build +modules ncurses gtk qt4 lzo lzma gzip bzip2 initramfs" |
| 431 |
|
460 |
|
| 432 |
# Bug #266157, deblob for libre support |
461 |
# Bug #266157, deblob for libre support |
| 433 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
462 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
|
Lines 770-776
Link Here
|
| 770 |
use deblob && \ |
799 |
use deblob && \ |
| 771 |
K_SECURITY_UNSUPPORTED=deblob |
800 |
K_SECURITY_UNSUPPORTED=deblob |
| 772 |
|
801 |
|
| 773 |
# if we are to forcably symlink, delete it if it already exists first. |
802 |
# if we are to forcibly symlink, delete it if it already exists first. |
| 774 |
if [[ ${K_SYMLINK} > 0 ]]; then |
803 |
if [[ ${K_SYMLINK} > 0 ]]; then |
| 775 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
804 |
[[ -h ${ROOT}usr/src/linux ]] && rm ${ROOT}usr/src/linux |
| 776 |
MAKELINK=1 |
805 |
MAKELINK=1 |
|
Lines 1231-1237
Link Here
|
| 1231 |
|
1260 |
|
| 1232 |
ABI="${KERNEL_ABI}" |
1261 |
ABI="${KERNEL_ABI}" |
| 1233 |
[[ ${ETYPE} == headers ]] && setup_headers |
1262 |
[[ ${ETYPE} == headers ]] && setup_headers |
| 1234 |
[[ ${ETYPE} == sources ]] && echo ">>> Preparing to unpack ..." |
1263 |
if [[ ${ETYPE} == sources ]]; then |
|
|
1264 |
if ! use ncurses && ! use gtk && ! use qt4; then |
| 1265 |
echo |
| 1266 |
ewarn "You have neither of the USE flags ncurses/gtk/qt4 turned on." |
| 1267 |
ewarn "Without these libraries you will be limited to very simple, line-based" |
| 1268 |
ewarn "kernel configuration means (make config, make oldconfig, ...)." |
| 1269 |
echo |
| 1270 |
fi |
| 1271 |
echo ">>> Preparing to unpack ..." |
| 1272 |
fi |
| 1235 |
} |
1273 |
} |
| 1236 |
|
1274 |
|
| 1237 |
kernel-2_pkg_postrm() { |
1275 |
kernel-2_pkg_postrm() { |