diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-02-24 21:41:12 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-02-24 21:41:28 -0500 |
commit | 41287337d3a4ff9e300ce7e41ef1297d5ac770c7 (patch) | |
tree | 3f10e540b1804f5c8c66a18df3df2af4eb6fd35a /dev-cpp | |
parent | dev-games/tiled: version bump 1.8.2 (diff) | |
download | gentoo-41287337d3a4ff9e300ce7e41ef1297d5ac770c7.tar.gz gentoo-41287337d3a4ff9e300ce7e41ef1297d5ac770c7.tar.bz2 gentoo-41287337d3a4ff9e300ce7e41ef1297d5ac770c7.zip |
dev-cpp/rapidyaml: add 0.4.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/rapidyaml/Manifest | 4 | ||||
-rw-r--r-- | dev-cpp/rapidyaml/files/rapidyaml-0.4.0-no-download.patch | 23 | ||||
-rw-r--r-- | dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild | 81 |
3 files changed, 108 insertions, 0 deletions
diff --git a/dev-cpp/rapidyaml/Manifest b/dev-cpp/rapidyaml/Manifest index c1afe3db7382..f14d34dc585a 100644 --- a/dev-cpp/rapidyaml/Manifest +++ b/dev-cpp/rapidyaml/Manifest @@ -1,4 +1,8 @@ DIST c4fs-1abba005074022f07d2d9d11ec6a786f2a1f1380.tar.gz 22104 BLAKE2B ea9a063de87962d620e98bad573b1eef9a65cffdacdeab241fd91982f3da93ab01b1bfd6fd87eac5def0b8523f6f2ce32e9321385fb07a6f108dcb68630af1f5 SHA512 00aa29f818a13301df3506ae2b0bc8b527a6d292eb09ccc69681c2ad92ec270aeb635680543dfe1e761a82206c97f8347337a152728eb49d918284e043d32096 +DIST c4fs-603fce2ad34820c43b1ad60070a77d792636f5aa.tar.gz 22166 BLAKE2B 9be9936f93a58dd58ff011fe8db5103a884125b2906131a9a26d624bb77bfb6a924af08b519d19ef1a9f176bd5271a6c4e586ea0e9814bcd42095df426249a92 SHA512 f27d460aa30302d067f44d83a10c846e5d3ad9a3a710b5d0209fac3c2fb5ac62fa247fdc8192ab94b2274dc4061bd9b4cc46c3dac6c96f0da8dc200f9bedb562 DIST c4log-b8b86f33fc7539661e302171ee6dcc4a17859e67.tar.gz 11983 BLAKE2B 8f2f18e85e01ffe76a2705d181260c7f1c0979009c09c6037097c7711d590f576816e39e869b30cad7b8134114eef55edad327e6224b09c6ba34dd389917af22 SHA512 a3f8f78ffe38426bab2f79748ecadb07e688d98ac75f907a9898ea93f0e7b1818253846412de24f4f755e0a7099aa886515cdd0b28b8c87786ad656a85bd3f9b +DIST c4log-e29915ceeaf9fffb18ba43fb9d6d446d20a1cb4d.tar.gz 11985 BLAKE2B 15cc7c1bd9a1693e5419e4904e1cb30f297c7003e1480014f7782d35d0222cb000643901e6afffbe13bdbb61aa10aa4ce759c5333b327b81d3ade1e043283310 SHA512 93f4e8854cf3a5f00beb9a427004a360961caf47c53aaa817f5ca43f4cab7bad6333ba35aad24d1e7aecea75f9f3a8628527ccb0be241bdec25c5aebfb0be8e3 DIST rapidyaml-0.3.0-src.tgz 696476 BLAKE2B 30b077e3ddff56f68108a02545efc77ae3684273891f36db61b714a9af414f1f01d147a7132619647796c863ec6ae2f2586c8bfe9e1c2d3c6e7e99d11d41ee8e SHA512 52a469b18c484d8def9239f6f7697f3c3b7760855c7af68a36988cc5a8031e1f5f900819b2af9770722628d0c14fa2cc776d1c07db7a8e85602c4d00aa4199a2 +DIST rapidyaml-0.4.0-src.tgz 910642 BLAKE2B cd6813d7bbf855383ef3fce572adda20b7974bc2191b36c7b3bfccec7f14cd798c024693894f350e653d2a91924f40c3d27b89edb5596673a1541bbab1b8ed61 SHA512 c1d25ae75140d7396ecef41abbd60c048efc6e3b7ea9fd8ed5651ca2cfc737c46b2f9f23bbafa47b804b02ba6e67bdafe1e97acbedf7c483d32467a23ce8807a +DIST yaml-test-suite-6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f.tar.gz 99765 BLAKE2B d55a605623c988a4c58daa6dd155980129ffefe86570d55b1ce2514dfa77c352e0467b12e95d6e2bd38cc0454f0b30c3109c088841ddbe423b8bbb7d9e41bc9b SHA512 4ab0e52369d085e696196ef1aab8ecb4f0218e48e8ce33c4ecc863942639141601cb1c83b41027eceddc20a6a4cebfc51abcb83779007e890b87d79c76394946 DIST yaml-test-suite-bcd49a2d4919c1b1ac3b9d6e5ebe6b140b5089e3.tar.gz 54806 BLAKE2B 6574bed549759a1f3df7bcaa8051ab5e37ebb6dec878e1935dbf8f5c234f852c9ea037f90cc7bb93306cc5b1cd95f6fa8df885e51131eae50c9187d360110185 SHA512 814a654b6b04cf4e9b89ae40ba7daddb8f013da96e929ed618764c55dd23a45d8a97c456f526548cd95d673bcada3650383c3626bbbd0caa3fbdbc4b94496a6f diff --git a/dev-cpp/rapidyaml/files/rapidyaml-0.4.0-no-download.patch b/dev-cpp/rapidyaml/files/rapidyaml-0.4.0-no-download.patch new file mode 100644 index 000000000000..51fb56e7ed6f --- /dev/null +++ b/dev-cpp/rapidyaml/files/rapidyaml-0.4.0-no-download.patch @@ -0,0 +1,23 @@ +--- a/ext/testbm.cmake ++++ b/ext/testbm.cmake +@@ -1,4 +1,2 @@ + # these are used both for testing and benchmarking +-c4_require_subproject(c4fs REMOTE +- GIT_REPOSITORY https://github.com/biojppm/c4fs +- GIT_TAG master) ++c4_require_subproject(c4fs SUBDIRECTORY ext/c4fs) +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -155,10 +155,6 @@ + +- c4_require_subproject(c4log REMOTE +- GIT_REPOSITORY https://github.com/biojppm/c4log +- GIT_TAG master) ++ c4_require_subproject(c4log SUBDIRECTORY ../ext/c4log) + + set(tsdir ${ed}/yaml-test-suite) +- c4_download_remote_proj(yaml-test-suite suite_dir +- GIT_REPOSITORY https://github.com/yaml/yaml-test-suite +- GIT_TAG data-2022-01-17) ++ set(suite_dir ${CMAKE_SOURCE_DIR}/ext/yaml-test-suite) + if(NOT EXISTS ${suite_dir}/229Q) diff --git a/dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild b/dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild new file mode 100644 index 000000000000..408dbd10dc4a --- /dev/null +++ b/dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +# see *-no-download.patch +C4FS_COMMIT="603fce2ad34820c43b1ad60070a77d792636f5aa" +C4LOG_COMMIT="e29915ceeaf9fffb18ba43fb9d6d446d20a1cb4d" +YAMLTS_COMMIT="6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f" +C4FS_P="c4fs-${C4FS_COMMIT}" +C4LOG_P="c4log-${C4LOG_COMMIT}" +YAMLTS_P="yaml-test-suite-${YAMLTS_COMMIT}" + +DESCRIPTION="Library to parse and emit YAML, and do it fast" +HOMEPAGE="https://github.com/biojppm/rapidyaml/" +SRC_URI=" + https://github.com/biojppm/rapidyaml/releases/download/v${PV}/${P}-src.tgz + test? ( + https://github.com/biojppm/c4fs/archive/${C4FS_COMMIT}.tar.gz -> ${C4FS_P}.tar.gz + https://github.com/biojppm/c4log/archive/${C4LOG_COMMIT}.tar.gz -> ${C4LOG_P}.tar.gz + https://github.com/yaml/yaml-test-suite/archive/${YAMLTS_COMMIT}.tar.gz -> ${YAMLTS_P}.tar.gz + )" +S="${WORKDIR}/${P}-src" + +LICENSE="MIT Boost-1.0 BSD" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +IUSE="debug test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-cpp/gtest )" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.0-libdir.patch + "${FILESDIR}"/${PN}-0.3.0-system-gtest.patch + "${FILESDIR}"/${P}-no-download.patch +) + +DOCS=( README.md ROADMAP.md changelog ) + +src_prepare() { + if use test; then + mv ../${C4FS_P} ext/c4fs && + rmdir ext/c4fs/ext/c4core && + ln -s ../../c4core ext/c4fs/ext || die + + mv ../${C4LOG_P} ext/c4log && + rmdir ext/c4log/ext/c4core && + ln -s ../../c4core ext/c4log/ext || die + + mv ../${YAMLTS_P} ext/yaml-test-suite || die + + PATCHES+=( "${FILESDIR}"/${PN}-0.3.0-tests-no-install.patch ) + fi + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DRYML_BUILD_API=no # TODO if a python consumer needs it + -DRYML_BUILD_TESTS=$(usex test) + -DRYML_DBG=$(usex debug) + -D_{ARCHIVE,LIBRARY}_INSTALL_DIR=$(get_libdir) + ) + + cmake_src_configure +} + +src_test() { + cmake_build test +} + +src_install() { + cmake_src_install + + # remove shared private library that is statically linked + rm "${ED}"/usr/$(get_libdir)/libc4core.so* || die +} |