diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/efivar-30 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/efivar-30 new file mode 100644 index 0000000000..0ba3d19cc1 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/efivar-30 @@ -0,0 +1,12 @@ +DEFINED_PHASES=compile configure install prepare +DEPEND=dev-libs/popt >=sys-kernel/linux-headers-3.18 virtual/pkgconfig +DESCRIPTION=Tools and library to manipulate EFI variables +EAPI=6 +HOMEPAGE=https://github.com/rhinstaller/efivar +KEYWORDS=amd64 ~arm64 ia64 x86 +LICENSE=GPL-2 +RDEPEND=dev-libs/popt +SLOT=0/1 +SRC_URI=https://github.com/rhinstaller/efivar/releases/download/30/efivar-30.tar.bz2 +_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 flag-o-matic 2274fcc1e7ef6affaff5bcd636275417 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af +_md5_=a630499decdb59fe156ceb0647c9a7da diff --git a/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/efivar-31 b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/efivar-31 new file mode 100644 index 0000000000..faa724f564 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/metadata/md5-cache/sys-libs/efivar-31 @@ -0,0 +1,12 @@ +DEFINED_PHASES=configure prepare +DEPEND=dev-libs/popt >=sys-kernel/linux-headers-3.18 virtual/pkgconfig +DESCRIPTION=Tools and library to manipulate EFI variables +EAPI=6 +HOMEPAGE=https://github.com/rhinstaller/efivar +KEYWORDS=amd64 ~arm64 ~ia64 x86 +LICENSE=GPL-2 +RDEPEND=dev-libs/popt +SLOT=0/1 +SRC_URI=https://github.com/rhinstaller/efivar/releases/download/31/efivar-31.tar.bz2 +_eclasses_=epatch 8233751dc5105a6ae8fcd86ce2bb0247 estack 43ddf5aaffa7a8d0482df54d25a66a1f eutils 227b041a120d309fdefbebb3b8c1dfa9 flag-o-matic 2274fcc1e7ef6affaff5bcd636275417 ltprune 2770eed66a9b8ef944714cd0e968182e multilib 97f470f374f2e94ccab04a2fb21d811e toolchain-funcs 185a06792159ca143528e7010368e8af +_md5_=040f70236d7fb51511e64a436478710a diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/efivar/Manifest b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/Manifest new file mode 100644 index 0000000000..213be2ace8 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/Manifest @@ -0,0 +1,2 @@ +DIST efivar-30.tar.bz2 73202 BLAKE2B 6b146cb6d664e3419361e72ab6fd1578522e7fc219613ae21566cb40a700fe70f18750cc753338faca2ad078e2bc933fb33a3a4cdfb148eabb0fc71b1319fb71 SHA512 0a6d7175762011c3fc67b531d3d19a45e82195c729b9ff498be02b3a6a73f6c3c4f9e14a27470c6744b741d7d54db9ef24c7882639af25fca1034b7b9f641b39 +DIST efivar-31.tar.bz2 82404 BLAKE2B d339aa8ab7dcd6a60cb067fccfbc2c42407fba211ca96eb39f227d57e9403462505940f427651dfaffa8272c9edfe70898f181b9f6ecddbae4745eb3262de949 SHA512 5055f690fd99cf59895dcf3d11103494d917d4923567626f0bee816ea5e4dd56cec23627ede5f21bdc57b7306522471ad19cc8ab22ae94591dbd1925c084f163 diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/efivar/efivar-30.ebuild b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/efivar-30.ebuild new file mode 100644 index 0000000000..b50a9b12bb --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/efivar-30.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Tools and library to manipulate EFI variables" +HOMEPAGE="https://github.com/rhinstaller/efivar" +SRC_URI="https://github.com/rhinstaller/efivar/releases/download/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0/1" +KEYWORDS="amd64 ~arm64 ia64 x86" + +RDEPEND="dev-libs/popt" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-3.18 + virtual/pkgconfig +" + +src_prepare() { + default + sed -i -e s/-Werror// gcc.specs || die +} + +src_configure() { + tc-export CC + + # https://github.com/rhinstaller/efivar/issues/64 + append-cflags -flto + + tc-ld-disable-gold + export libdir="/usr/$(get_libdir)" + unset LIBS # Bug 562004 +} + +src_compile() { + # Avoid building static binary/libs + opts=( + BINTARGETS=efivar + STATICLIBTARGETS= + ) + emake "${opts[@]}" +} + +src_install() { + emake "${opts[@]}" DESTDIR="${D}" install +} diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/efivar/efivar-31.ebuild b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/efivar-31.ebuild new file mode 100644 index 0000000000..342d887e1b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/efivar-31.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Tools and library to manipulate EFI variables" +HOMEPAGE="https://github.com/rhinstaller/efivar" +SRC_URI="https://github.com/rhinstaller/efivar/releases/download/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0/1" +KEYWORDS="amd64 ~arm64 ~ia64 x86" + +RDEPEND="dev-libs/popt" +DEPEND="${RDEPEND} + >=sys-kernel/linux-headers-3.18 + virtual/pkgconfig +" + +src_prepare() { + default + sed -i -e s/-Werror// gcc.specs || die +} + +src_configure() { + tc-export CC + tc-ld-disable-gold + export libdir="/usr/$(get_libdir)" + unset LIBS # Bug 562004 + + if [[ -n ${GCC_SPECS} ]]; then + # The environment overrides the command line. + GCC_SPECS+=":${S}/gcc.specs" + fi +} diff --git a/sdk_container/src/third_party/portage-stable/sys-libs/efivar/metadata.xml b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/metadata.xml new file mode 100644 index 0000000000..f9d83d4843 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-libs/efivar/metadata.xml @@ -0,0 +1,11 @@ + + + + + floppym@gentoo.org + Mike Gilbert + + + rhinstaller/efivar + +