diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-19 07:00:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-19 07:00:00 +0000 |
commit | c5572b13d51970d6603acd131f27991cc1b66a79 (patch) | |
tree | 459c832fa5c0913b9ce0f85eed5e29922cc0425f /dev-cpp/elfio | |
parent | 6e476156e1a0d2f4aa53968c37835c3441301367 (diff) |
gentoo auto-resync : 19:11:2022 - 07:00:00
Diffstat (limited to 'dev-cpp/elfio')
-rw-r--r-- | dev-cpp/elfio/Manifest | 3 | ||||
-rw-r--r-- | dev-cpp/elfio/elfio-3.11.ebuild | 32 | ||||
-rw-r--r-- | dev-cpp/elfio/files/elfio-3.11-system-gtest.patch | 33 |
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-cpp/elfio/Manifest b/dev-cpp/elfio/Manifest index 510b04addf51..50398474c7db 100644 --- a/dev-cpp/elfio/Manifest +++ b/dev-cpp/elfio/Manifest @@ -1,3 +1,6 @@ +AUX elfio-3.11-system-gtest.patch 1024 BLAKE2B 96aa3b8c38cf5159c69e4ff74388faf27f2192466e609ae6ccd04209abf7811387b5648922daf9660bc948bfde5c8681b605ac187e7b9757b742729a91e3def5 SHA512 9d75db5c673c375e64a9335e03b0fd3e2f301050388419d4032e6985ac2af8db46dcd9e7e61490e48c3fe90b2a09035a88305027577f9f0f8b1bd99cd9977e22 DIST elfio-3.10.tar.gz 4243841 BLAKE2B a4cd5e7cb8b2f13cd7341adacb623b996e07e8ac761cd0f1e8eb20a87770fa936bf97ad79a0ff8d700ac41278bae7c5dd00d277f4c2d47e73340aaf607b7ee49 SHA512 f609fe5162d1609d1d65f441dbf01011ca5ae36195d8b3a74dec2b72891e9f8f90d3fdbc9bf893f7186494071606e898e5519fda18665fc88ae9781c504cd4a9 +DIST elfio-3.11.tar.gz 4150700 BLAKE2B 2e0270384f1fdbc8f8374c1a42b5bd0c6ba6faa8c8a7125063b682cd9808fbb3f330e2a0fa4646c8828f6d276ad8f92e36b69ab7916c3bd2b1b2ecad6708fcc1 SHA512 3a254aad62e707f2809e2997998aab6a9794d70791dc535a6de90bad3e9de3cbcc4f8e7787067ca7cd47ce2dc71cf52809747267bc36cfb08369b49a6b92cf5e EBUILD elfio-3.10.ebuild 570 BLAKE2B 211ec77a13d0d94845564a2a9124300aaaf707c8e42d7d7cf3fb22c2d7147e4f9275acc53d54e24e32fc9bff35fe6aa026770ddb7ddd021b66d10bad7464e3d2 SHA512 05ac2316053f66abd5f2bafbd45ef74a4a2efab094c59b99636b94f2d2f9f4981ae2139c75231a2907e2dde70a4e23b7d83cf29d893c6f0fadbc4ab018af8ce4 +EBUILD elfio-3.11.ebuild 666 BLAKE2B d0869322ea72892a19556fdee149bd0fe22624242e51d3447b6771da1b34e295a81ba0e337bc8ee63b5a5254330829de928d54b1a8347f2a322bfc4ed20dfee9 SHA512 c492ef4e16e45b506cb7e0295c6fb74c49aebcea6a3714784986279d9e9c18debb3a6162967c024e5b636cc8a9400e609e1f2f13440902857d4037ed1594482c MISC metadata.xml 317 BLAKE2B 4b62079a213f05ca0fce72e62582010a9c82e11e714347c6753a1919bb8586896cef8afa5c378ffb00a5427aea6219fe7d78cc3572e214c3b2e8b09507ca685d SHA512 d550d765b42e68da41164297145ed8534b6bfb8f7976e6df57f76fb0fc8558262f010d988b66ea368d45e7c4bbbc879f6b91abba21c3f14871605e39589e5047 diff --git a/dev-cpp/elfio/elfio-3.11.ebuild b/dev-cpp/elfio/elfio-3.11.ebuild new file mode 100644 index 000000000000..0c82a247cdd9 --- /dev/null +++ b/dev-cpp/elfio/elfio-3.11.ebuild @@ -0,0 +1,32 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="ELF reader/producer header-only C++ library" +HOMEPAGE="https://github.com/serge1/ELFIO" +SRC_URI="https://github.com/serge1/${PN}/archive/Release_${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN^^}-Release_${PV} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/gtest )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.11-system-gtest.patch +) + +src_configure() { + local mycmakeargs=( + -DFETCHCONTENT_FULLY_DISCONNECTED=ON + -DELFIO_BUILD_TESTS=$(usex test) + ) + + cmake_src_configure +} diff --git a/dev-cpp/elfio/files/elfio-3.11-system-gtest.patch b/dev-cpp/elfio/files/elfio-3.11-system-gtest.patch new file mode 100644 index 000000000000..2110086c69d6 --- /dev/null +++ b/dev-cpp/elfio/files/elfio-3.11-system-gtest.patch @@ -0,0 +1,33 @@ +https://github.com/serge1/ELFIO/pull/113 + +From 4c47fd4c783f286a73605e43e362f1e14b0296a9 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sat, 19 Nov 2022 02:56:22 +0000 +Subject: [PATCH] tests: allow using system gtest copy + +Distributions often do builds with no network access available +for both security reasons and also to ensure reproducibility. + +This change tells CMake to query the system for a copy of gtest, +but if it's not available, it'll fall back to downloading via +FetchContent. +--- a/tests/CMakeLists.txt ++++ b/tests/CMakeLists.txt +@@ -3,6 +3,7 @@ include(FetchContent) + FetchContent_Declare( + googletest + URL https://github.com/google/googletest/archive/9a32aee22d771387c494be2d8519fbdf46a713b2.zip ++ FIND_PACKAGE_ARGS NAMES GTest + ) + + # For Windows: Prevent overriding the parent project's compiler/linker settings +@@ -44,7 +45,8 @@ target_link_libraries( + ELFIOTest + PRIVATE + elfio::elfio +- gtest_main) ++ gtest_main ++ GTest::gtest_main) + + add_test( + NAME |