description="GNU GRUB (GRand Unified Bootloader) 2." packager="Hannes Mayer " maintainer="Lukc " url="http://www.gnu.org/software/grub/" #XXX: Euh… lzo dans base… pourquoi pas… mais freetype ? # À corriger, donc, et voir si freetype est vraiment requis pour # grub-mkfont. depends=(gettext lzo) if use grub-mkfont; then depends=(${depends[@]} freetype) fi name=grub version=1.97.1 release=1 source=( ftp://alpha.gnu.org/gnu/$name/$name-$version.tar.gz grub2-915resolution.patch ) include autotools # errlogs, etc. build () { cd $name-$version; CFLAGS="${CFLAGS//-O[0-9]/-O1}" ./autogen.sh; patch -p1 < $SRC/grub2-915resolution.patch; sed -i 's|/usr/src/unifont.bdf|/usr/share/fonts/misc/unifont.bdf|' configure; ./configure \ --prefix=$prefix \ --disable-werror \ --sysconfdir=$sysconfdir \ --libdir=$sharedir \ --mandir=$mandir \ --sbindir=/sbin \ $(use_enable nls) \ $(use_enable grub-mkfont); make; make DESTDIR=$PKG install }