Compare commits

..

No commits in common. "5e806672b8edcf3229fded34c2c39487cbdee21c" and "fbc8d34f53b69945b579905ff8df38efbc62653f" have entirely different histories.

9 changed files with 110 additions and 111 deletions

View File

@ -8,7 +8,7 @@ inherit go-module
MY_PN="cli" MY_PN="cli"
WHITELIST_VERSIONS=( WHITELIST_VERSIONS=(
"<> 1.2.14 1.2.49" "<> 1.2.14 1.2.47"
) )
whitelist_versions() { whitelist_versions() {

View File

@ -1,2 +1 @@
DIST janus-1.0.0.tar.gz 19043 BLAKE2B 0a70e47525d5dbaac019428773dea03bf6fea452aa542be3419b369674b8e06245f3e5566672b2533bfaa8b658a1f591aed19086d54652ef5f57753f96355e82 SHA512 d66899adad12cc1100a20cb75d8e146321ef947bde996a07490158a5f34c39421bb1a5b08ac87679264a6bee1d3dc9f425fa29d52199626d322fe4462ed8f1f3 DIST janus-1.0.0.tar.gz 19043 BLAKE2B 0a70e47525d5dbaac019428773dea03bf6fea452aa542be3419b369674b8e06245f3e5566672b2533bfaa8b658a1f591aed19086d54652ef5f57753f96355e82 SHA512 d66899adad12cc1100a20cb75d8e146321ef947bde996a07490158a5f34c39421bb1a5b08ac87679264a6bee1d3dc9f425fa29d52199626d322fe4462ed8f1f3
DIST janus-1.1.0.tar.gz 18756 BLAKE2B c17a0422bea72eced58b8bd283786e2ec47976baa8e4ecb43331429490fc2dd1c49500a8a5e4cbe9eed6103e1aefb02e06fc8c92f3de61903ea3fc2508639975 SHA512 3ebfd325e64a249309b11e22790958e5e4643c76ac4bfb6c7dfeffb57046e6afcbe47b9a7e12a84a1bbfb1ec5960fd75127b051d19ad098d09b2ebd2a66aedeb

View File

@ -1,29 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="Thread-safe asyncio-aware queue for Python"
HOMEPAGE="https://github.com/aio-libs/janus"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_prepare_all() {
sed -i -e '/\[tool:pytest\]/,$ { /^addopts =/d }' setup.cfg || die
distutils-r1_python_prepare_all
}

View File

@ -1,3 +1,2 @@
DIST matrix-commander-7.7.0.gh.tar.gz 1847818 BLAKE2B 9965f6f13ffa2047ea6acfe736356f483651fb3ae7d9a0c966085b744425bbe575a8b000e18e28cf2de4bb03854829513641dad5989038f383cffa888591b56d SHA512 a899ebd8105092a71a556c20a80f978ee46459c45c31bb2b7f2b3bede225affc6d40438ae7d3db13c618b17da1785b4332e1777f282b93c6e3273a3227b8e474 DIST matrix-commander-7.7.0.gh.tar.gz 1847818 BLAKE2B 9965f6f13ffa2047ea6acfe736356f483651fb3ae7d9a0c966085b744425bbe575a8b000e18e28cf2de4bb03854829513641dad5989038f383cffa888591b56d SHA512 a899ebd8105092a71a556c20a80f978ee46459c45c31bb2b7f2b3bede225affc6d40438ae7d3db13c618b17da1785b4332e1777f282b93c6e3273a3227b8e474
DIST matrix-commander-7.7.1.gh.tar.gz 1847850 BLAKE2B 5253b2d0cace78b68ba11f41e6263afa107e7a37d79047894f43c1deb9dee7951b7d6c180f078923112f9cc7363c914cda4ec53008cc6cd52b4463ff91e2b064 SHA512 b3b86675de9966a7a9d5ad0efb19a255a5508d2932784a906b75a1cf9fc49b49551612eb1c014b38159598b0d8e4ffa841be82ecd00df363da75b6e535ebae5f DIST matrix-commander-7.7.1.gh.tar.gz 1847850 BLAKE2B 5253b2d0cace78b68ba11f41e6263afa107e7a37d79047894f43c1deb9dee7951b7d6c180f078923112f9cc7363c914cda4ec53008cc6cd52b4463ff91e2b064 SHA512 b3b86675de9966a7a9d5ad0efb19a255a5508d2932784a906b75a1cf9fc49b49551612eb1c014b38159598b0d8e4ffa841be82ecd00df363da75b6e535ebae5f
DIST matrix-commander-8.0.0.gh.tar.gz 1847884 BLAKE2B f72adc52d5cf4be74e1eabd612a093fbba430a441567b92573f363b81ffc6745c4236db3aa52882bb7b8e9681d12b1b769cdf33d7357e5f7086783c085f39c50 SHA512 2381d4e2160a656b0372f9b386d5626cdf5728253efcfe04473b5df22cfdaf7988f7d8cd61b9b8d65bff63c76354b636d2aea8877eab063d867aa2817d609f81

View File

@ -1,49 +0,0 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 bash-completion-r1
DESCRIPTION="Simple but convenient CLI-based Matrix client app for sending and receiving"
HOMEPAGE="https://github.com/8go/matrix-commander"
SRC_URI="https://github.com/8go/matrix-commander/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
# Tests are a bunch shell scripts and lone python script
# Not gonna bother as they require testing against a running matrix server
RESTRICT="test"
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/aiofiles-0.6.0[${PYTHON_USEDEP}]
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/async-timeout[${PYTHON_USEDEP}]
dev-python/emoji[${PYTHON_USEDEP}]
dev-python/markdown[${PYTHON_USEDEP}]
>=dev-python/matrix-nio-0.14.1[e2e(+),${PYTHON_USEDEP}]
dev-python/notify2[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/python-magic[${PYTHON_USEDEP}]
dev-python/pyxdg[${PYTHON_USEDEP}]
')
"
src_prepare() {
eapply_user
sed -i -e 's/matrix-commander.py/matrix-commander/' auto-completion/bash/matrix-commander.bash || die
}
src_install() {
distutils-r1_src_install
newbashcomp auto-completion/bash/matrix-commander.bash matrix-commander
}

View File

@ -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 DIST meganz-sdk-7.12.0.tar.gz 4229704 BLAKE2B 895a3803f9c03858ae67097b69c7fbeb94a57a4873fdb9643728a92a804614c8ec22a67f9744bb5ffc4e6b551a18e3b809549a533fa731b33c1f28e77a8d22dc SHA512 4e4a0d6822a979ef9ccd587031de61a36a82be61ef87facd5de94ae056530a9eb793b0d2a2a5db8530a7e8664b6556705bad82345c2c01c6fb3e04fe8c511af7
DIST meganz-sdk-7.13.0.tar.gz 4252498 BLAKE2B 32bc0ac25607b63ff2ddf0016a541a521539a3bef76158007e5f404aacf45ac17a360f232f64335231a2cb2db9617452c4223f16ee03f717189275aa08d1929a SHA512 0bc1805eb43a74f02bc8e0f8a71c4e7c3d7152f45b76c062c82ba0e023f50404b73330ed2970f1c88935a3ec190af29fc944c90cbeb360e63fa0fd1dcbb915f9

View File

@ -1,25 +0,0 @@
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 <iomanip>; this is probably fixable by adding #include <iomanip>
27 | #include <mega/process.h>
+++ |+#include <iomanip>
28 | #include <mega/scoped_helpers.h>
/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 <iomanip>; this is probably fixable by adding #include <iomanip>
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,3 +29,5 @@
#include <mega/utils.h>
+#include <iomanip>
+
TEST(utils, readLines)

View File

@ -0,0 +1,107 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic qmake-utils autotools db-use
if [[ -z ${PV%%*9999} ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN%-*}/${PN#*-}.git"
else
SRC_URI="https://github.com/meganz/sdk/archive/v${PV}d.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/sdk-${PV}d"
RESTRICT="primaryuri"
KEYWORDS="~amd64 ~x86"
fi
DESCRIPTION="MEGA C++ SDK"
HOMEPAGE="https://github.com/meganz/sdk"
LICENSE="BSD-2"
SLOT="0/30701"
IUSE="examples ffmpeg freeimage fuse hardened inotify libuv mediainfo qt raw +sqlite test"
REQUIRED_USE="
examples? ( sqlite )
fuse? ( examples )
"
# tests require a working mega.nz account and login details provided via $MEGA_EMAIL and $MEGA_PWD
RESTRICT+=" test"
RDEPEND="
dev-libs/crypto++
sys-libs/zlib
dev-libs/libpcre:3[cxx]
dev-libs/openssl:0
net-dns/c-ares
net-misc/curl
sqlite? ( dev-db/sqlite:3 )
!sqlite? ( sys-libs/db:*[cxx] )
examples? (
sys-libs/readline:0
fuse? ( sys-fs/fuse:0 )
)
freeimage? ( media-libs/freeimage )
libuv? ( dev-libs/libuv )
dev-libs/libsodium
mediainfo? ( media-libs/libmediainfo )
ffmpeg? ( media-video/ffmpeg )
raw? ( media-libs/libraw )
"
DEPEND="
${RDEPEND}
test? ( dev-cpp/gtest )
"
pkg_setup() {
use sqlite || append-cppflags "-I$(db_includedir)"
}
src_prepare() {
default
use qt && sed \
-e '/SOURCES += src\// s:+:-:' \
-e '/!exists.*config.h/ s:!::' \
-e 's:CONFIG(USE_MEGAAPI) {:&\nLIBS += -lmega:' \
-e '/^unix:!macx {/,/^}/d' \
-i bindings/qt/sdk.pri
use test && sed \
-e 's:\$(GTEST_DIR)/lib/lib\([^ ]\+\)\.la:-l\1:g' \
-e 's: tests/tool_purge_account::' \
-i tests/include.am
eautoreconf
}
src_configure() {
local myeconfargs=(
--enable-chat
$(use_enable inotify)
$(use_enable hardened gcc-hardening)
$(use_with libuv)
$(use_with !sqlite db)
$(use_with sqlite)
$(use_enable examples)
$(use_enable test tests)
$(use_with freeimage)
$(use_with fuse)
$(use_with mediainfo libmediainfo)
$(use_with ffmpeg)
$(use_with raw libraw)
)
use test && myeconfargs+=(
--with-gtest="${EPREFIX}/usr"
)
econf "${myeconfargs[@]}"
}
src_test() {
export MEGA_EMAIL MEGA_PWD MEGA_EMAIL_AUX="${MEGA_EMAIL}" MEGA_PWD_AUX="${MEGA_PWD}"
default
}
src_install() {
default
doheader -r include/mega
use qt || return
insinto /usr/share/${PN}/bindings/qt
doins bindings/qt/*.{h,cpp,pri}
}

View File

@ -47,10 +47,6 @@ DEPEND="
sys-libs/readline sys-libs/readline
" "
PATCHES=(
"${FILESDIR}"/meganz-sdk-7.13.0-missing-iomanip.patch
)
src_prepare() { src_prepare() {
# 1. Mismatched pkgconfig file names # 1. Mismatched pkgconfig file names
# 2. Symbols still needed publically when linking library # 2. Symbols still needed publically when linking library