/[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.44 Revision 1.45
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.44 2011/10/04 18:23:19 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/Attic/grub-9999.ebuild,v 1.45 2011/11/02 15:09:11 flameeyes 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="autotools bzr" 9 LIVE_ECLASS="bzr"
10 SRC_URI="" 10 SRC_URI=""
11 DO_AUTORECONF="true"
11else 12else
12 MY_P=${P/_/\~} 13 MY_P=${P/_/\~}
13 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz 14 SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.xz
14 mirror://gentoo/${MY_P}.tar.xz" 15 mirror://gentoo/${MY_P}.tar.xz"
15 S=${WORKDIR}/${MY_P} 16 S=${WORKDIR}/${MY_P}
16fi 17fi
17 18
18inherit mount-boot eutils flag-o-matic pax-utils toolchain-funcs ${LIVE_ECLASS} 19inherit mount-boot eutils flag-o-matic pax-utils toolchain-funcs ${DO_AUTORECONF:+autotools} ${LIVE_ECLASS}
19unset LIVE_ECLASS 20unset LIVE_ECLASS
20 21
21DESCRIPTION="GNU GRUB boot loader" 22DESCRIPTION="GNU GRUB boot loader"
22HOMEPAGE="http://www.gnu.org/software/grub/" 23HOMEPAGE="http://www.gnu.org/software/grub/"
23 24
56 truetype? ( media-libs/freetype >=media-fonts/unifont-5 )" 57 truetype? ( media-libs/freetype >=media-fonts/unifont-5 )"
57DEPEND="${RDEPEND} 58DEPEND="${RDEPEND}
58 >=dev-lang/python-2.5.2 59 >=dev-lang/python-2.5.2
59 sys-devel/flex 60 sys-devel/flex
60 virtual/yacc 61 virtual/yacc
62 sys-apps/texinfo
61" 63"
62if [[ ${PV} == "9999" ]]; then 64if [[ -n ${DO_AUTORECONF} ]] ; then
63 DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man" 65 DEPEND+=" >=sys-devel/autogen-5.10 sys-apps/help2man"
64else 66else
65 DEPEND+=" app-arch/xz-utils" 67 DEPEND+=" app-arch/xz-utils"
66fi 68fi
67 69
164 epatch \ 166 epatch \
165 "${FILESDIR}/1.99-call_proper_grub_probe.patch" 167 "${FILESDIR}/1.99-call_proper_grub_probe.patch"
166 168
167 epatch_user 169 epatch_user
168 170
171 # fix texinfo file name, as otherwise the grub2.info file will be
172 # useless
173 sed -i \
174 -e '/setfilename/s:grub.info:grub2.info:' \
175 -e 's:(grub):(grub2):' \
176 "${S}"/docs/grub.texi
177
169 # autogen.sh does more than just run autotools 178 # autogen.sh does more than just run autotools
170 if [[ ${PV} == "9999" ]] ; then 179 if [[ -n ${DO_AUTORECONF} ]] ; then
171 sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die 180 sed -i -e '/^autoreconf/s:^:set +e; e:' autogen.sh || die
172 (. ./autogen.sh) || die 181 (. ./autogen.sh) || die
173 fi 182 fi
174 183
175 # install into the right dir for eselect #372735 184 # install into the right dir for eselect #372735

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.20