/[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.32 Revision 1.33
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.32 2011/04/03 18:18:12 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.33 2011/05/29 17:25:05 vapier Exp $
4 4
5# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch 5# XXX: need to implement a grub.conf migration in pkg_postinst before we ~arch
6EAPI="2"
6 7
7inherit mount-boot eutils flag-o-matic toolchain-funcs 8inherit mount-boot eutils flag-o-matic toolchain-funcs
8 9
9if [[ ${PV} == "9999" ]] ; then 10if [[ ${PV} == "9999" ]] ; then
10 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/" 11 EBZR_REPO_URI="http://bzr.savannah.gnu.org/r/grub/trunk/grub/"
35[[ ${PV} == "9999" ]] && DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man" 36[[ ${PV} == "9999" ]] && DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man"
36 37
37export STRIP_MASK="*/grub/*/*.mod" 38export STRIP_MASK="*/grub/*/*.mod"
38QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest" 39QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest"
39 40
40src_unpack() { 41src_prepare() {
41 if [[ ${PV} == "9999" ]] ; then
42 bzr_src_unpack
43 else
44 unpack ${A}
45 fi
46 cd "${S}"
47 epatch_user 42 epatch_user
48 43
49 # autogen.sh does more than just run autotools 44 # autogen.sh does more than just run autotools
50 # need to eautomake due to weirdness #296013 45 # need to eautomake due to weirdness #296013
51 if [[ ${PV} == "9999" ]] ; then 46 if [[ ${PV} == "9999" ]] ; then
52 sed -i -e '/^autoreconf/s:^:e:' autogen.sh || die 47 sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die
53 (. ./autogen.sh) || die 48 (. ./autogen.sh) || die
54 fi 49 fi
55} 50}
56 51
57src_compile() { 52src_configure() {
58 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS 53 use custom-cflags || unset CFLAGS CPPFLAGS LDFLAGS
59 use static && append-ldflags -static 54 use static && append-ldflags -static
60 55
61 econf \ 56 econf \
62 --disable-werror \ 57 --disable-werror \
67 $(use_enable device-mapper) \ 62 $(use_enable device-mapper) \
68 $(use_enable truetype grub-mkfont) \ 63 $(use_enable truetype grub-mkfont) \
69 $(use_enable debug mm-debug) \ 64 $(use_enable debug mm-debug) \
70 $(use sdl && use_enable debug grub-emu-sdl) \ 65 $(use sdl && use_enable debug grub-emu-sdl) \
71 $(use_enable debug grub-emu-usb) 66 $(use_enable debug grub-emu-usb)
72 emake -j1 || die "making regular stuff" 67}
68
69src_compile() {
70 emake -j1 || die
73} 71}
74 72
75src_install() { 73src_install() {
76 emake DESTDIR="${D}" install || die 74 emake DESTDIR="${D}" install || die
77 dodoc AUTHORS ChangeLog NEWS README THANKS TODO 75 dodoc AUTHORS ChangeLog NEWS README THANKS TODO

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.20