/[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.22 Revision 1.28
1# Copyright 1999-2010 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.22 2010/07/06 00:41:18 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.28 2011/02/13 07:41:16 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
6 6
7inherit mount-boot eutils flag-o-matic toolchain-funcs 7inherit mount-boot eutils flag-o-matic toolchain-funcs
8 8
23KEYWORDS="" 23KEYWORDS=""
24IUSE="custom-cflags debug truetype multislot static" 24IUSE="custom-cflags debug truetype multislot static"
25 25
26RDEPEND=">=sys-libs/ncurses-5.2-r5 26RDEPEND=">=sys-libs/ncurses-5.2-r5
27 dev-libs/lzo 27 dev-libs/lzo
28 truetype? ( media-libs/freetype media-fonts/unifont )" 28 truetype? ( media-libs/freetype >=media-fonts/unifont-5 )"
29DEPEND="${RDEPEND} 29DEPEND="${RDEPEND}
30 dev-lang/ruby" 30 >=sys-devel/autogen-5.10
31 >=dev-lang/python-2.5.2"
32[[ ${PV} == "9999" ]] && DEPEND+=" sys-apps/help2man"
31PROVIDE="virtual/bootloader" 33PROVIDE="virtual/bootloader"
32 34
33export STRIP_MASK="*/grub/*/*.mod" 35export STRIP_MASK="*/grub/*/*.mod"
34QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check" 36QA_EXECSTACK="sbin/grub-probe sbin/grub-setup sbin/grub-mkdevicemap bin/grub-script-check bin/grub-fstest"
35 37
36src_unpack() { 38src_unpack() {
37 if [[ ${PV} == "9999" ]] ; then 39 if [[ ${PV} == "9999" ]] ; then
38 bzr_src_unpack 40 bzr_src_unpack
39 else 41 else
44 epatch_user 46 epatch_user
45 47
46 # autogen.sh does more than just run autotools 48 # autogen.sh does more than just run autotools
47 # need to eautomake due to weirdness #296013 49 # need to eautomake due to weirdness #296013
48 if [[ ${PV} == "9999" ]] ; then 50 if [[ ${PV} == "9999" ]] ; then
49 sed -i \ 51 sed -i -e '/^autoreconf/s:^:e:' autogen.sh || die
50 -e '/^\(auto\|ac\)/s:^:e:' \
51 -e "s:^eautomake:`which automake`:" \
52 autogen.sh
53 (. ./autogen.sh) || die 52 (. ./autogen.sh) || die
54 fi 53 fi
55} 54}
56 55
57src_compile() { 56src_compile() {
101 #einfo "Running: ${install} " 100 #einfo "Running: ${install} "
102 #${install} 101 #${install}
103} 102}
104 103
105pkg_postinst() { 104pkg_postinst() {
105 mount-boot_mount_boot_partition
106
106 if use multislot ; then 107 if use multislot ; then
107 elog "You have installed grub2 with USE=multislot, so to coexist" 108 elog "You have installed grub2 with USE=multislot, so to coexist"
108 elog "with grub1, the grub2 install binary is named grub2-install." 109 elog "with grub1, the grub2 install binary is named grub2-install."
109 fi 110 fi
110 setup_boot_dir "${ROOT}"boot 111 setup_boot_dir "${ROOT}"boot
112
113 # needs to be after we call setup_boot_dir
114 mount-boot_pkg_postinst
111} 115}

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20