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, 16 Nov 2023 10:05:57 +0000 (UTC)	[thread overview]
Message-ID: <1699972029.5dd335988fa9622079c7599a373a31ff1bff4e75.davidroman@gentoo> (raw)

commit:     5dd335988fa9622079c7599a373a31ff1bff4e75
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Tue Nov 14 14:27:09 2023 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Nov 14 14:27:09 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5dd33598

net-misc/megasync: add 4.11.0.0

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

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

diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
index c522358232..8d5dff5f09 100644
--- a/net-misc/megasync/Manifest
+++ b/net-misc/megasync/Manifest
@@ -1,4 +1,6 @@
 DIST megasync-4.10.0.0.tar.gz 20254658 BLAKE2B c36a715ec4da883f5f8b9bf2f9f223b0701ba7b74399cba448bbf93dbc210bc2b3ff4b538af0eba08ea8a92f0134749fa2eeb3eba00b1de6cfad5d42117d2ab8 SHA512 3f37c39dd0552e64f802cebb63f275a8cbc2b445aad1f74576b732022563f79c8264257494f7778d6fec6dff98f06cc7276022edc6e6279bd6e683fdcfcddb94
+DIST megasync-4.11.0.0.tar.gz 20313571 BLAKE2B 8c5c58912fef730bf3e4c56c5de0b2c6f4825be6c91ec19e6c5f5946a76efa5fd9f36f6afdee3d886b31a13c924dea81f7999d29fbab0bb0f1acefbe52c449f5 SHA512 ab43b83d05d56b8eb1bf66ed89801889cfb8d21d9bae86245607a1d7c36f7436fa8879f6fd94cb07c4a2e8567532b9e0919ec9e78e2ca85d8fca262b1479b482
 DIST megasync-4.5.0.0.tar.gz 16162074 BLAKE2B 9ad09b61614992fc48572c168bb3b9692145289b945c01e371babe78a3b75bcc20a842f524279f6db35f8d93c914e9ba68ee5d187614b5041638813cb304531e SHA512 f0c78d741be4a9ee9411be63667ea76cca3ff50ab70a81c904011e1ce1c6f0287ab5c90fc2b1a7a7c040b2d568819f91ecd10f8d570b22231df7b99166eacb11
 DIST megasync-sdk-4.10.0.0.tar.gz 3696547 BLAKE2B 13f69a0bd24a4aac6e73af1bd883bd0abdfd5ceef6e9e558286fc9002acd5f4822c762b57c4ca7fc0000d3f5ec3a1a00459e3b0a2d2d1c4963d7fc8caacd2b6a SHA512 8dcbd0a0b086616a432ff0979695ddb799a01a32550f0777ddf26fe795b340a754dbcd3f77af55e9286673bca3c366cdaa07432c1c2b552b2ecf23f9500e8a2c
+DIST megasync-sdk-4.11.0.0.tar.gz 3714994 BLAKE2B 6d6d217d8acb7f191c88f18bc0b2ef9b6f743502a9916841177a93452c1818cffcb8275134cc2a32162693c59af829d42249497f2ed18b66e3c0f032f0ba6780 SHA512 471102d280d02b90f41c46f5700c0d71d88f74ccf7c605c717a66ad154c84c725ce231d11779fd480b2eb81b073da0bbea00dbc149918e6519fe89694b185ef4
 DIST megasync-sdk-4.5.0.0.tar.gz 3497367 BLAKE2B 1594d792f38df4df29acd25ea5c920acf27410513544abc618a692e3ed2e6e1a459123b043a9aa3bfdc4647d753d6c14cc5ee1bde02abd6c0f6d7ce66b118821 SHA512 177b9e31f2aacfa370132657bb70ec315edcfbcfe043f067f4c67b69a47ade7235699183541de2462d2ab2a18b4688006cd938ae80da603df9bd79d908b58140

diff --git a/net-misc/megasync/megasync-4.11.0.0.ebuild b/net-misc/megasync/megasync-4.11.0.0.ebuild
new file mode 100644
index 0000000000..e1d99aa78a
--- /dev/null
+++ b/net-misc/megasync/megasync-4.11.0.0.ebuild
@@ -0,0 +1,149 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools cmake 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
+"
+
+if [[ ${PV} == 9999 ]];then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/meganz/MEGAsync"
+	EGIT_BRANCH="master"
+	EGIT_SUBMODULES=( '*' )
+else
+	MEGA_SDK_REV="6d4c102940dab277974090cd4292e58f08ac6032" # 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
+	"
+	KEYWORDS="~amd64 ~x86"
+	S="${WORKDIR}"/MEGAsync-${PV}_${MEGA_TAG_SUFFIX}
+fi
+
+LICENSE="MEGA"
+SLOT="0"
+IUSE="+cryptopp +curl +sqlite +zlib dolphin examples freeimage java nautilus nemo php python readline threads thunar"
+
+RDEPEND="
+	app-arch/xz-utils
+	dev-libs/libgcrypt
+	dev-libs/libsodium
+	dev-libs/libuv
+	dev-libs/openssl:0=
+	media-libs/libpng
+	net-dns/c-ares
+	x11-themes/hicolor-icon-theme
+	cryptopp? ( dev-libs/crypto++ )
+	curl? ( net-misc/curl[ssl,curl_ssl_openssl(-)] )
+	dolphin? ( kde-apps/dolphin )
+	freeimage? ( media-libs/freeimage )
+	nautilus? ( >=gnome-base/nautilus-43 )
+	nemo? ( gnome-extra/nemo )
+	readline? ( sys-libs/readline:0 )
+	sqlite? ( dev-db/sqlite:3 )
+	thunar? ( xfce-base/thunar )
+	zlib? ( sys-libs/zlib )
+"
+DEPEND="
+	${RDEPEND}
+	media-libs/libmediainfo
+	media-libs/libraw
+	dev-qt/qtcore:5
+	dev-qt/qtwidgets:5
+	dev-qt/qtgui:5
+	dev-qt/qtconcurrent:5
+	dev-qt/qtnetwork:5
+	dev-qt/qtdbus:5
+	dev-qt/qtimageformats:5
+	dev-qt/qtsvg:5
+	dev-qt/qtx11extras:5
+"
+BDEPEND="
+	dev-lang/swig
+	dev-qt/linguist-tools
+	dolphin? ( kde-frameworks/extra-cmake-modules )
+"
+
+CMAKE_USE_DIR="${S}/src/MEGAShellExtDolphin"
+
+src_prepare() {
+	if [[ ${PV} != 9999 ]]; then
+		rmdir src/MEGASync/mega
+		mv "${WORKDIR}/sdk-${MEGA_SDK_REV}" src/MEGASync/mega
+	fi
+
+	if has_version ">=media-video/ffmpeg-6.0"; then
+		eapply "${FILESDIR}/${PN}-4.10.0.0_ffmpeg6.patch"
+	fi
+	eapply "${FILESDIR}/${PN}-4.10.0.0_fix-build.patch"
+
+	if use dolphin; then
+		cmake_src_prepare
+	else
+		default
+	fi
+
+	cd "${S}/src/MEGASync/mega"
+	eautoreconf
+}
+
+src_configure() {
+	cd "${S}/src/MEGASync/mega"
+	econf \
+		"--disable-silent-rules" \
+		"--disable-curl-checks" \
+		"--disable-megaapi" \
+		$(use_with zlib) \
+		$(use_with sqlite) \
+		$(use_with cryptopp) \
+		"--with-cares" \
+		$(use_with curl) \
+		"--without-termcap" \
+		$(use_enable threads posix-threads) \
+		"--with-sodium" \
+		$(use_with freeimage) \
+		$(use_with readline) \
+		$(use_enable examples) \
+		$(use_enable java) \
+		$(use_enable php) \
+		$(use_enable python)
+
+	cd "${S}/src"
+	local myeqmakeargs=(
+		MEGA.pro
+		CONFIG+="release"
+		$(usex freeimage "" "CONFIG+=nofreeimage")
+		$(usev nautilus "SUBDIRS+=MEGAShellExtNautilus")
+		$(usev nemo "SUBDIRS+=MEGAShellExtNemo")
+		$(usev thunar "SUBDIRS+=MEGAShellExtThunar")
+	)
+
+	eqmake5 ${myeqmakeargs[@]}
+	$(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro
+
+	use dolphin && cmake_src_configure
+}
+
+src_compile() {
+	emake -C src
+
+	use dolphin && cmake_src_compile
+}
+
+src_install() {
+	emake -C src INSTALL_ROOT="${D}" install
+	dobin "src/MEGASync/${PN}"
+	dodoc CREDITS.md README.md
+
+	rm -rf "${D}"/usr/share/doc/megasync
+	rm -rf "${D}"/usr/share/icons/ubuntu-mono-dark
+
+	use dolphin && cmake_src_install
+}


             reply	other threads:[~2023-11-16 10:06 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16 10:05 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-31 11:33 [gentoo-commits] repo/proj/guru:master commit in: net-misc/megasync/ 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
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=1699972029.5dd335988fa9622079c7599a373a31ff1bff4e75.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