Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/vboot-utils/
Date: Mon, 02 May 2016 00:46:19
Message-Id: 1462149956.e3a0da18e1aa518ac3a3d09691b262b644ac5154.zmedico@gentoo
1 commit: e3a0da18e1aa518ac3a3d09691b262b644ac5154
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 00:42:30 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 00:45:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3a0da18
7
8 sys-boot/vboot-utils: version bump to 51_p20160427 (fixes bug 581470)
9
10 Package-Manager: portage-2.2.28
11
12 sys-boot/vboot-utils/Manifest | 1 +
13 .../vboot-utils/vboot-utils-51_p20160427.ebuild | 83 ++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/sys-boot/vboot-utils/Manifest b/sys-boot/vboot-utils/Manifest
17 index 56f89ed..8b92863 100644
18 --- a/sys-boot/vboot-utils/Manifest
19 +++ b/sys-boot/vboot-utils/Manifest
20 @@ -1,2 +1,3 @@
21 DIST vboot-utils-20130222gite6cf2c2-3.fc19.src.rpm 2170079 SHA256 f20235e5f708bcbe3b30cb684a5aa9fa3f60d1fdea454375db0e62bebabd0c41 SHA512 ccb5320f01d270ff30465e6ffc234d245220afdb9628f9b5f9e8abc7c91c5e58085b5e8eefe217e85faa18166576d945cad9f757d99927389473cb0a4337a05f WHIRLPOOL 9da1a4f503619c9754e4c0b1c2d52deb4c687e693ba521213e2406cba417f5b8ce5645285ed2e106c0d05f56bd325dc7f929692c5de2ff1be2bb7fe191f74c68
22 DIST vboot-utils-42_p20150219.tar.xz 18578108 SHA256 058053fd48afeeb30b48c51eb932ee3f477b1e7fc429b56ed776262010f30226 SHA512 bf1b5579f80bfd3804d74f5fed5ca0f85ff3d66cc4efd1c5e744ab0de50309c7e5168fe9a751579e9fcc0cb7dda72fc98497b2e13437b357b0ad9bb063edd33a WHIRLPOOL 01e5ca949ef417930669783d02b03d103005c6daa395f46bb3eab96a8d7de06875e3017697ed42d6200ca8e649b6b21737c5fc773a25da6da7a61c268dceba90
23 +DIST vboot-utils-51_p20160427.tar.xz 18377808 SHA256 6fc03136474c7cfd88074a9ffe7880dc83917cc0a6be344df422e3f851b50146 SHA512 5b9af2815b8939ae21f4e430744902ccd811627d668eaba709354901eb70553e57050b9068b07fecdfec5bb2ece0c11f1cf0f1a01c0e5f886d1913e1478fe3d7 WHIRLPOOL 4aa9c506c77596b3b598293872ada9cfc127d02f5cf23248ebf131612dcff38058f28bd61d22fc516dfacd7ff9c97d656795cdcce0dd07471930bcc085061a47
24
25 diff --git a/sys-boot/vboot-utils/vboot-utils-51_p20160427.ebuild b/sys-boot/vboot-utils/vboot-utils-51_p20160427.ebuild
26 new file mode 100644
27 index 0000000..803dbd3
28 --- /dev/null
29 +++ b/sys-boot/vboot-utils/vboot-utils-51_p20160427.ebuild
30 @@ -0,0 +1,83 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=5
36 +
37 +inherit eutils toolchain-funcs
38 +
39 +# This is the latest commit in the latest branch.
40 +GIT_SHA1="48b1a50b086e39332d2e1e51a73434e39c40b329"
41 +
42 +DESCRIPTION="Chrome OS verified boot tools"
43 +HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/ http://dev.chromium.org/chromium-os/chromiumos-design-docs/verified-boot"
44 +# Can't use gitiles directly until b/19710536 is fixed.
45 +#SRC_URI="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/${GIT_SHA1}.tar.gz -> ${P}.tar.gz"
46 +SRC_URI="mirror://gentoo/${P}.tar.xz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
51 +IUSE="minimal static"
52 +
53 +LIB_DEPEND="dev-libs/openssl:0=[static-libs(+)]
54 + sys-apps/util-linux:=[static-libs(+)]"
55 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
56 + !minimal? (
57 + app-arch/xz-utils:=
58 + dev-libs/libyaml:=
59 + )"
60 +DEPEND="${RDEPEND}
61 + static? ( ${LIB_DEPEND} )
62 + app-crypt/trousers"
63 +
64 +S=${WORKDIR}
65 +
66 +src_prepare() {
67 + sed -i \
68 + -e 's: -Werror : :g' \
69 + -e 's:${DESTDIR}/\(bin\|${LIBDIR}\):${DESTDIR}/usr/\1:g' \
70 + -e 's:${DESTDIR}/default:${DESTDIR}/etc/default:g' \
71 + Makefile || die
72 +}
73 +
74 +_emake() {
75 + local arch=$(tc-arch)
76 + emake \
77 + V=1 \
78 + QEMU_ARCH= \
79 + ARCH=${arch} \
80 + HOST_ARCH=${arch} \
81 + LIBDIR="$(get_libdir)" \
82 + DEBUG_FLAGS= \
83 + MINIMAL=$(usev minimal) \
84 + STATIC=$(usev static) \
85 + $(usex elibc_musl HAVE_MUSL=1 "") \
86 + "$@"
87 +}
88 +
89 +src_compile() {
90 + tc-export CC AR CXX PKG_CONFIG
91 + _emake TEST_BINS= all
92 +}
93 +
94 +src_test() {
95 + _emake runtests
96 +}
97 +
98 +src_install() {
99 + _emake DESTDIR="${ED}" install
100 +
101 + insinto /usr/share/vboot/devkeys
102 + doins tests/devkeys/*
103 +
104 + insinto /usr/include/vboot
105 + doins host/include/* \
106 + firmware/include/gpt.h \
107 + firmware/include/tlcl.h \
108 + firmware/include/tss_constants.h
109 +
110 + dolib.a build/libvboot_host.a
111 +
112 + dodoc README
113 +}