diff options
author | Zac Medico <zmedico@gentoo.org> | 2017-04-21 21:13:26 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2017-04-21 21:14:53 -0700 |
commit | ff35cb6978f0cafe74e6962596a058071fa82a6b (patch) | |
tree | 9e847d91a920519fc51962c9d026e353e03bd8d8 /sys-boot/vboot-utils/vboot-utils-59_p20170413.ebuild | |
parent | app-admin/salt: Version bump to 2016.11.4 (diff) | |
download | gentoo-ff35cb6978f0cafe74e6962596a058071fa82a6b.tar.gz gentoo-ff35cb6978f0cafe74e6962596a058071fa82a6b.tar.bz2 gentoo-ff35cb6978f0cafe74e6962596a058071fa82a6b.zip |
sys-boot/vboot-utils: version bump to 59_p20170413
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'sys-boot/vboot-utils/vboot-utils-59_p20170413.ebuild')
-rw-r--r-- | sys-boot/vboot-utils/vboot-utils-59_p20170413.ebuild | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/sys-boot/vboot-utils/vboot-utils-59_p20170413.ebuild b/sys-boot/vboot-utils/vboot-utils-59_p20170413.ebuild new file mode 100644 index 000000000000..15f315769e8d --- /dev/null +++ b/sys-boot/vboot-utils/vboot-utils-59_p20170413.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +# This is the latest commit in the latest branch. +GIT_SHA1="748af73c67abf473d45bbacd708ce79bfc264ff5" + +DESCRIPTION="Chrome OS verified boot tools" +HOMEPAGE="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/ http://dev.chromium.org/chromium-os/chromiumos-design-docs/verified-boot" +# Can't use gitiles directly until b/19710536 is fixed. +#SRC_URI="https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/${GIT_SHA1}.tar.gz -> ${P}.tar.gz" +SRC_URI="mirror://gentoo/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86" +IUSE="libressl minimal static" + +LIB_DEPEND=" + !libressl? ( dev-libs/openssl:0=[static-libs(+)] ) + libressl? ( dev-libs/libressl:0=[static-libs(+)] ) + sys-apps/util-linux:=[static-libs(+)]" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} ) + !minimal? ( + app-arch/xz-utils:= + dev-libs/libyaml:= + )" +DEPEND="${RDEPEND} + static? ( ${LIB_DEPEND} ) + app-crypt/trousers" + +S=${WORKDIR} + +src_prepare() { + default + sed -i \ + -e 's:${DESTDIR}/\(bin\|${LIBDIR}\):${DESTDIR}/usr/\1:g' \ + -e 's:${DESTDIR}/default:${DESTDIR}/etc/default:g' \ + Makefile || die +} + +_emake() { + local arch=$(tc-arch) + emake \ + V=1 \ + QEMU_ARCH= \ + ARCH=${arch} \ + HOST_ARCH=${arch} \ + LIBDIR="$(get_libdir)" \ + DEBUG_FLAGS= \ + WERROR= \ + MINIMAL=$(usev minimal) \ + STATIC=$(usev static) \ + $(usex elibc_musl HAVE_MUSL=1 "") \ + "$@" +} + +src_compile() { + tc-export CC AR CXX PKG_CONFIG + _emake TEST_BINS= all +} + +src_test() { + _emake runtests +} + +src_install() { + _emake DESTDIR="${ED}" install + + insinto /usr/share/vboot/devkeys + doins tests/devkeys/* + + insinto /usr/include/vboot + doins host/include/* \ + firmware/include/gpt.h \ + firmware/include/tlcl.h \ + firmware/include/tss_constants.h + + dolib.a build/libvboot_host.a + + dodoc README +} |