/[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.78 Revision 1.79
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.78 2012/07/13 18:05:19 floppym Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.79 2012/07/18 16:34:36 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/"
28DESCRIPTION="GNU GRUB boot loader" 28DESCRIPTION="GNU GRUB boot loader"
29HOMEPAGE="http://www.gnu.org/software/grub/" 29HOMEPAGE="http://www.gnu.org/software/grub/"
30 30
31LICENSE="GPL-3" 31LICENSE="GPL-3"
32SLOT="2" 32SLOT="2"
33IUSE="custom-cflags debug device-mapper efiemu mount nls static sdl truetype libzfs" 33IUSE="custom-cflags debug device-mapper doc efiemu mount nls static sdl truetype libzfs"
34 34
35GRUB_PLATFORMS=( 35GRUB_PLATFORMS=(
36 # everywhere: 36 # everywhere:
37 emu 37 emu
38 # mips only: 38 # mips only:
174 ;; 174 ;;
175 esac 175 esac
176 176
177 ECONF_SOURCE="${S}" \ 177 ECONF_SOURCE="${S}" \
178 econf \ 178 econf \
179 --htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
179 --disable-werror \ 180 --disable-werror \
180 --program-prefix= \ 181 --program-prefix= \
181 --program-transform-name="s,grub,grub2," \ 182 --program-transform-name="s,grub,grub2," \
182 --with-grubdir=grub2 \ 183 --with-grubdir=grub2 \
183 ${with_platform} \ 184 ${with_platform} \
200grub_src_compile() { 201grub_src_compile() {
201 default_src_compile 202 default_src_compile
202 pax-mark -mpes "${grub_binaries[@]}" 203 pax-mark -mpes "${grub_binaries[@]}"
203} 204}
204 205
206grub_build_docs() {
207 emake -C docs html
208}
209
205grub_src_install() { 210grub_src_install() {
206 default_src_install 211 default_src_install
212}
213
214grub_install_docs() {
215 emake -C docs DESTDIR="${D}" install-html
207} 216}
208 217
209src_prepare() { 218src_prepare() {
210 if [[ ${PV} != 9999 ]]; then 219 if [[ ${PV} != 9999 ]]; then
211 epatch "${FILESDIR}/${P}-parallel-make.patch" #424231 220 epatch "${FILESDIR}/${P}-parallel-make.patch" #424231
282 local i 291 local i
283 292
284 for i in ${GRUB_ENABLED_PLATFORMS}; do 293 for i in ${GRUB_ENABLED_PLATFORMS}; do
285 grub_run_phase ${FUNCNAME} ${i} 294 grub_run_phase ${FUNCNAME} ${i}
286 done 295 done
296
297 # Just build docs once
298 use doc && grub_run_phase build_docs ${i}
287} 299}
288 300
289src_install() { 301src_install() {
290 local i 302 local i
291 303
292 for i in ${GRUB_ENABLED_PLATFORMS}; do 304 for i in ${GRUB_ENABLED_PLATFORMS}; do
293 grub_run_phase ${FUNCNAME} ${i} 305 grub_run_phase ${FUNCNAME} ${i}
294 done 306 done
307
308 use doc && grub_run_phase install_docs ${i}
295 309
296 mv "${ED}"usr/share/info/grub{,2}.info || die 310 mv "${ED}"usr/share/info/grub{,2}.info || die
297 311
298 # can't be in docs array as we use default_src_install in different builddir 312 # can't be in docs array as we use default_src_install in different builddir
299 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 313 dodoc AUTHORS ChangeLog NEWS README THANKS TODO

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.79

  ViewVC Help
Powered by ViewVC 1.1.20