From ddf957276a9839bedf377dc391867671613a0010 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 18 Oct 2024 01:05:54 +0300 Subject: [PATCH] net-misc/meganz-sdk: add 7.12.0 Signed-off-by: Alfred Wingate --- net-misc/meganz-sdk/Manifest | 1 + .../meganz-sdk-7.12.0-missing-iomanip.patch | 27 ++++ net-misc/meganz-sdk/meganz-sdk-7.12.0.ebuild | 124 ++++++++++++++++++ 3 files changed, 152 insertions(+) create mode 100644 net-misc/meganz-sdk/files/meganz-sdk-7.12.0-missing-iomanip.patch create mode 100644 net-misc/meganz-sdk/meganz-sdk-7.12.0.ebuild diff --git a/net-misc/meganz-sdk/Manifest b/net-misc/meganz-sdk/Manifest index 104a3d1..86f2b34 100644 --- a/net-misc/meganz-sdk/Manifest +++ b/net-misc/meganz-sdk/Manifest @@ -1,2 +1,3 @@ DIST meganz-sdk-3.7.3.tar.gz 3322179 BLAKE2B c8f5f9bea8b1e030f24ae79f0fddf8027d9f770b30762caa1f013d1ca19b40a8bf7451ad6b056743c55d71c48014298f005cbc0f3b24edd932da3ba3edba62e0 SHA512 d85f04cc1cd4c1320f0e01a6d2bd52522f502f91f06ba275c8dbf0f3fb751ac195054376cf97fe7eb93934c37f68614164232486f5d3c296dc830896ca60dea9 DIST meganz-sdk-7.10.0.tar.gz 4203361 BLAKE2B b8624fa65d40086605d3debae0cea9c1d4167b2b4c54757ef5cf87f3a35cfff8d285a926b3ee12ddb03272e92a144062a1790a2189df38606d7c0741b802f4cf SHA512 6d5c648927225b01b2ef10961864093b51c3dabb2389e63a13fd2a59558ce46ac782f5bd4e16cc312c9975a3cbd8f86948f565ebd05188d6bb76693045b3ed09 +DIST meganz-sdk-7.12.0.tar.gz 4229704 BLAKE2B 895a3803f9c03858ae67097b69c7fbeb94a57a4873fdb9643728a92a804614c8ec22a67f9744bb5ffc4e6b551a18e3b809549a533fa731b33c1f28e77a8d22dc SHA512 4e4a0d6822a979ef9ccd587031de61a36a82be61ef87facd5de94ae056530a9eb793b0d2a2a5db8530a7e8664b6556705bad82345c2c01c6fb3e04fe8c511af7 diff --git a/net-misc/meganz-sdk/files/meganz-sdk-7.12.0-missing-iomanip.patch b/net-misc/meganz-sdk/files/meganz-sdk-7.12.0-missing-iomanip.patch new file mode 100644 index 0000000..1752da0 --- /dev/null +++ b/net-misc/meganz-sdk/files/meganz-sdk-7.12.0-missing-iomanip.patch @@ -0,0 +1,27 @@ +FAILED: tests/unit/CMakeFiles/test_unit.dir/utils_test.cpp.o +/usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_SYNC -DSUPPORTS_TI_EMULATION_MODE=1 -I/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/include -I/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0_build -I/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/include/mega/posix -I/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/src/fuse/common -I/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests -DDEBUG=1 -O3 -march=znver2 -pipe -flto=auto -fuse-linker-plugin -frecord-gcc-switches -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -std=gnu++17 -Wall -Wextra -Wconversion -Wno-unused-parameter -DGTEST_HAS_PTHREAD=1 -MD -MT tests/unit/CMakeFiles/test_unit.dir/utils_test.cpp.o -MF tests/unit/CMakeFiles/test_unit.dir/utils_test.cpp.o.d -o tests/unit/CMakeFiles/test_unit.dir/utils_test.cpp.o -c /var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests/unit/utils_test.cpp +/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests/unit/utils_test.cpp: In member function ‘virtual void Filesystem_EscapesReservedCharacters_Test::TestBody()’: +/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests/unit/utils_test.cpp:104:26: error: ‘setfill’ is not a member of ‘std’ + 104 | << std::setfill('0') + | ^~~~~~~ +/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests/unit/utils_test.cpp:28:1: note: ‘std::setfill’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ + 27 | #include + +++ |+#include + 28 | #include +/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests/unit/utils_test.cpp:105:26: error: ‘setw’ is not a member of ‘std’ + 105 | << std::setw(2) + | ^~~~ +/var/tmp/portage/net-misc/meganz-sdk-7.12.0/work/sdk-7.12.0/tests/unit/utils_test.cpp:105:26: note: ‘std::setw’ is defined in header ‘’; this is probably fixable by adding ‘#include ’ + +diff --git a/tests/unit/utils_test.cpp b/tests/unit/utils_test.cpp +index f28e21623..484d20a05 100644 +--- a/tests/unit/utils_test.cpp ++++ b/tests/unit/utils_test.cpp +@@ -29,6 +29,7 @@ + #include + + #include ++#include + #include + + TEST(utils, readLines) diff --git a/net-misc/meganz-sdk/meganz-sdk-7.12.0.ebuild b/net-misc/meganz-sdk/meganz-sdk-7.12.0.ebuild new file mode 100644 index 0000000..11b8a98 --- /dev/null +++ b/net-misc/meganz-sdk/meganz-sdk-7.12.0.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +DESCRIPTION="MEGA C++ SDK" +HOMEPAGE="https://github.com/meganz/sdk" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/meganz/sdk.git" +else + SRC_URI="https://github.com/meganz/sdk/archive/v${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/sdk-${PV}" + KEYWORDS="~amd64" +fi + +LICENSE="BSD-2" +SLOT="0/${PV}" +IUSE="examples ffmpeg freeimage fuse libuv mediainfo qt test" + +RESTRICT="!test? ( test )" + +#