Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/refind/
Date: Mon, 21 Sep 2015 03:54:12
Message-Id: 1442807618.7cf329c650af9be1178a6df6f950a9e64aebea69.idella4@gentoo
1 commit: 7cf329c650af9be1178a6df6f950a9e64aebea69
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 21 03:53:38 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 21 03:53:38 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cf329c6
7
8 sys-boot/refind: bump to -0.9.2, ebuild a live / versioned combo
9
10 sourced fron, and closes, bug #560962
11
12 Package-Manager: portage-2.2.20.1
13
14 sys-boot/refind/Manifest | 1 +
15 sys-boot/refind/refind-0.9.2.ebuild | 101 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 102 insertions(+)
17
18 diff --git a/sys-boot/refind/Manifest b/sys-boot/refind/Manifest
19 index d2c33c7..01fdfe6 100644
20 --- a/sys-boot/refind/Manifest
21 +++ b/sys-boot/refind/Manifest
22 @@ -1 +1,2 @@
23 DIST refind-src-0.9.0.zip 2939724 SHA256 842a01d7964bc8c8000a66e6d08f6fadb4c257d251b1277cebff0bf731e024aa SHA512 c49e3110e6b9f8d44dadae1ab828d3bf59bbce2da9170efed73db961135144ae9963b57d4cc39af2b15ecdf1f289359bda56c3d3e8f72d05be165ae5a3e2654d WHIRLPOOL 225a6b84ea7044e8fe0bab5e268c8c46a4523ab6f408d1bb2a94adfe54afe80c9c83ec0dc104945b332ae6c375c9d041972dee39baa43665588eb0dfc1fe4362
24 +DIST refind-src-0.9.2.zip 2941986 SHA256 9022da3d46493395c273e2d2fc555d1c786fb1b9c11b2912751a88fe3328212a SHA512 6636cf02bb69ffe699d5f9717d09b80db0e4330aa52c14949e8612caed11f032370db17700c15d285173729271d2434fd0fbc39f5b445a3c05255ee14d125d47 WHIRLPOOL 2d81427bf6cc9cf021a4ffc7238bcf914e380fea091cbefaa601e391cf28f43f7c3ef1181744e4aab3d71d2535d88ba633b13cdae696f0baddd26d3c2511a88d
25
26 diff --git a/sys-boot/refind/refind-0.9.2.ebuild b/sys-boot/refind/refind-0.9.2.ebuild
27 new file mode 100644
28 index 0000000..7520444
29 --- /dev/null
30 +++ b/sys-boot/refind/refind-0.9.2.ebuild
31 @@ -0,0 +1,101 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit eutils
39 +
40 +if [[ ${PV} == *9999 ]]; then
41 + inherit git-r3
42 + EGIT_REPO_URI="git://git.code.sf.net/p/refind/code"
43 +else
44 + SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.zip"
45 + KEYWORDS="~x86 ~amd64"
46 +fi
47 +
48 +DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith"
49 +HOMEPAGE="http://www.rodsbooks.com/refind/index.html"
50 +
51 +LICENSE="GPL-3"
52 +SLOT="0"
53 +IUSE="btrfs +ext2 +ext4 hfs +iso9660 ntfs reiserfs"
54 +
55 +DOCS="NEWS.txt README.txt docs/refind docs/Styles"
56 +
57 +DEPEND=">=sys-boot/gnu-efi-3.0u"
58 +
59 +src_prepare() {
60 + # bug 560280: Relocate the install location of refind.conf-sample
61 + local oldstring="\$RefindDir\/refind.conf-sample"
62 + local newstring="\/usr\/share\/doc\/${PF}\/refind.conf-sample"
63 + sed -e "s/$oldstring/$newstring/" -i install.sh || die
64 +
65 + epatch_user
66 +}
67 +
68 +src_compile() {
69 + emake gnuefi
70 +
71 + pushd "${S}/filesystems" > /dev/null
72 + for fs in ${IUSE}; do
73 + fs=${fs#+}
74 + if use "${fs}"; then
75 + einfo "Building ${fs} filesystem driver"
76 + rm -f fsw_efi.o
77 +
78 + # ARCH detection in the Makefile not working
79 + use x86 && buildarch=ia32
80 + use amd64 && buildarch=x86_64
81 + emake DRIVERNAME=${fs} ARCH=${buildarch} -f Make.gnuefi
82 + fi
83 + done
84 + popd > /dev/null
85 +}
86 +
87 +src_install() {
88 + exeinto "/usr/share/${P}"
89 + doexe install.sh
90 +
91 + dodoc -r ${DOCS}
92 +
93 + dodoc refind.conf-sample
94 + docompress -x /usr/share/doc/${PF}/refind.conf-sample
95 +
96 + insinto "/usr/share/${P}/refind"
97 + use x86 && doins refind/refind_ia32.efi
98 + use amd64 && doins refind/refind_x64.efi
99 +
100 + use x86 && filearch=ia32
101 + use amd64 && filearch=x64
102 + insinto "/usr/share/${P}/refind/drivers_${filearch}"
103 + for fs in ${IUSE}; do
104 + fs=${fs#+}
105 + if use "${fs}"; then
106 + doins "drivers_${filearch}/${fs}_${filearch}.efi"
107 + fi
108 + done
109 +
110 + insinto "/usr/share/${P}/refind"
111 + doins -r images icons fonts banners
112 +
113 + insinto "/usr/share/${P}/keys"
114 + doins keys/*
115 +}
116 +
117 +pkg_postinst() {
118 + elog "EFI executables have been built and installed into /usr/share/${P}"
119 + elog "You will need to use the provided install script 'install.sh' or"
120 + elog "manually install the binaries into your EFI System Partition"
121 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
122 + elog ""
123 + elog "For key generation and binary signing for use with SecureBoot, the"
124 + elog "package app-crypt/sbsigntool can be installed"
125 + elog ""
126 + elog "A sample configration can be found at"
127 + elog "/usr/share/doc/${PF}/refind.conf-sample"
128 + else
129 + ewarn "Note that this will not update any EFI binaries on your EFI"
130 + ewarn "System Partition - this needs to be done manually."
131 + fi
132 +}