diff options
author | 2022-01-01 00:20:46 -0500 | |
---|---|---|
committer | 2022-01-01 03:13:04 -0500 | |
commit | d05a0a16218bf86412d41a673bc9606448efa9fd (patch) | |
tree | de4b334c9b67cd91f0751d059d7d0ece962bbeb7 /dev-cpp/rapidyaml/files | |
parent | dev-python/pydantic: add 1.9.0 (diff) | |
download | gentoo-d05a0a16218bf86412d41a673bc9606448efa9fd.tar.gz gentoo-d05a0a16218bf86412d41a673bc9606448efa9fd.tar.bz2 gentoo-d05a0a16218bf86412d41a673bc9606448efa9fd.zip |
dev-cpp/rapidyaml: initial import, version 0.3.0
Originally thought to make c4core a separate package, but upstream's
rather custom cmake files complicate this and it feels more like
a private library (same upstream). It also caused PCSX2 build to
fail due to needing to link with c4core as well if it's not builtin.
May need revisiting if another package ever depends on c4core directly
or want to package the similar test deps (c4fs/c4log).
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-cpp/rapidyaml/files')
4 files changed, 58 insertions, 0 deletions
diff --git a/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-libdir.patch b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-libdir.patch new file mode 100644 index 000000000000..a10fbc49585e --- /dev/null +++ b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-libdir.patch @@ -0,0 +1,9 @@ +--- a/ext/c4core/cmake/c4Project.cmake ++++ b/ext/c4core/cmake/c4Project.cmake +@@ -2643,4 +2643,4 @@ + set(_RUNTIME_INSTALL_DIR bin/) +- set(_ARCHIVE_INSTALL_DIR lib/) +- set(_LIBRARY_INSTALL_DIR lib/) # TODO on Windows, ARCHIVE and LIBRARY dirs must be different to prevent name clashes ++ set(_ARCHIVE_INSTALL_DIR lib/ CACHE STRING "") ++ set(_LIBRARY_INSTALL_DIR lib/ CACHE STRING "") + set(_INCLUDE_INSTALL_DIR include/) 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 new file mode 100644 index 000000000000..97c4926cd9d2 --- /dev/null +++ b/dev-cpp/rapidyaml/files/rapidyaml-0.3.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 +@@ -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/files/rapidyaml-0.3.0-system-gtest.patch b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-system-gtest.patch new file mode 100644 index 000000000000..0e404f09d781 --- /dev/null +++ b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-system-gtest.patch @@ -0,0 +1,8 @@ +--- a/ext/c4core/cmake/c4Project.cmake ++++ b/ext/c4core/cmake/c4Project.cmake +@@ -2762,2 +2762,5 @@ + if(NOT TARGET gtest) ++ find_package(GTest REQUIRED) ++ endif() ++ if(FALSE) + c4_import_remote_proj(gtest ${CMAKE_CURRENT_BINARY_DIR}/ext/gtest diff --git a/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-tests-no-install.patch b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-tests-no-install.patch new file mode 100644 index 000000000000..97aeb72ee1a5 --- /dev/null +++ b/dev-cpp/rapidyaml/files/rapidyaml-0.3.0-tests-no-install.patch @@ -0,0 +1,18 @@ +--- a/ext/c4fs/CMakeLists.txt ++++ b/ext/c4fs/CMakeLists.txt +@@ -18,6 +18,4 @@ + ) + +-c4_install_target(c4fs) +-c4_install_exports() + + c4_add_dev_targets() +--- a/ext/c4log/CMakeLists.txt ++++ b/ext/c4log/CMakeLists.txt +@@ -21,6 +21,4 @@ + ) + +-c4_install_target(c4log) +-c4_install_exports() + + c4_add_dev_targets() |