public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-misc/megasync/
Date: Thu, 08 May 2025 13:47:13 +0000 (UTC)	[thread overview]
Message-ID: <1746698956.ff7754d76f3950082e966e338e936dbe4e7ccdbc.davidroman@gentoo> (raw)

commit:     ff7754d76f3950082e966e338e936dbe4e7ccdbc
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Thu May  8 10:09:16 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Thu May  8 10:09:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff7754d7

net-misc/megasync: add 5.11.0.3

Closes: https://bugs.gentoo.org/953131
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 net-misc/megasync/Manifest                 |   2 +
 net-misc/megasync/megasync-5.11.0.3.ebuild | 170 +++++++++++++++++++++++++++++
 2 files changed, 172 insertions(+)

diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
index 635022ca8..3a4e07ddf 100644
--- a/net-misc/megasync/Manifest
+++ b/net-misc/megasync/Manifest
@@ -1,4 +1,6 @@
 DIST megasync-5.10.1.0.tar.gz 25034200 BLAKE2B a4e0b0fd8e05d05656f7ab9eceaaf2666b6c6e1b7714dbc92d0ae1f45298f1d74a056a6d6869f90a4019b4d9ccb14a27ff4690b609e62d8b384c58ddf712e9ab SHA512 186ca5ece1c684adc16d8afe10cd2d1ca5c368ba928bc4cadb4d4c143c33df26205db316154a39e77d2613748906d736a66451dd5c00236371c9d9245fbb7f0e
+DIST megasync-5.11.0.3.tar.gz 25258752 BLAKE2B d715fbca0893432e1713fc94d1cac3264b11533564df54161c1687a9424d8d67529a3b631d7f0172e445e08a3bec7a4c822e16906289f9e6b5de517efe761c0e SHA512 7b4ebed75ad6a460e5d665451170d85a92a2aa972807ebdea03139318b96f63e3d168bb46601f761bb97f2f6607d231fce9ee12ad2e5ac49b907fbba46552024
 DIST megasync-5.9.0.3.tar.gz 24888074 BLAKE2B 44278e7da30819654775dfe71059251c7846e4ebb972b4fefd30d327604ed6c1bd9d899976a56bca7d371e7314378e96e68d265f513f758a1157d87c1fc5a8f7 SHA512 3777c630c44c6042cceeb99a3757ce0d2d9ded9d768be843ce3b74fdaa0d5be89c8a3c341f4f0dc822d0799ac528c3d42eb33b88484eb07271a9917914fe7b8f
 DIST megasync-sdk-5.10.1.0.tar.gz 4135154 BLAKE2B 762f86763abbc1f853757a6f2102f6769a768d23acbf34378a5852ec6e749945e30dc2f509ffbd600b43b38195e68c360f2e803e52624f2d3b7732af65243400 SHA512 901562ec9c401567e98ede503498b016a64f89a19f4ce9e26c885f81e1c7d35efa3ce3d235415da310f7e026d48f2e277ff0c385acfb9e420f4448ed9d36c997
+DIST megasync-sdk-5.11.0.3.tar.gz 4173555 BLAKE2B 7e7e14f60d4f085da9a61e177ab771bc7546679b6c37d1eb9e60e8307f9b02b0f3532a7139968cd55f6a51146c25283440de3bea5e98500327d39c2b50da968d SHA512 4559f7d18247e19496319ace4370a0b0e117a9917dfe1800a5626ecf5b9f678412851bd17738f4792ad530bb9b7cd18dc23eca23ecdb4108c52f96598cb7f453
 DIST megasync-sdk-5.9.0.3.tar.gz 4118381 BLAKE2B d722d6fc871354d01e77a50fc0d071396463d3d9485f8197e7d75a9a5af05bac16c3b15111c2b328156d8467f87ab13f2585998c3cabda298cfcc7eb283684be SHA512 f49162ea1c73a5e63408693ab770b454b7ba4252321ef3cd50b7fd2d22f2a27a7df68cbbf102b8bf5220bc313809c3737c1c32f766999f7348c63a60dc68de29

diff --git a/net-misc/megasync/megasync-5.11.0.3.ebuild b/net-misc/megasync/megasync-5.11.0.3.ebuild
new file mode 100644
index 000000000..3ed18b10c
--- /dev/null
+++ b/net-misc/megasync/megasync-5.11.0.3.ebuild
@@ -0,0 +1,170 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic qmake-utils xdg
+
+DESCRIPTION="The official Qt-based program for syncing your MEGA account in your PC"
+HOMEPAGE="
+	https://mega.io
+	https://github.com/meganz/MEGAsync
+"
+
+MEGA_SDK_REV="f60237a8d46cec993137065d39138fd42c043271" # commit of src/MEGASync/mega submodule
+MEGA_TAG_SUFFIX="Win"
+SRC_URI="
+	https://github.com/meganz/MEGAsync/archive/v${PV}_${MEGA_TAG_SUFFIX}.tar.gz -> ${P}.tar.gz
+	https://github.com/meganz/sdk/archive/${MEGA_SDK_REV}.tar.gz -> ${PN}-sdk-${PV}.tar.gz
+"
+S="${WORKDIR}"/MEGAsync-${PV}_${MEGA_TAG_SUFFIX}
+
+LICENSE="MEGA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dolphin mediainfo nautilus nemo thumbnail thunar"
+
+DEPEND="
+	dev-db/sqlite:3
+	dev-libs/crypto++:=
+	dev-libs/icu:=
+	dev-libs/libsodium:=
+	dev-libs/libuv:=
+	dev-libs/openssl:0=
+	dev-qt/qtconcurrent:5
+	dev-qt/qtcore:5
+	dev-qt/qtdbus:5
+	dev-qt/qtdeclarative:5
+	dev-qt/qtgui:5
+	dev-qt/qtnetwork:5
+	dev-qt/qtimageformats:5
+	dev-qt/qtsvg:5
+	dev-qt/qtwidgets:5
+	dev-qt/qtx11extras:5
+	net-misc/curl[ssl]
+	sys-libs/zlib
+	x11-libs/libxcb:=
+	dolphin? (
+		dev-qt/qtbase:6[network,widgets]
+		kde-apps/dolphin:6
+		kde-frameworks/kcoreaddons:6
+		kde-frameworks/kio:6
+		kde-frameworks/kwidgetsaddons:6
+	)
+	mediainfo? (
+		media-libs/libmediainfo
+		media-libs/libzen
+	)
+	nautilus? (
+		dev-libs/glib:2
+		>=gnome-base/nautilus-43
+	)
+	nemo? (
+		dev-libs/glib:2
+		gnome-extra/nemo
+	)
+	thumbnail? (
+		media-libs/freeimage
+		media-video/ffmpeg:=
+	)
+	thunar? (
+		dev-libs/glib:2
+		xfce-base/thunar:=
+	)
+"
+RDEPEND="
+	${DEPEND}
+	dev-qt/qtquickcontrols:5
+	dev-qt/qtquickcontrols2:5
+"
+BDEPEND="
+	dev-qt/linguist-tools:5
+	virtual/pkgconfig
+	dolphin? ( kde-frameworks/extra-cmake-modules )
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-4.10.0.0_ffmpeg6.patch"
+	"${FILESDIR}/${PN}-5.6.0.0-remove-clang-format.patch"
+	"${FILESDIR}/${PN}-5.7.0.0-disable-forced-options.patch"
+	"${FILESDIR}/${PN}-5.7.0.0-fix-install-dir.patch"
+	"${FILESDIR}/${PN}-5.7.0.0-rename-libcryptopp.patch"
+	"${FILESDIR}/${PN}-5.10.0.2-link-zlib.patch"
+)
+
+BUILD_DIR_DOLPHIN="${S}_dolphin"
+
+dolphin_run() {
+	if use dolphin; then
+		cd "${S}/src/MEGAShellExtDolphin" || die
+		BUILD_DIR="${BUILD_DIR_DOLPHIN}" CMAKE_USE_DIR="${S}/src/MEGAShellExtDolphin" "$@"
+	fi
+}
+
+nemo_run() {
+	if use nemo; then
+		cd "${S}/src/MEGAShellExtNemo" || die
+		"$@"
+	fi
+}
+
+thunar_run() {
+	if use thunar; then
+		cd "${S}/src/MEGAShellExtThunar" || die
+		"$@"
+	fi
+}
+
+src_prepare() {
+	rmdir src/MEGASync/mega || die
+	mv "${WORKDIR}/sdk-${MEGA_SDK_REV}" src/MEGASync/mega || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	# https://github.com/meganz/sdk/issues/2679
+	append-cppflags -DNDEBUG
+
+	local mycmakeargs=(
+		# build internal libs as static
+		-DBUILD_SHARED_LIBS=OFF
+		-DCMAKE_MODULE_PATH="${S}/src/MEGASync/mega/cmake/modules/packages"
+		-DENABLE_DESKTOP_APP_TESTS=OFF
+		-DENABLE_DESKTOP_APP_WERROR=OFF
+		-DENABLE_DESKTOP_UPDATE_GEN=OFF
+		-DENABLE_DESIGN_TOKENS_IMPORTER=OFF
+		-DENABLE_ISOLATED_GFX=$(usex thumbnail)
+		-DENABLE_LINUX_EXT=$(usex nautilus)
+		-DUSE_FFMPEG=$(usex thumbnail)
+		-DUSE_FREEIMAGE=$(usex thumbnail)
+		-DUSE_MEDIAINFO=$(usex mediainfo)
+		-DUSE_PDFIUM=OFF
+		-DUSE_READLINE=OFF
+	)
+	cmake_src_configure
+
+	mycmakeargs=(
+		-DKF_VER=6
+		-DQt_VER=6
+	)
+	dolphin_run cmake_src_configure
+	nemo_run eqmake5 DEFINES=no_desktop
+	thunar_run eqmake5
+}
+
+src_compile() {
+	cmake_src_compile
+
+	dolphin_run cmake_src_compile
+	nemo_run emake
+	thunar_run emake
+}
+
+src_install() {
+	cmake_src_install
+
+	dolphin_run cmake_src_install
+	nemo_run emake INSTALL_ROOT="${D}" install
+	thunar_run emake INSTALL_ROOT="${D}" install
+}


             reply	other threads:[~2025-05-08 13:47 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-08 13:47 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-05  7:40 [gentoo-commits] repo/proj/guru:master commit in: net-misc/megasync/ David Roman
2025-04-05  7:40 David Roman
2025-04-04  8:56 David Roman
2025-02-06 15:49 David Roman
2025-01-17 14:16 Julien Roy
2025-01-17 14:16 Julien Roy
2025-01-02 19:26 David Roman
2024-11-21 14:11 Julien Roy
2024-11-21 14:11 Julien Roy
2024-10-31 11:33 David Roman
2024-10-04 10:24 Rui Huang
2024-09-21  8:47 David Roman
2024-08-20 20:46 David Roman
2024-08-20 20:46 David Roman
2024-07-27 17:46 David Roman
2024-07-27 17:46 David Roman
2024-07-14  0:34 David Roman
2024-05-07 14:26 Florian Schmaus
2024-05-07 14:26 Florian Schmaus
2024-03-25 16:13 Julien Roy
2024-03-19 10:20 Julien Roy
2024-03-19 10:20 Julien Roy
2024-01-29 10:48 David Roman
2024-01-29 10:48 David Roman
2024-01-26 10:35 David Roman
2024-01-26 10:35 David Roman
2023-11-24 17:20 David Roman
2023-11-24 17:20 David Roman
2023-11-20 14:14 David Roman
2023-11-16 16:02 David Roman
2023-11-16 10:05 David Roman
2023-11-16 10:05 David Roman
2021-05-24 22:25 Haelwenn Monnier
2021-05-22 12:16 Andrew Ammerlaan
2021-05-06  9:55 Andrew Ammerlaan
2021-05-03 10:11 Andrew Ammerlaan
2021-01-25  8:53 Andrew Ammerlaan
2021-01-03 13:58 Andrew Ammerlaan
2021-01-03 13:58 Andrew Ammerlaan
2021-01-02 16:57 Andrew Ammerlaan
2021-01-01 13:14 Andrew Ammerlaan
2020-12-11  8:36 Andrew Ammerlaan
2020-12-11  8:36 Andrew Ammerlaan
2020-11-08 12:34 Andrew Ammerlaan
2020-11-08 11:13 Andrew Ammerlaan
2020-11-08 11:13 Andrew Ammerlaan
2020-11-08 11:13 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1746698956.ff7754d76f3950082e966e338e936dbe4e7ccdbc.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox