From fcefa9aa213e0ff26901b351fccd47393113ae5d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 19 Dec 2022 07:47:44 +0000 Subject: gentoo auto-resync : 19:12:2022 - 07:47:44 --- dev-cpp/rapidyaml/Manifest | 5 ++ dev-cpp/rapidyaml/rapidyaml-0.5.0.ebuild | 79 ++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 dev-cpp/rapidyaml/rapidyaml-0.5.0.ebuild (limited to 'dev-cpp/rapidyaml') diff --git a/dev-cpp/rapidyaml/Manifest b/dev-cpp/rapidyaml/Manifest index f7c4bf87748d..7f4f61440577 100644 --- a/dev-cpp/rapidyaml/Manifest +++ b/dev-cpp/rapidyaml/Manifest @@ -5,6 +5,11 @@ AUX rapidyaml-0.4.0-no-download.patch 821 BLAKE2B 9b4122343ce2afdaffeffe7eaf9193 DIST c4fs-f78cbd86a77c976395c9834726a14a1bba059af0.tar.gz 22163 BLAKE2B c3ed63e9e92dbcba63faa415d4de56ce275fb3b493238235930c629362d75e08ca2f6ec2ad34fda12154544b9972e45b75c24c5a9c80d9d7a68febe6f6e462c8 SHA512 c25d1122851ef2d46b00a2fd5083313c742758530a0d5a9c0353ccd637fbe38228ef8fb45bc8addf9006cc7655dec4b4fc571af13dcedf75f19c551c5011e377 DIST c4log-e29915ceeaf9fffb18ba43fb9d6d446d20a1cb4d.tar.gz 11985 BLAKE2B 15cc7c1bd9a1693e5419e4904e1cb30f297c7003e1480014f7782d35d0222cb000643901e6afffbe13bdbb61aa10aa4ce759c5333b327b81d3ade1e043283310 SHA512 93f4e8854cf3a5f00beb9a427004a360961caf47c53aaa817f5ca43f4cab7bad6333ba35aad24d1e7aecea75f9f3a8628527ccb0be241bdec25c5aebfb0be8e3 DIST rapidyaml-0.4.1-src.tgz 910816 BLAKE2B b9ef92045009b1b38d9142b2856e747edf446261c2271ee580a3aa51a3b5a2b0dfbdbcd1da6c520697dff092e9918f273d77e3f1b1e1a6ee28305aac648e6b4e SHA512 99051f452d61262188cb824623dd950cf51e0db48f519e45e7ed1edf40f3445f73547f1fc0de6b5654a7a6986d48fd3659f72f2d46019af77349957ee14cdd79 +DIST rapidyaml-0.5.0-src.tgz 7273101 BLAKE2B b15033ae028c4704178dc4a017b5c1e858288d4713a2b96f5cfc19583e13b62031327f10ab045eec007e427eb7d71ba0e7dde2d743a81c3da0e20bc68aea47f5 SHA512 d7d65e759c466aa4cceed4d02d2c84284b205812be1de10495eef663a0b7d4adb7d8fe5f731f0f9ecba04d5d93cb1af760a83eb6d0630d25ee162f0c36b38e8a +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 EBUILD rapidyaml-0.4.1.ebuild 2134 BLAKE2B cfa572f87cfa365f3cd82af229c4d34528fc6b1f1900e23a037558dfe0568ce00125a2fd2fc7082d7a0f6aa23c89e8a3dbc169daa4bf66d4831bc358dfefe6f7 SHA512 f4ce3a926b388dee778a0b83cfe1119487972736ee82fa02c9f827975ab0703b9825251e5ccdd0a50318a8c928d7578390eb6194082cf3d45eec9d02488d93ea +EBUILD rapidyaml-0.5.0.ebuild 2140 BLAKE2B ecbef0337c4a598e92fde872bbf2e1076c1e0605aa9913426d3f23a654584c92b35fb382898736cde6be4085cd5775910276d5b05139ec51c844e7be933ad21a SHA512 fbf1f3e7e993bf388efcc11155bb9c903863fc91f1c61ffc768c7147a730861107f76ba7895b46d8bad8df45e3675df2262e75b1bf5e10e92b8e71075a304179 MISC metadata.xml 375 BLAKE2B ae9fc516e43fb6561964a17a58c9c2eefffeaa918a62c325c0b72847c60dad692c107f5ea27a2b6abbf93f73bc27f8a24a00f57dfcbf72bb0f6bd9a5344b6ea2 SHA512 263bb4123527bc4e48c2d9ccc4d797e943be1a5924dd8504c09f028728297c46d3e17e0716ea50a6a35fbfd3561043711ac554776a6c538543ae51ba11ab72a1 diff --git a/dev-cpp/rapidyaml/rapidyaml-0.5.0.ebuild b/dev-cpp/rapidyaml/rapidyaml-0.5.0.ebuild new file mode 100644 index 000000000000..738de6a6b12d --- /dev/null +++ b/dev-cpp/rapidyaml/rapidyaml-0.5.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 2022 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=0130061b804ae2af0d6cd5919275d552eb1f2414 +HASH_C4LOG=00066ad7f624556f066f3d60766a2c33aeb3c6f0 +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 + -> ${PN}-c4fs-${HASH_C4FS}.tar.gz + https://github.com/biojppm/c4log/archive/${HASH_C4LOG}.tar.gz + -> ${PN}-c4log-${HASH_C4LOG}.tar.gz + https://github.com/yaml/yaml-test-suite/archive/${HASH_YAMLTS}.tar.gz + -> ${PN}-yaml-test-suite-${HASH_YAMLTS}.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}"/${PN}-0.4.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 +} + +src_configure() { + local mycmakeargs=( + -DGIT=false # don't call git for nothing + -DRYML_BUILD_TESTS=$(usex test) + -DRYML_DBG=$(usex debug) + -D_{ARCHIVE,LIBRARY}_INSTALL_DIR=$(get_libdir) + + # TODO: enable this+tests, should(?) be easier to do with >=0.5.0 but + # still need looking into (please fill a bug if need this right away) + -DRYML_BUILD_API=no + ) + + cmake_src_configure +} + +src_test() { + cmake_build test +} -- cgit v1.2.3