public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/elfio/files/, dev-cpp/elfio/
@ 2022-11-19  3:19 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-11-19  3:19 UTC (permalink / raw
  To: gentoo-commits

commit:     b4f9cf849e54166305b1f167261bad7c9728da2f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 19 03:01:56 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 19 03:19:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f9cf84

dev-cpp/elfio: add 3.11

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/elfio/Manifest                            |  1 +
 dev-cpp/elfio/elfio-3.11.ebuild                   | 32 ++++++++++++++++++++++
 dev-cpp/elfio/files/elfio-3.11-system-gtest.patch | 33 +++++++++++++++++++++++
 3 files changed, 66 insertions(+)

diff --git a/dev-cpp/elfio/Manifest b/dev-cpp/elfio/Manifest
index 5e626b46552f..3293acb2df14 100644
--- a/dev-cpp/elfio/Manifest
+++ b/dev-cpp/elfio/Manifest
@@ -1 +1,2 @@
 DIST elfio-3.10.tar.gz 4243841 BLAKE2B a4cd5e7cb8b2f13cd7341adacb623b996e07e8ac761cd0f1e8eb20a87770fa936bf97ad79a0ff8d700ac41278bae7c5dd00d277f4c2d47e73340aaf607b7ee49 SHA512 f609fe5162d1609d1d65f441dbf01011ca5ae36195d8b3a74dec2b72891e9f8f90d3fdbc9bf893f7186494071606e898e5519fda18665fc88ae9781c504cd4a9
+DIST elfio-3.11.tar.gz 4150700 BLAKE2B 2e0270384f1fdbc8f8374c1a42b5bd0c6ba6faa8c8a7125063b682cd9808fbb3f330e2a0fa4646c8828f6d276ad8f92e36b69ab7916c3bd2b1b2ecad6708fcc1 SHA512 3a254aad62e707f2809e2997998aab6a9794d70791dc535a6de90bad3e9de3cbcc4f8e7787067ca7cd47ce2dc71cf52809747267bc36cfb08369b49a6b92cf5e

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/elfio/files/, dev-cpp/elfio/
@ 2023-08-30  7:48 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-08-30  7:48 UTC (permalink / raw
  To: gentoo-commits

commit:     0d45d18d6a49f43f4ace40cc1361e258a5bcfc3c
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 30 06:53:16 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 30 07:48:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d45d18d

dev-cpp/elfio: add 3.12

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/elfio/Manifest                             |  1 +
 dev-cpp/elfio/elfio-3.12.ebuild                    | 38 ++++++++++++++++++++++
 .../files/elfio-3.12-gnuinstalldirs-docdir.patch   | 11 +++++++
 3 files changed, 50 insertions(+)

diff --git a/dev-cpp/elfio/Manifest b/dev-cpp/elfio/Manifest
index 8ca0d701be55..0e76e209c613 100644
--- a/dev-cpp/elfio/Manifest
+++ b/dev-cpp/elfio/Manifest
@@ -1 +1,2 @@
 DIST elfio-3.11.tar.gz 4150700 BLAKE2B 2e0270384f1fdbc8f8374c1a42b5bd0c6ba6faa8c8a7125063b682cd9808fbb3f330e2a0fa4646c8828f6d276ad8f92e36b69ab7916c3bd2b1b2ecad6708fcc1 SHA512 3a254aad62e707f2809e2997998aab6a9794d70791dc535a6de90bad3e9de3cbcc4f8e7787067ca7cd47ce2dc71cf52809747267bc36cfb08369b49a6b92cf5e
+DIST elfio-3.12.tar.gz 4150640 BLAKE2B aba7c4a9c254384b3babcf740883e45b8b531ecde3bc12f3cb811ac63c1469d0d53d9bb259120d92bacad7289d811429785a784667d4632c3acc49f2c3a475e4 SHA512 f5c8bc6cc98da845f6c011fc85b98476935c5d20d72b36bff5ad2472434494115ee7c06cfa37152c528e5931c39fe3cc084bfc8e6952b2c3e8f24b8601ae212f

diff --git a/dev-cpp/elfio/elfio-3.12.ebuild b/dev-cpp/elfio/elfio-3.12.ebuild
new file mode 100644
index 000000000000..eb255680b9c4
--- /dev/null
+++ b/dev-cpp/elfio/elfio-3.12.ebuild
@@ -0,0 +1,38 @@
+# Copyright 2020-2023 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.12-gnuinstalldirs-docdir.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DFETCHCONTENT_FULLY_DISCONNECTED=ON
+		-DELFIO_BUILD_TESTS=$(usex test)
+	)
+
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	rm "${ED}"/usr/share/doc/${PF}/LICENSE.txt || die
+}

diff --git a/dev-cpp/elfio/files/elfio-3.12-gnuinstalldirs-docdir.patch b/dev-cpp/elfio/files/elfio-3.12-gnuinstalldirs-docdir.patch
new file mode 100644
index 000000000000..8895d65c8fa5
--- /dev/null
+++ b/dev-cpp/elfio/files/elfio-3.12-gnuinstalldirs-docdir.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -143,7 +143,7 @@ if(IS_TOP_PROJECT)
+     set(CPACK_SOURCE_IGNORE_FILES "/.git/;/.github/;/.vscode/;/build;/.clang-format;/.gitignore;/.travis.yml;/doc/images/;/doc/site;/doc/elfio.docx;/examples/sudo_gdb.sh;/tests")
+ 
+     install(FILES ${CPACK_RESOURCE_FILE_README} ${CPACK_RESOURCE_FILE_LICENSE}
+-        DESTINATION share/docs/${PROJECT_NAME})
++        DESTINATION ${CMAKE_INSTALL_DOCDIR})
+ 
+     include(CPack)
+ endif()


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-30  7:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30  7:48 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/elfio/files/, dev-cpp/elfio/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2022-11-19  3:19 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox