diff options
| author | Michael Mair-Keimberger <mmk@levelnine.at> | 2024-08-19 19:00:57 +0200 |
|---|---|---|
| committer | Conrad Kostecki <conikost@gentoo.org> | 2024-08-26 01:53:41 +0200 |
| commit | 69b9f1d9e9b7a8b52d5bd46090e5b025cd2364ae (patch) | |
| tree | 011cd292d669bcd09dd90ffeccdaec88df4f0863 /dev-cpp/msgpack-cxx/msgpack-cxx-6.1.1.ebuild | |
| parent | 21dc5d802d0de1ec9465ec153f831eaa157295b5 (diff) | |
| download | gentoo-69b9f1d9e9b7a8b52d5bd46090e5b025cd2364ae.tar.gz gentoo-69b9f1d9e9b7a8b52d5bd46090e5b025cd2364ae.tar.bz2 gentoo-69b9f1d9e9b7a8b52d5bd46090e5b025cd2364ae.zip | |
dev-cpp/msgpack-cxx: add 6.1.1
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/38207
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-cpp/msgpack-cxx/msgpack-cxx-6.1.1.ebuild')
| -rw-r--r-- | dev-cpp/msgpack-cxx/msgpack-cxx-6.1.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-cpp/msgpack-cxx/msgpack-cxx-6.1.1.ebuild b/dev-cpp/msgpack-cxx/msgpack-cxx-6.1.1.ebuild new file mode 100644 index 000000000000..62978b6f9fb4 --- /dev/null +++ b/dev-cpp/msgpack-cxx/msgpack-cxx-6.1.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="MessagePack for C++" +HOMEPAGE="https://msgpack.org/ https://github.com/msgpack/msgpack-c/" +SRC_URI="https://github.com/msgpack/msgpack-c/releases/download/cpp-${PV}/${P}.tar.gz" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="+boost doc examples test" + +REQUIRED_USE="test? ( boost )" + +RESTRICT="!test? ( test )" + +RDEPEND="boost? ( dev-libs/boost[context] ) + !<dev-libs/msgpack-5.0.0" +DEPEND="${RDEPEND}" +BDEPEND="doc? ( app-text/doxygen[dot] ) + test? ( sys-libs/zlib )" + +src_configure() { + local mycmakeargs=( + -DMSGPACK_BUILD_EXAMPLES=OFF + -DMSGPACK_CXX17=ON + -DMSGPACK_BUILD_TESTS="$(usex test)" + -DMSGPACK_USE_BOOST="$(usex boost)" + -DMSGPACK_USE_X3_PARSE="$(usex boost)" + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + cmake_build doxygen + fi +} + +src_install() { + if use doc; then + local HTML_DOCS=( "${BUILD_DIR}"/doc_cpp/html/. ) + fi + + if use examples; then + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + + cmake_src_install +} |
