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

commit:     d335082b3d4e411336ee21c318753edd228aeddb
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 14 11:05:29 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Mar 14 11:42:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d335082b

dev-cpp/rapidyaml: drop 0.3.0, 0.4.0

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-cpp/rapidyaml/Manifest                         |  6 --
 .../files/rapidyaml-0.3.0-no-download.patch        | 23 ------
 dev-cpp/rapidyaml/rapidyaml-0.3.0.ebuild           | 80 ---------------------
 dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild           | 81 ----------------------
 4 files changed, 190 deletions(-)

diff --git a/dev-cpp/rapidyaml/Manifest b/dev-cpp/rapidyaml/Manifest
index 51834111728a..48a56f090050 100644
--- a/dev-cpp/rapidyaml/Manifest
+++ b/dev-cpp/rapidyaml/Manifest
@@ -1,10 +1,4 @@
-DIST c4fs-1abba005074022f07d2d9d11ec6a786f2a1f1380.tar.gz 22104 BLAKE2B ea9a063de87962d620e98bad573b1eef9a65cffdacdeab241fd91982f3da93ab01b1bfd6fd87eac5def0b8523f6f2ce32e9321385fb07a6f108dcb68630af1f5 SHA512 00aa29f818a13301df3506ae2b0bc8b527a6d292eb09ccc69681c2ad92ec270aeb635680543dfe1e761a82206c97f8347337a152728eb49d918284e043d32096
-DIST c4fs-603fce2ad34820c43b1ad60070a77d792636f5aa.tar.gz 22166 BLAKE2B 9be9936f93a58dd58ff011fe8db5103a884125b2906131a9a26d624bb77bfb6a924af08b519d19ef1a9f176bd5271a6c4e586ea0e9814bcd42095df426249a92 SHA512 f27d460aa30302d067f44d83a10c846e5d3ad9a3a710b5d0209fac3c2fb5ac62fa247fdc8192ab94b2274dc4061bd9b4cc46c3dac6c96f0da8dc200f9bedb562
 DIST c4fs-f78cbd86a77c976395c9834726a14a1bba059af0.tar.gz 22163 BLAKE2B c3ed63e9e92dbcba63faa415d4de56ce275fb3b493238235930c629362d75e08ca2f6ec2ad34fda12154544b9972e45b75c24c5a9c80d9d7a68febe6f6e462c8 SHA512 c25d1122851ef2d46b00a2fd5083313c742758530a0d5a9c0353ccd637fbe38228ef8fb45bc8addf9006cc7655dec4b4fc571af13dcedf75f19c551c5011e377
-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 rapidyaml-0.4.1-src.tgz 910816 BLAKE2B b9ef92045009b1b38d9142b2856e747edf446261c2271ee580a3aa51a3b5a2b0dfbdbcd1da6c520697dff092e9918f273d77e3f1b1e1a6ee28305aac648e6b4e SHA512 99051f452d61262188cb824623dd950cf51e0db48f519e45e7ed1edf40f3445f73547f1fc0de6b5654a7a6986d48fd3659f72f2d46019af77349957ee14cdd79
 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.3.0-no-download.patch b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-no-download.patch
deleted file mode 100644
index 97c4926cd9d2..000000000000
--- a/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-no-download.patch
+++ /dev/null
@@ -1,23 +0,0 @@
---- 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
-@@ -103,10 +103,5 @@
- 
--    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 tsdir
--        GIT_REPOSITORY https://github.com/yaml/yaml-test-suite
--        GIT_TAG bcd49a2d4919c1b1ac3b9d6e5ebe6b140b5089e3)
-+    set(tsdir ${CMAKE_SOURCE_DIR}/ext/yaml-test-suite)
-     set(suite_dir ${tsdir}/src)

diff --git a/dev-cpp/rapidyaml/rapidyaml-0.3.0.ebuild b/dev-cpp/rapidyaml/rapidyaml-0.3.0.ebuild
deleted file mode 100644
index 64b80e293129..000000000000
--- a/dev-cpp/rapidyaml/rapidyaml-0.3.0.ebuild
+++ /dev/null
@@ -1,80 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake
-
-C4FS_COMMIT="1abba005074022f07d2d9d11ec6a786f2a1f1380"
-C4LOG_COMMIT="b8b86f33fc7539661e302171ee6dcc4a17859e67"
-YAMLTS_COMMIT="bcd49a2d4919c1b1ac3b9d6e5ebe6b140b5089e3"
-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}"/${P}-libdir.patch
-	"${FILESDIR}"/${P}-no-download.patch
-	"${FILESDIR}"/${P}-system-gtest.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}"/${P}-tests-no-install.patch )
-	fi
-
-	cmake_src_prepare
-}
-
-src_configure() {
-	local mycmakeargs=(
-		-DRYML_BUILD_API=no # TODO if a 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
-}

diff --git a/dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild b/dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild
deleted file mode 100644
index 408dbd10dc4a..000000000000
--- a/dev-cpp/rapidyaml/rapidyaml-0.4.0.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# 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
-}


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

* [gentoo-commits] repo/gentoo:master commit in: dev-cpp/rapidyaml/files/, dev-cpp/rapidyaml/
@ 2024-04-29 13:26 Ionen Wolkens
  0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2024-04-29 13:26 UTC (permalink / raw
  To: gentoo-commits

commit:     6430c717f588727cd178a89124c286f9cd0010d8
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 29 13:08:00 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Apr 29 13:24:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6430c717

dev-cpp/rapidyaml: add 0.6.0

Only revdep (jsonnet) still seems fine, albeit I no longer need
this for PCSX2.

Also reduce amount of patches a bit for less rebasing, and merge
gtest with no-download.patch.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-cpp/rapidyaml/Manifest                         |  4 ++
 .../files/rapidyaml-0.6.0-no-download.patch        | 37 ++++++++++
 dev-cpp/rapidyaml/rapidyaml-0.6.0.ebuild           | 84 ++++++++++++++++++++++
 3 files changed, 125 insertions(+)

diff --git a/dev-cpp/rapidyaml/Manifest b/dev-cpp/rapidyaml/Manifest
index d0fa05a40a49..011e21f6adaa 100644
--- a/dev-cpp/rapidyaml/Manifest
+++ b/dev-cpp/rapidyaml/Manifest
@@ -1,4 +1,8 @@
+DIST c4fs-0ee9c03d0ef3a7f12db6cb03570aa7606f12ba1b.tar.gz 25156 BLAKE2B 864a6a75c5ebe15d73fb6ffa5a83cd6448f37a0f465bf3992fc5bc1000f06d6e945c99b9a4f8f3625499c47ea719a49dd340d11e37c11ed759d1adcb1ea585be SHA512 58149c055b1f87abb12a01b042600a2927bfe7afeb878ca4523b658b0736aff6f752cd579c748cf9d4c85b4229ea50a1e70d633f85f9041fe157765286fa5233
+DIST c4log-457a2997e8ea26ea2a659b8152621f7fead1eb48.tar.gz 12056 BLAKE2B f0dc357c8beb28b2fa73e77f85918c3285be08a6e6c750317b7babddfc2372532d56b29a01adbc2284b7e850aeb2a45f1b24599acca0d0feccf5d60c00432627 SHA512 f728b34c000bbd58ad02d003697de1185feffc1a349600153a7d851f8dac28b88433e97c81dcb14769a74faa9e3d86b297536e8764d6e00b886f11bb2343518f
 DIST rapidyaml-0.5.0-src.tgz 7273101 BLAKE2B b15033ae028c4704178dc4a017b5c1e858288d4713a2b96f5cfc19583e13b62031327f10ab045eec007e427eb7d71ba0e7dde2d743a81c3da0e20bc68aea47f5 SHA512 d7d65e759c466aa4cceed4d02d2c84284b205812be1de10495eef663a0b7d4adb7d8fe5f731f0f9ecba04d5d93cb1af760a83eb6d0630d25ee162f0c36b38e8a
+DIST rapidyaml-0.6.0-src.tgz 7384217 BLAKE2B b81f797dcdac10368231256765bff08fa9d911550b620c286a657b41e74e589701a41d4f6e33317a7149fd1a2aabbad6bac6c66c1e494db053251e20bc5e505c SHA512 6637aa970919d76339ca7d3d131032ca97720650e275f7e285c0fa46671daf8638695c4db6ccb06f93671171110c445781a7f2c8e37f6d9a4951d6e649f60cde
 DIST rapidyaml-c4fs-0130061b804ae2af0d6cd5919275d552eb1f2414.tar.gz 22615 BLAKE2B b774723d35658ffb56b187428089bdf2b5bebd470d0be3122bd1f99248d2537d4b31649c5e8b133b2cb28e8ec97a428a325701830708238878da07426fe7853b SHA512 d18be64060779af1b19ccafbbf26bc6c437ff5ed074bef5919ebef55bb9ad36a7abb183a99a86bada0447b15b8386c991ac9ab975d63aab77c3a57801358bf96
 DIST rapidyaml-c4log-00066ad7f624556f066f3d60766a2c33aeb3c6f0.tar.gz 11978 BLAKE2B 554240c63114f1c0bd22295a39b683a59981f3e80352dce7aebe3af39dd6d1211c2c8df9f84f3f8c30775622e242a95c3a50572b30b557c269d3d9eb2ecca3de SHA512 9399e55e116b87b4ee4583e32c7a72bc3f7fd579fda69c515a5d0df5fc065246aaa1587ed937e7c6eb6df417810284496bb2eafa0879800cecbe17ecdbef5ae9
 DIST rapidyaml-yaml-test-suite-6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f.tar.gz 99765 BLAKE2B d55a605623c988a4c58daa6dd155980129ffefe86570d55b1ce2514dfa77c352e0467b12e95d6e2bd38cc0454f0b30c3109c088841ddbe423b8bbb7d9e41bc9b SHA512 4ab0e52369d085e696196ef1aab8ecb4f0218e48e8ce33c4ecc863942639141601cb1c83b41027eceddc20a6a4cebfc51abcb83779007e890b87d79c76394946
+DIST yaml-test-suite-6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f.tar.gz 99765 BLAKE2B d55a605623c988a4c58daa6dd155980129ffefe86570d55b1ce2514dfa77c352e0467b12e95d6e2bd38cc0454f0b30c3109c088841ddbe423b8bbb7d9e41bc9b SHA512 4ab0e52369d085e696196ef1aab8ecb4f0218e48e8ce33c4ecc863942639141601cb1c83b41027eceddc20a6a4cebfc51abcb83779007e890b87d79c76394946

diff --git a/dev-cpp/rapidyaml/files/rapidyaml-0.6.0-no-download.patch b/dev-cpp/rapidyaml/files/rapidyaml-0.6.0-no-download.patch
new file mode 100644
index 000000000000..5af2a87267a3
--- /dev/null
+++ b/dev-cpp/rapidyaml/files/rapidyaml-0.6.0-no-download.patch
@@ -0,0 +1,37 @@
+The release tarball does not include requirements for tests and tries
+to fetch them. Override so can handle with SRC_URI+DEPEND instead.
+--- a/ext/c4core/cmake/c4Project.cmake
++++ b/ext/c4core/cmake/c4Project.cmake
+@@ -2902,4 +2902,7 @@
+         c4_log("testing requires googletest")
+         if(NOT TARGET gtest)
++            find_package(GTest REQUIRED)
++	endif()
++	if(FALSE)
+             # support for old gcc-4.8 and 4.9
+             if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND
+--- 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
+@@ -158,12 +158,8 @@
+     set(ed ${CMAKE_CURRENT_BINARY_DIR}/subprojects) # casual ryml extern dir (these projects are not part of ryml and are downloaded and compiled on the fly)
+ 
+-    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)
+         c4_err("cannot find yaml-test-suite at ${suite_dir} -- was there an error downloading the project?")

diff --git a/dev-cpp/rapidyaml/rapidyaml-0.6.0.ebuild b/dev-cpp/rapidyaml/rapidyaml-0.6.0.ebuild
new file mode 100644
index 000000000000..c552128f0d52
--- /dev/null
+++ b/dev-cpp/rapidyaml/rapidyaml-0.6.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+# see no-download.patch, match with release date if "master"
+HASH_C4FS=0ee9c03d0ef3a7f12db6cb03570aa7606f12ba1b
+HASH_C4LOG=457a2997e8ea26ea2a659b8152621f7fead1eb48
+HASH_YAMLTS=6e6c296ae9c9d2d5c4134b4b64d01b29ac19ff6f
+
+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/${HASH_C4FS}.tar.gz
+			-> c4fs-${HASH_C4FS}.tar.gz
+		https://github.com/biojppm/c4log/archive/${HASH_C4LOG}.tar.gz
+			-> c4log-${HASH_C4LOG}.tar.gz
+		https://github.com/yaml/yaml-test-suite/archive/${HASH_YAMLTS}.tar.gz
+			-> yaml-test-suite-${HASH_YAMLTS}.tar.gz
+	)
+"
+S=${WORKDIR}/${P}-src
+
+LICENSE="MIT Boost-1.0 BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="debug test"
+RESTRICT="!test? ( test )"
+
+DEPEND="test? ( dev-cpp/gtest )"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-0.6.0-no-download.patch
+)
+
+DOCS=( README.md ROADMAP.md changelog )
+
+src_prepare() {
+	if use test; then
+		# also need c4core, symlink the one included in src.tgz
+		mv ../c4fs-${HASH_C4FS} ext/c4fs &&
+			rmdir ext/c4fs/ext/c4core &&
+			ln -s ../../c4core ext/c4fs/ext || die
+
+		mv ../c4log-${HASH_C4LOG} ext/c4log &&
+			rmdir ext/c4log/ext/c4core &&
+			ln -s ../../c4core ext/c4log/ext || die
+
+		mv ../yaml-test-suite-${HASH_YAMLTS} ext/yaml-test-suite || die
+
+		eapply "${FILESDIR}"/${PN}-0.3.0-tests-no-install.patch
+	fi
+
+	cmake_src_prepare
+
+	sed -E "/set\(_(ARCHIVE|LIBRARY)_INSTALL/s:lib/:$(get_libdir)/:" \
+		-i ext/c4core/cmake/c4Project.cmake || die
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DGIT=false
+		-DRYML_BUILD_TESTS=$(usex test)
+		-DRYML_DBG=$(usex debug)
+
+		# TODO?: enable this+tests, should(?) be easier to do with >=0.5.0 but
+		# still need looking into (please file a bug if actually need this now)
+		-DRYML_BUILD_API=no
+
+		# rapidyaml sets c++11, but (system) >=gtest-1.13 wants >=c++14, also
+		# see: https://github.com/biojppm/cmake/commit/e344bf0681 (bug #893272)
+		-DC4_CXX_STANDARD=17
+	)
+
+	cmake_src_configure
+}
+
+src_test() {
+	cmake_build test
+}


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

end of thread, other threads:[~2024-04-29 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-29 13:26 [gentoo-commits] repo/gentoo:master commit in: dev-cpp/rapidyaml/files/, dev-cpp/rapidyaml/ Ionen Wolkens
  -- strict thread matches above, loose matches on Subject: below --
2022-03-14 11:43 Ionen Wolkens

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