/[gentoo-x86]/sys-boot/grub/grub-9999.ebuild
Gentoo

Diff of /sys-boot/grub/grub-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.46 Revision 1.47
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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/sys-boot/grub/Attic/grub-9999.ebuild,v 1.46 2011/11/11 13:42:09 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.47 2011/11/18 00:04:29 vapier Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7if [[ ${PV} == "9999" ]] ; then 7if [[ ${PV} == "9999" ]] ; then
8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" 8 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/"
11 DO_AUTORECONF="true" 11 DO_AUTORECONF="true"
12else 12else
13 MY_P=${P/_/\~} 13 MY_P=${P/_/\~}
14 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz 14 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
15 mirror://gentoo/${MY_P}.tar.xz" 15 mirror://gentoo/${MY_P}.tar.xz"
16 # Masked until documentation guys consolidate the guide and approve
17 # it for usage.
18 #KEYWORDS="~amd64 ~mips ~x86"
16 S=${WORKDIR}/${MY_P} 19 S=${WORKDIR}/${MY_P}
17fi 20fi
18 21
19inherit mount-boot eutils flag-o-matic pax-utils toolchain-funcs ${DO_AUTORECONF:+autotools} ${LIVE_ECLASS} 22inherit mount-boot eutils flag-o-matic pax-utils toolchain-funcs ${DO_AUTORECONF:+autotools} ${LIVE_ECLASS}
20unset LIVE_ECLASS 23unset LIVE_ECLASS
22DESCRIPTION="GNU GRUB boot loader" 25DESCRIPTION="GNU GRUB boot loader"
23HOMEPAGE="http://www.gnu.org/software/grub/" 26HOMEPAGE="http://www.gnu.org/software/grub/"
24 27
25LICENSE="GPL-3" 28LICENSE="GPL-3"
26SLOT="2" 29SLOT="2"
27[[ ${PV} != "9999" ]] && KEYWORDS="~amd64 ~mips ~x86"
28IUSE="custom-cflags debug device-mapper efiemu nls static sdl truetype" 30IUSE="custom-cflags debug device-mapper efiemu nls static sdl truetype"
29 31
30GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 multiboot pc qemu qemu-mips loongson" 32GRUB_PLATFORMS=(
31# everywhere: 33 # everywhere:
32# emu 34 emu
33# mips only: 35 # mips only:
34# qemu-mips, loongson 36 qemu-mips yeeloong
35# amd64, x86, ppc, ppc64 37 # amd64, x86, ppc, ppc64:
36# ieee1275 38 ieee1275
37# amd64, x86 39 # amd64, x86:
38# coreboot, multiboot, efi-32, pc, qemu 40 coreboot multiboot efi-32 pc qemu
39# amd64 41 # amd64:
40# efi-64 42 efi-64
41for i in ${GRUB_PLATFORMS}; do 43)
42 IUSE+=" grub_platforms_${i}" 44IUSE+=" ${GRUB_PLATFORMS[@]/#/grub_platforms_}"
43done
44unset i
45 45
46# os-prober: Used on runtime to detect other OSes 46# os-prober: Used on runtime to detect other OSes
47# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue 47# xorriso (dev-libs/libisoburn): Used on runtime for mkrescue
48RDEPEND=" 48RDEPEND="
49 dev-libs/libisoburn 49 dev-libs/libisoburn
186 -e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \ 186 -e '/^bashcompletiondir =/s:=.*:= $(datarootdir)/bash-completion:' \
187 util/bash-completion.d/Makefile.in || die 187 util/bash-completion.d/Makefile.in || die
188 188
189 # get enabled platforms 189 # get enabled platforms
190 GRUB_ENABLED_PLATFORMS="" 190 GRUB_ENABLED_PLATFORMS=""
191 for i in ${GRUB_PLATFORMS}; do 191 for i in ${GRUB_PLATFORMS[@]}; do
192 use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}" 192 use grub_platforms_${i} && GRUB_ENABLED_PLATFORMS+=" ${i}"
193 done 193 done
194 [[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed" 194 [[ -z ${GRUB_ENABLED_PLATFORMS} ]] && GRUB_ENABLED_PLATFORMS="guessed"
195 elog "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}" 195 elog "Going to build following platforms: ${GRUB_ENABLED_PLATFORMS}"
196} 196}

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

  ViewVC Help
Powered by ViewVC 1.1.20