diff options
author | Sam James <sam@gentoo.org> | 2023-08-30 07:53:16 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-08-30 08:48:08 +0100 |
commit | 0d45d18d6a49f43f4ace40cc1361e258a5bcfc3c (patch) | |
tree | 516bfea7eb9b37b47a75affffe4c1619a8b3c5c8 /dev-cpp | |
parent | dev-python/QtPy: add 2.4.0 (diff) | |
download | gentoo-0d45d18d6a49f43f4ace40cc1361e258a5bcfc3c.tar.gz gentoo-0d45d18d6a49f43f4ace40cc1361e258a5bcfc3c.tar.bz2 gentoo-0d45d18d6a49f43f4ace40cc1361e258a5bcfc3c.zip |
dev-cpp/elfio: add 3.12
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/elfio/Manifest | 1 | ||||
-rw-r--r-- | dev-cpp/elfio/elfio-3.12.ebuild | 38 | ||||
-rw-r--r-- | dev-cpp/elfio/files/elfio-3.12-gnuinstalldirs-docdir.patch | 11 |
3 files changed, 50 insertions, 0 deletions
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() |