/[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.67 Revision 1.68
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.67 2012/06/09 04:47:30 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.68 2012/06/25 03:53:43 floppym 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/"
9 LIVE_ECLASS="bzr" 9 LIVE_ECLASS="bzr"
10 SRC_URI="" 10 SRC_URI=""
11 DO_AUTORECONF="true" 11 DO_AUTORECONF="true"
12else 12else
13 MY_P=${P/_/\~} 13 MY_P=${P/_/\~}
14 if [[ ${PV} == *_alpha* || ${PV} == *_beta* ]]; then 14 if [[ ${PV} == *_alpha* || ${PV} == *_beta* || ${PV} == *_rc* ]]; then
15 SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz" 15 SRC_URI="mirror://gnu-alpha/${PN}/${MY_P}.tar.xz"
16 else 16 else
17 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz 17 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
18 mirror://gentoo/${MY_P}.tar.xz" 18 mirror://gentoo/${MY_P}.tar.xz"
19 fi 19 fi
127} 127}
128 128
129grub_src_configure() { 129grub_src_configure() {
130 local platform=$1 130 local platform=$1
131 local with_platform= 131 local with_platform=
132 local enable_efiemu="--disable-efiemu"
132 133
133 [[ -z ${platform} ]] && die "${FUNCNAME} [platform]" 134 [[ -z ${platform} ]] && die "${FUNCNAME} [platform]"
134 135
135 # Used below for efi cross-building 136 # Used below for efi cross-building
136 tc-export CC NM OBJCOPY STRIP 137 tc-export CC NM OBJCOPY STRIP
158 export TARGET_CC TARGET_CFLAGS TARGET_CPPFLAGS 159 export TARGET_CC TARGET_CFLAGS TARGET_CPPFLAGS
159 fi 160 fi
160 with_platform="--with-platform=efi" 161 with_platform="--with-platform=efi"
161 ;; 162 ;;
162 guessed) ;; 163 guessed) ;;
164 *)
163 *) with_platform="--with-platform=${platform}" ;; 165 with_platform="--with-platform=${platform}"
166 case ${CTARGET:-${CHOST}} in
167 i?86*|x86_64*)
168 enable_efiemu=$(use_enable efiemu)
169 ;;
170 esac
171 ;;
164 esac 172 esac
165 173
166 ECONF_SOURCE="${S}" \ 174 ECONF_SOURCE="${S}" \
167 econf \ 175 econf \
168 --disable-werror \ 176 --disable-werror \
171 --with-grubdir=grub2 \ 179 --with-grubdir=grub2 \
172 ${with_platform} \ 180 ${with_platform} \
173 $(use_enable debug mm-debug) \ 181 $(use_enable debug mm-debug) \
174 $(use_enable debug grub-emu-usb) \ 182 $(use_enable debug grub-emu-usb) \
175 $(use_enable device-mapper) \ 183 $(use_enable device-mapper) \
176 $(use_enable efiemu) \ 184 ${enable_efiemu} \
177 $(use_enable mount grub-mount) \ 185 $(use_enable mount grub-mount) \
178 $(use_enable nls) \ 186 $(use_enable nls) \
179 $(use_enable truetype grub-mkfont) \ 187 $(use_enable truetype grub-mkfont) \
180 $(use_enable libzfs) \ 188 $(use_enable libzfs) \
181 $(use sdl && use_enable debug grub-emu-sdl) 189 $(use sdl && use_enable debug grub-emu-sdl)

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68

  ViewVC Help
Powered by ViewVC 1.1.20