[x11-themes/sabayon-artwork-*] new -grub and -isolinux graphic, -core revision: sys-boot/grub doesn't depend anymore on artwork, dependency moved to sabayon-artwork-core

This commit is contained in:
mudler
2015-05-12 17:35:08 +02:00
parent b37f9670bf
commit ec723155dc
7 changed files with 401 additions and 0 deletions
+287
View File
@@ -0,0 +1,287 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
AUTOTOOLS_AUTO_DEPEND=yes
inherit autotools-utils bash-completion-r1 eutils flag-o-matic multibuild pax-utils toolchain-funcs
if [[ ${PV} != 9999 ]]; then
MY_P=${P/_/\~}
if [[ ${PV} == *_alpha* || ${PV} == *_beta* || ${PV} == *_rc* ]]; then
SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz"
else
SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
mirror://gentoo/${MY_P}.tar.xz"
fi
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}"/${PN}-1.99-vga-deprecated.patch
# vga= not yet deprecated for us
"${FILESDIR}"/${PN}-2.00-vga-deprecated-not-yet.patch
"${FILESDIR}"/${PN}-1.99-disable-floppies.patch
# Genkernel doesn't support "single" for rescue mode
# but rather init_opts=single
"${FILESDIR}"/${PN}-2.00-genkernel-initramfs-single.patch
# Down with SecureBoot
"${FILESDIR}"/${PN}-2.00-secureboot-user-sign-2.patch
"${FILESDIR}/${P}-parallel-make.patch" #424231
"${FILESDIR}/${P}-no-gets.patch" #424703
"${FILESDIR}/${P}-config-quoting.patch" #426364
"${FILESDIR}/${P}-tftp-endian.patch" # 438612
"${FILESDIR}/${P}-hardcoded-awk.patch" #424137
"${FILESDIR}/${P}-freebsd.patch" #442050
"${FILESDIR}/${P}-compression.patch" #424527
"${FILESDIR}/${P}-zfs-feature-flag-support-r1.patch" #455358
"${FILESDIR}/${P}-20_linux_xen.patch" #463992
"${FILESDIR}/${P}-dmraid.patch" #430748
"${FILESDIR}/${P}-texinfo.patch"
"${FILESDIR}/${P}-os-prober-efi-system.patch" #477314
"${FILESDIR}/${P}-fix-locale-en.mo.gz-not-found-error-message.patch" #408599
"${FILESDIR}/101-freetype2_fix_mkfont.patch"
)
else
inherit bzr
EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/"
fi
DESCRIPTION="GNU GRUB boot loader"
HOMEPAGE="http://www.gnu.org/software/grub/"
LICENSE="GPL-3"
SLOT="2"
IUSE="custom-cflags debug device-mapper doc efiemu mount +multislot nls static sdl test truetype libzfs"
GRUB_ALL_PLATFORMS=(
# everywhere:
emu
# mips only:
qemu-mips yeeloong
# amd64, x86, ppc, ppc64:
ieee1275
# amd64, x86:
coreboot multiboot efi-32 pc qemu
# amd64, ia64:
efi-64
)
IUSE+=" ${GRUB_ALL_PLATFORMS[@]/#/grub_platforms_}"
REQUIRED_USE="grub_platforms_qemu? ( truetype )
grub_platforms_yeeloong? ( truetype )"
# os-prober: Used on runtime to detect other OSes
# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue
# sbsigntool is Sabayon specific
RDEPEND="
app-crypt/sbsigntool
app-arch/xz-utils
>=sys-libs/ncurses-5.2-r5
debug? (
sdl? ( media-libs/libsdl )
)
device-mapper? ( >=sys-fs/lvm2-2.02.45 )
libzfs? ( sys-fs/zfs )
mount? ( sys-fs/fuse )
truetype? (
media-libs/freetype
media-fonts/dejavu
>=media-fonts/unifont-5
)
ppc? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils )
ppc64? ( sys-apps/ibm-powerpc-utils sys-apps/powerpc-utils )
"
DEPEND="${RDEPEND}
app-misc/pax-utils
>=dev-lang/python-2.5.2
sys-devel/flex
sys-devel/bison
sys-apps/help2man
sys-apps/texinfo
>=sys-devel/autogen-5.10
static? (
truetype? (
app-arch/bzip2[static-libs(+)]
media-libs/freetype[static-libs(+)]
sys-libs/zlib[static-libs(+)]
)
)
test? (
dev-libs/libisoburn
app-emulation/qemu
)
"
RDEPEND+="
kernel_linux? (
grub_platforms_efi-32? ( sys-boot/efibootmgr )
grub_platforms_efi-64? ( sys-boot/efibootmgr )
)
!multislot? ( !sys-boot/grub:0 )
"
STRIP_MASK="*/grub/*/*.{mod,img}"
RESTRICT="test"
QA_EXECSTACK="
usr/bin/grub*
usr/sbin/grub*
usr/lib*/grub/*/*.mod
usr/lib*/grub/*/*.module
usr/lib*/grub/*/kernel.exec
usr/lib*/grub/*/kernel.img
"
QA_WX_LOAD="
usr/lib*/grub/*/kernel.exec
usr/lib*/grub/*/kernel.img
usr/lib*/grub/*/*.image
"
QA_PRESTRIPPED="
usr/lib.*/grub/.*/kernel.img
"
pkg_pretend() {
if [[ ${MERGE_TYPE} != binary ]]; then
# Bug 439082
if $(tc-getLD) --version | grep -q "GNU gold"; then
eerror "GRUB does not function correctly when built with the gold linker."
eerror "Please select the bfd linker with binutils-config."
die "GNU gold detected"
fi
fi
}
src_prepare() {
[[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
sed -i -e /autoreconf/d autogen.sh || die
if use multislot; then
# fix texinfo file name, bug 416035
sed -i -e 's/^\* GRUB:/* GRUB2:/' -e 's/(grub)/(grub2)/' docs/grub.texi || die
fi
epatch_user
bash autogen.sh || die
autopoint() { return 0; }
eautoreconf
}
grub_configure() {
local platform
case ${MULTIBUILD_VARIANT} in
efi-32)
platform=efi
if [[ ${CTARGET:-${CHOST}} == x86_64* ]]; then
local CTARGET=${CTARGET:-i386}
fi ;;
efi-64)
platform=efi
if [[ ${CTARGET:-${CHOST}} == i?86* ]]; then
local CTARGET=${CTARGET:-x86_64}
local TARGET_CFLAGS="-Os -march=x86-64 ${TARGET_CFLAGS}"
local TARGET_CPPFLAGS="-march=x86-64 ${TARGET_CPPFLAGS}"
export TARGET_CFLAGS TARGET_CPPFLAGS
fi ;;
guessed) ;;
*) platform=${MULTIBUILD_VARIANT} ;;
esac
# Sabayon: backward compatibility, do not change --with-grubdir
local myeconfargs=(
--disable-werror
--program-prefix=
--program-transform-name="s,grub,grub2,"
--libdir="${EPREFIX}"/usr/lib
--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html
$(use_enable debug mm-debug)
$(use_enable debug grub-emu-usb)
$(use_enable mount grub-mount)
$(use_enable nls)
$(use_enable truetype grub-mkfont)
$(use_enable libzfs)
$(use sdl && use_enable debug grub-emu-sdl)
${platform:+--with-platform=}${platform}
# Let configure detect this where supported
$(usex efiemu '' --disable-efiemu)
)
# Sabayon: keep --with-grubdir=grub to grub for backward compatibility
if use multislot; then
myeconfargs+=(
--program-transform-name="s,grub,grub2,"
--with-grubdir=grub
)
fi
autotools-utils_src_configure
}
src_configure() {
use custom-cflags || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS
use static && append-ldflags -static
tc-export CC NM OBJCOPY STRIP
export TARGET_CC=${TARGET_CC:-${CC}}
# Portage will take care of cleaning up GRUB_PLATFORMS
MULTIBUILD_VARIANTS=( ${GRUB_PLATFORMS:-guessed} )
multibuild_parallel_foreach_variant grub_configure
}
src_compile() {
# Sandbox bug 404013.
use libzfs && addpredict /etc/dfs:/dev/zfs
multibuild_foreach_variant autotools-utils_src_compile
use doc && multibuild_for_best_variant \
autotools-utils_src_compile -C docs html
}
src_test() {
# The qemu dependency is a bit complex.
# You will need to adjust QEMU_SOFTMMU_TARGETS to match the cpu/platform.
multibuild_foreach_variant autotools-utils_src_test
}
src_install() {
multibuild_foreach_variant autotools-utils_src_install \
bashcompletiondir="$(get_bashcompdir)"
use doc && multibuild_for_best_variant run_in_build_dir \
emake -C docs DESTDIR="${D}" install-html
# Install fonts setup hook
exeinto /etc/grub.d
doexe "${FILESDIR}/00_fonts"
if use multislot; then
mv "${ED%/}"/usr/share/info/grub{,2}.info || die
fi
insinto /etc/default
newins "${FILESDIR}"/grub.default-2 grub
# Backward compatibility with Grub 1.99 executables
dosym /usr/sbin/grub2-mkconfig /sbin/grub-mkconfig
dosym /usr/sbin/grub2-install /sbin/grub2-install
cd "${ED}" || die
pax-mark mpes $(scanelf -BF %F usr/{bin,sbin})
}
pkg_postinst() {
elog "For information on how to configure grub-2 please refer to the guide:"
elog " http://wiki.gentoo.org/wiki/GRUB2_Quick_Start"
if [[ -z ${REPLACING_VERSIONS} ]]; then
if ! has_version sys-boot/os-prober; then
elog "Install sys-boot/os-prober to enable detection of other operating systems using grub2-mkconfig."
fi
if ! has_version dev-libs/libisoburn; then
elog "Install dev-libs/libisoburn to enable creation of rescue media using grub2-mkrescue."
fi
fi
}
+1
View File
@@ -1,4 +1,5 @@
DIST sabayon-artwork-core-11-r4.tar.xz 16986124 SHA256 b9641267eb4dc356706112cf743dfab56e288c247d86080dd7a4bda4502f5a97 SHA512 71f8d4e55ea1a5957f7bf607e58e516a90a5d4f83ffdc80ed86857c3e1d2fa083a203ee81b99a37e6f4466a4671968a75a38f622c40adf9ef60890dd5b3eb0f6 WHIRLPOOL 894fe3dee181848986df9d34c205b3f5165e8772cafbf65c880608e2b2e2d42182ae925b449623259c6d9f603fe35a30cc8bc309ffedbb41c8307318c946e01d
DIST sabayon-artwork-core-12.tar.xz 20934704 SHA256 b2e52134bd5794a2f0169fe100ddc3869b975c6ece6cc6c35c0c7a3955d34100 SHA512 2acce427ef3b5d10a7d406e979c338b8384f5d2b7951cc7ca1e446ae8692e3bbc37e46831ab01ad98e3b8beafb199a1cc45ce40ddce619563a6f0a4a3ab3a197 WHIRLPOOL 43350360303e8f51db49ec3957c9fb7a723374b206ee59ade73ca2c84cad2976cba650c1450ab62b0302f8b24cb50cf22ac05c2d1f7fec3c99ad0e9b64fa9e11
DIST sabayon-artwork-core-13-r1.tar.xz 20052860 SHA256 ce8f7ab4d94c832a6a9dd7d540ff64ffee37fc42c67420e6155109b6dbd77c55 SHA512 039ba36ed8daae7519b88e2743781556959e801e06c56682ac5975d219220793d508d09edba5be511b3cc04d51b744d3e86834795f801510acec1f08fb4678f1 WHIRLPOOL b004d89197e2249fa5f45300fca31c8e2e393f7cee90c9834c2ca2b3644e0a9f75c67df5d7bdabb849ad11e2b787508a496c84dd2ae178c5382c96d63fad4bff
DIST sabayon-artwork-core-13-r2.tar.xz 20052860 SHA256 ce8f7ab4d94c832a6a9dd7d540ff64ffee37fc42c67420e6155109b6dbd77c55 SHA512 039ba36ed8daae7519b88e2743781556959e801e06c56682ac5975d219220793d508d09edba5be511b3cc04d51b744d3e86834795f801510acec1f08fb4678f1 WHIRLPOOL b004d89197e2249fa5f45300fca31c8e2e393f7cee90c9834c2ca2b3644e0a9f75c67df5d7bdabb849ad11e2b787508a496c84dd2ae178c5382c96d63fad4bff
DIST sabayon-artwork-core-13.tar.xz 20068728 SHA256 047a79697403f38e33dc4981ca0474003b92e3df114d5294ce9b26c4daf3aaf1 SHA512 4b3fc5390d4b313567c5eefd208fb72c123fce10aabc352af4f27c85aa7558e7bbcfb439ccb204947a076d057681115b659623534cc28aadc5e572842b61a81b WHIRLPOOL 4d294167e764f76a69f5348db1515d3f2ece14a886f3ba35f0d41bbe9b4865bf460ee0d1228bac649fa40e06c753d17d185251f9372970fb60aeee3f0edbc625
@@ -0,0 +1,51 @@
# Copyright 1999-2015 Sabayon
# Distributed under the terms of the GNU General Public License v2
#
EAPI=5
inherit eutils mount-boot sabayon-artwork
DESCRIPTION="Official Sabayon Linux Core Artwork"
HOMEPAGE="http://www.sabayon.org/"
SRC_URI="mirror://sabayon/${CATEGORY}/${PN}/${PN}-${PVR}.tar.xz"
LICENSE="CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~arm ~x86 ~amd64"
IUSE=""
RDEPEND="
sys-apps/findutils
x11-themes/sabayon-artwork-plymouth-default
x11-themes/sabayon-artwork-grub
"
S="${WORKDIR}/${PN}"
src_install() {
# Fbsplash theme
cd "${S}"/fbsplash || die
dodir /etc/splash/sabayon
cp -r "${S}"/fbsplash/sabayon/* "${D}"/etc/splash/sabayon
# Cursors
cd "${S}"/mouse/entis/cursors || die
dodir /usr/share/cursors/xorg-x11/entis/cursors
insinto /usr/share/cursors/xorg-x11/entis/cursors
doins -r ./
# Wallpaper
cd "${S}"/background || die
insinto /usr/share/backgrounds
doins *.png *.jpg
newins sabayonlinux.png sabayonlinux-nvidia.png
}
pkg_postinst() {
# mount boot first
mount-boot_mount_boot_partition
# Update Sabayon initramfs images
update_sabayon_kernel_initramfs_splash
einfo "Please report bugs or glitches to"
einfo "http://bugs.sabayon.org"
}
+1
View File
@@ -1,3 +1,4 @@
DIST sabayon-artwork-grub-11.tar.xz 289556 SHA256 2c6dd9360daa7053fde64ade8b789e61ebbac4183fee257e0a2b7cda70d87114 SHA512 89d659f4cf76ea1c10bb8b3662878660e3d6f4cb26206b7f5ea23a850b0f88e4a38f23aef99d0f66525a1aa98f8c46f5c69e3bfa8b0eb979abf4bb9fe9e5d946 WHIRLPOOL 20d5a312cdc9829cd12d0f15dde1d3a354ad048ae1b426aa2646e99dafe5bc5c8f30821327a1a92311dde724738276a8d4a8a615ebe7ba18760a99a2f9cfc731
DIST sabayon-artwork-grub-12-r1.tar.xz 318980 SHA256 31e3bb67d36321c939afd97428b678e118393941247230822383f1c5d0139739 SHA512 e100628a66cc292d7398fdbdd2b519f1abd9945da1bba3d7b032e2c199e9a14a22faf641fa122d26a8df09a408b0a4202bc0f68584d0f3beec39aa1d6f2c7340 WHIRLPOOL 846bf73c2c3192f1442eeaa26aeb6568bab614fb5f1a3c90c41108c9cc1c7fa08d90b9a4959224818c931d9a48d556108614b32622496e44562f59bf0d545dd1
DIST sabayon-artwork-grub-13.tar.xz 317964 SHA256 94d77ae2903ec4a6421dabecde19238241c3cf4a645991390df9707b9ce25cff SHA512 a4c0f1e60f8ebe6b1bd6bbc0e4d3cc37d29a4c1908c38adb9278c93a41c3b8cd5476fc1117bd8062f2d8fa7074c3282cbe5d29d543d50b6e1f37c3fa84d72b26 WHIRLPOOL 92daa4064061cf4a04e90be9b453bc9875384c3c07c2a00d42920597c5fbfcd973e5e541cf81ee5d1bbd2515709ddba17494735e10a6540c43c19b8cd618f117
DIST sabayon-artwork-grub-14.tar.xz 16968 SHA256 3899c3d5db3af93f892e929539b1c049ab14b4772ac75dcf3e7e91d933573e2c SHA512 6dbb95ff9fa2584bd65e971ee61779613ff809f8f788b39770e8b0c195c751e38b092b0e3cc4cac8c22ce4714cd186ffedc63c9d116f4c6289caf29406e6f1ca WHIRLPOOL c38d6ceb6447322e34636919b94ad808e4f1048e6685a2a01da2ef2c49e0fb0a3ef20cfb47242516fa1a93ee4f5db9740b58051b8caaa2d1754856f828825974
@@ -0,0 +1,34 @@
# Copyright 2004-2015 Sabayon
# Distributed under the terms of the GNU General Public License v2
#
EAPI=5
inherit base mount-boot
DESCRIPTION="Sabayon GRUB2 background images"
HOMEPAGE="http://www.sabayon.org/"
SRC_URI="mirror://sabayon/${CATEGORY}/${PN}/${PN}-${PVR}.tar.xz"
LICENSE="CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
S="${WORKDIR}/${PN}"
src_install () {
cd "${S}/images"
dodir /usr/share/grub
insinto /usr/share/grub
doins default-splash.png
}
pkg_postinst() {
# install Sabayon splash here, cannot touch boot/grub inside
# src_install
local dir="${ROOT}"boot/grub
cp "${ROOT}/usr/share/grub/default-splash.png" "${dir}/default-splash.png" || \
ewarn "cannot install default splash file!"
}
@@ -1,3 +1,4 @@
DIST sabayon-artwork-isolinux-11.tar.xz 24704 SHA256 b8327e89d9b2dd3d15e1e45b6fbeb9e63368a119cc6dd7cc01e81d3dc9546b97 SHA512 63113a417a9ec14a126408ab40ff3502a2772c0066e0a247016dbca909346b30bbcd78133d449562016c38af3aab039dc7bf7c2a66f571bb1d268891e1775bc0 WHIRLPOOL f589c36c5f311290b20e3e5af7717334febc828d4953cca31a9b4bd95959d6fb50fa6efaf48cfc23ffd2345e6319e02d6964a286335c291988dc6130e74ced61
DIST sabayon-artwork-isolinux-12-r1.tar.xz 30132 SHA256 3ceffe28edf608f9778aaa3758a41ac27837899befbc30e1e7268391a0d1fb7d SHA512 ca4ea00068d60444b159fd7eb1d95ba24df040ee4cd036977bcfa15ffa3032b68bc72c30cddf875747450beec036d6ec18e22f3d47fb054ef041d42fd4321e93 WHIRLPOOL 3964798d6a893c3dd5dc4edb8c2dd96edf2ea0e9987e5e2a05d8052c70aa171f613c7221b65b19edf53d27028aba165161878c45f65b6663c11e0d322bc1c572
DIST sabayon-artwork-isolinux-13.tar.xz 31260 SHA256 7dc95cdd2ae32e2efe71f5a84a7fd7d0f20b6947038d9729f0e3d1a7a250e251 SHA512 349a67b16d2ca25e90514719716b76266c9f0d14b4cc0e6af0cf687f54acb68cdea518e42c1461740bb36aaf3dfabc4ed1351a4428c3fac08e2d79ef07f20fa0 WHIRLPOOL 1e468042a0a7ad06d646c0931b8fc52a6c3df450b49967322f6c755aa4f21e254b67751855150a4d69a1a9996217d44905b69b0f05b5623e6620902dc27ee463
DIST sabayon-artwork-isolinux-14.tar.xz 11116 SHA256 04fd7ec47b0e00011a83f178037c4ec31c6813524acc3b56f735cc14790d966d SHA512 c495140a893408be2731ffc6f5d89149b9924ed83279b9f754ba69b2b374d86cca9ca846efa7618cbd64b38069b548d970fd4f09284461b3751b3d7b78937aaa WHIRLPOOL dfc84ea2e8aec83131c556580825378965bc9e01bee55e510287e82d2126875e6c046ffb0de6458b380b9fc7e432662849579125f086517ef996df41616f0b36
@@ -0,0 +1,26 @@
# Copyright 2004-2015 Sabayon
# Distributed under the terms of the GNU General Public License v2
#
EAPI=5
inherit base
DESCRIPTION="Sabayon Isolinux Live Images Background"
HOMEPAGE="http://www.sabayon.org/"
SRC_URI="mirror://sabayon/${CATEGORY}/${PN}/${PN}-${PVR}.tar.xz"
LICENSE="CCPL-Attribution-ShareAlike-3.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=""
S="${WORKDIR}/${PN}"
src_install () {
cd "${S}/images"
dodir /usr/share/backgrounds/isolinux
insinto /usr/share/backgrounds/isolinux
doins back.jpg
}