public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-misc/megasync/
Date: Fri, 17 Jan 2025 14:16:45 +0000 (UTC)	[thread overview]
Message-ID: <1737119718.995c05239b31f7489c24a437c481984e336c92cc.julien@gentoo> (raw)

commit:     995c05239b31f7489c24a437c481984e336c92cc
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Fri Jan 17 13:15:18 2025 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Fri Jan 17 13:15:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=995c0523

net-misc/megasync: add 5.7.1.0

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 net-misc/megasync/Manifest                |   2 +
 net-misc/megasync/megasync-5.7.1.0.ebuild | 147 ++++++++++++++++++++++++++++++
 2 files changed, 149 insertions(+)

diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
index da95ff9c9..346594b8e 100644
--- a/net-misc/megasync/Manifest
+++ b/net-misc/megasync/Manifest
@@ -1,4 +1,6 @@
 DIST megasync-5.6.1.0.tar.gz 24712997 BLAKE2B 0e1a80c3c4f934f0b9274beba0883a72ab41bb9dc71284109cf2dd17660adc30ace4e82258ff403d1f95e5edab3aedf309632c2e172b0c727bdfedf06379d09e SHA512 f62b8890eefd4b0f66eeaf99e98a04369da36daea1b3011888c16408578a6e10f3bbe5d584b18a249776ceff9184b77506a809fd1bba95b8f6671a8bf10a1dc1
 DIST megasync-5.7.0.0.tar.gz 23204780 BLAKE2B 5d17808e366e2d3f538168d0580b2a68d077e95d45346f377eb5172d10d06db948fa021e3d1dc39b0d4967cba5b540a843028a571457adea53adcf9770e4e190 SHA512 b7db94bd372d9fd94fa987dc8a370129f23bcb2ff885862544e1a154de71af12459e8af7cbc25fecde5f3c074c81eac079d53dcdcef90e3f0ae8638bced7c868
+DIST megasync-5.7.1.0.tar.gz 23206352 BLAKE2B 9a15e169657461df07a801ec2ace7370213c2ca17bd67bbad0003ed3cfdf0fbf12ac2535e07324a4ca3d6a44d3a8bab1ca1f98b707cdf9288fab14145770c2d8 SHA512 99e5c9dd412d8adc5232ace6385f1377cf7fd8f166164a0bb54981412a3a1f06c30269679ea92fd932ceb7393764e7265bb61aa49e4bc952f0e3cc300a404fb0
 DIST megasync-sdk-5.6.1.0.tar.gz 4231187 BLAKE2B 4e0640281b451d9de18f63be3cca832717fe3ea387d91ace63a7db9d63ea51dfdd54342912885b3a7bde475b93beb524c9a44da9d2106d157df4a6b13b470104 SHA512 f630c3232e3b7b5ac5d9fab0f2d3c8ea6acbd98bb27fdc948d150e91b9edf5ffda575a52544fe5af0e6a023fa53ffe3dc1632e06c823956928e7edb0637f2932
 DIST megasync-sdk-5.7.0.0.tar.gz 4042090 BLAKE2B 326688d633dfd08a160a799a426d29c84515d5971a7b6644ee7624b9ffd092e21f2f0e3f31a55bdfb766623bea60a9867c3c412a4ccd08b629391abdd0056dba SHA512 9c0562f072c00d42b9e53e66f123990dac76ec0dccef6b32985468da75d79105e9e6ed2aad084f8110bc1d89efed21488bf71303872bbd876cd5260fac7caf7e
+DIST megasync-sdk-5.7.1.0.tar.gz 4042434 BLAKE2B bb0ba4e0e44f335ca9089ee7521bd856f6bb3485abdd7c5bf905c2581fd409099e784bdeb90c4fcbe82048231376118ebd791f9b8a5846dabc3ad37a346021e3 SHA512 9dce611c1f1e1edfa20684f88d5206a2c3810acedb42d2cb92c5d287c0feda6dfee5a450e222d6f59b97081f76a2cb56aa62859b32929101f7f61056973a3c95

diff --git a/net-misc/megasync/megasync-5.7.1.0.ebuild b/net-misc/megasync/megasync-5.7.1.0.ebuild
new file mode 100644
index 000000000..f9a3d0981
--- /dev/null
+++ b/net-misc/megasync/megasync-5.7.1.0.ebuild
@@ -0,0 +1,147 @@
+# 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="d6a5d2078d1e51394dab205a48bff58d2b130d6b" # 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="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-dns/c-ares:=
+	net-misc/curl[ssl]
+	sys-libs/zlib
+	x11-libs/libxcb:=
+	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
+"
+
+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-link-zlib.patch"
+	"${FILESDIR}/${PN}-5.7.0.0-rename-libcryptopp.patch"
+)
+
+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_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
+
+	unset mycmakeargs
+	nemo_run eqmake5 DEFINES=no_desktop
+	thunar_run eqmake5
+}
+
+src_compile() {
+	cmake_src_compile
+
+	nemo_run emake
+	thunar_run emake
+}
+
+src_install() {
+	cmake_src_install
+
+	nemo_run emake INSTALL_ROOT="${D}" install
+	thunar_run emake INSTALL_ROOT="${D}" install
+}


             reply	other threads:[~2025-01-17 14:16 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-17 14:16 Julien Roy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-10-02  8:47 [gentoo-commits] repo/proj/guru:master commit in: net-misc/megasync/ David Roman
2025-09-28 17:22 David Roman
2025-09-28 17:22 David Roman
2025-08-13 15:47 David Roman
2025-08-13 15:47 David Roman
2025-05-08 13:47 David Roman
2025-04-05  7:40 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-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=1737119718.995c05239b31f7489c24a437c481984e336c92cc.julien@gentoo \
    --to=julien@jroy.ca \
    --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