aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Wakazono <pastalian46@gmail.com>2024-10-04 01:05:44 +0900
committerTakuya Wakazono <pastalian46@gmail.com>2024-10-04 01:05:44 +0900
commit63c23e7803aeb99f6abbbb61099ef7c6bbedc164 (patch)
tree6aca4d79dc29b8f8671922954d2980f32aa80165 /net-misc
parentnet-voip/baresip: add 3.16.0 (diff)
downloadguru-63c23e7803aeb99f6abbbb61099ef7c6bbedc164.tar.gz
guru-63c23e7803aeb99f6abbbb61099ef7c6bbedc164.tar.bz2
guru-63c23e7803aeb99f6abbbb61099ef7c6bbedc164.zip
net-misc/megasync: add 5.5.0.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/megasync/Manifest2
-rw-r--r--net-misc/megasync/megasync-5.5.0.0.ebuild149
-rw-r--r--net-misc/megasync/megasync-9999.ebuild16
3 files changed, 155 insertions, 12 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
index 83dd07b40..f8beac786 100644
--- a/net-misc/megasync/Manifest
+++ b/net-misc/megasync/Manifest
@@ -1,2 +1,4 @@
DIST megasync-5.4.1.0.tar.gz 24718226 BLAKE2B ab89ed026efc0e28ef5c21554db259e74199d12d1194ecf358ad658b0ecee5a7c421ce374e3ba54a752e813c38b535034c04e9749b1f9d876a7df88951d2250a SHA512 d908308135cdd717555002d58c4faa1917bd049a0a2f99ae0b487f2ccfda6d7a00c9dee72aae52210079e656f3031bf3cf414020090e4a6b600e3cef5af11901
+DIST megasync-5.5.0.0.tar.gz 24651476 BLAKE2B 6a62b9c27329864e53bc80a98018c6ccbc4a858518ef497a0825b251bd9458888e3b7f1c5ff09488971aa11d927bb173e14289f035db439b9e0340bd9add8a79 SHA512 4a62fadff5f472391b7ee1b0bf525878c1030bbb0e8d88e4f79571b61d5f9e86769d2ee8081638b0b0110ee59b9b9de1ad39cfdb87f36887286a8543aafcfd02
DIST megasync-sdk-5.4.1.0.tar.gz 4248625 BLAKE2B 96e76e6e421b2f4b7423d5870f0cfcf89bbec6392191e84b2ee7daa0ac4a6a9c6c9599773bd124ce5189abf7a80db981c0f260eec18be8ef7825bba5422123f4 SHA512 740dad61901775ef2e93861c4a42e9e20a779c7189084ed8336cb06d64a3743638e7ca499279b71d2e8bf68d225a3a6397fdfff1a89c18d413ab44eec489c7ea
+DIST megasync-sdk-5.5.0.0.tar.gz 4206234 BLAKE2B 08da742a9dd7d89ebbdb7b0b45dc1c174819b605734a87ab28bb9f1dae4108162110e4d7c820e2427e7b63250cd0550daab20e514eaa33543e47f7d7ea44d1ec SHA512 20a87e4440d2d161335f268389b58c353d9dd6bb1f0b2423c403b1f7202cc927776d3225f4e174b238b03a062d998f65a3ded931fb7f8718275934529015a74c
diff --git a/net-misc/megasync/megasync-5.5.0.0.ebuild b/net-misc/megasync/megasync-5.5.0.0.ebuild
new file mode 100644
index 000000000..fa2c72a29
--- /dev/null
+++ b/net-misc/megasync/megasync-5.5.0.0.ebuild
@@ -0,0 +1,149 @@
+# Copyright 2023-2024 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
+"
+
+if [[ ${PV} == 9999 ]];then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/meganz/MEGAsync"
+ EGIT_BRANCH="master"
+ EGIT_SUBMODULES=( '*' )
+else
+ MEGA_SDK_REV="eb86660026272d62a547099d2fed3a7d46fc64e7" # commit of src/MEGASync/mega submodule
+ MEGA_TAG_SUFFIX="Linux"
+ 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="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? ( 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.3.0.0-link-zlib.patch"
+ "${FILESDIR}/${PN}-5.3.0.0-fix-install-dir.patch"
+ "${FILESDIR}/${PN}-5.3.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() {
+ if [[ ${PV} != 9999 ]]; then
+ rmdir src/MEGASync/mega || die
+ mv "${WORKDIR}/sdk-${MEGA_SDK_REV}" src/MEGASync/mega || die
+ fi
+
+ 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/contrib/cmake/modules/packages"
+ -DENABLE_DESKTOP_APP_WERROR=OFF
+ -DENABLE_DESKTOP_UPDATE_GEN=OFF
+ -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
+ 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
+}
diff --git a/net-misc/megasync/megasync-9999.ebuild b/net-misc/megasync/megasync-9999.ebuild
index 524e07beb..fa2c72a29 100644
--- a/net-misc/megasync/megasync-9999.ebuild
+++ b/net-misc/megasync/megasync-9999.ebuild
@@ -17,7 +17,7 @@ if [[ ${PV} == 9999 ]];then
EGIT_BRANCH="master"
EGIT_SUBMODULES=( '*' )
else
- MEGA_SDK_REV="eb8dba09149e1aad0210c3591f3ef6e50022f714" # commit of src/MEGASync/mega submodule
+ MEGA_SDK_REV="eb86660026272d62a547099d2fed3a7d46fc64e7" # commit of src/MEGASync/mega submodule
MEGA_TAG_SUFFIX="Linux"
SRC_URI="
https://github.com/meganz/MEGAsync/archive/v${PV}_${MEGA_TAG_SUFFIX}.tar.gz -> ${P}.tar.gz
@@ -77,23 +77,16 @@ RDEPEND="
"
BDEPEND="
dev-qt/linguist-tools:5
+ virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}/${PN}-4.10.0.0_ffmpeg6.patch"
- "${FILESDIR}/${PN}-4.10.0.0_fix-build.patch"
"${FILESDIR}/${PN}-5.3.0.0-link-zlib.patch"
"${FILESDIR}/${PN}-5.3.0.0-fix-install-dir.patch"
"${FILESDIR}/${PN}-5.3.0.0-rename-libcryptopp.patch"
)
-nautilus_run() {
- if use nautilus; then
- cd "${S}/src/MEGAShellExtNautilus" || die
- "$@"
- fi
-}
-
nemo_run() {
if use nemo; then
cd "${S}/src/MEGAShellExtNemo" || die
@@ -125,7 +118,9 @@ src_configure() {
# build internal libs as static
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_MODULE_PATH="${S}/src/MEGASync/mega/contrib/cmake/modules/packages"
+ -DENABLE_DESKTOP_APP_WERROR=OFF
-DENABLE_DESKTOP_UPDATE_GEN=OFF
+ -DENABLE_LINUX_EXT=$(usex nautilus)
-DUSE_FFMPEG=$(usex thumbnail)
-DUSE_FREEIMAGE=$(usex thumbnail)
-DUSE_MEDIAINFO=$(usex mediainfo)
@@ -135,7 +130,6 @@ src_configure() {
cmake_src_configure
unset mycmakeargs
- nautilus_run eqmake5
nemo_run eqmake5
thunar_run eqmake5
}
@@ -143,7 +137,6 @@ src_configure() {
src_compile() {
cmake_src_compile
- nautilus_run emake
nemo_run emake
thunar_run emake
}
@@ -151,7 +144,6 @@ src_compile() {
src_install() {
cmake_src_install
- nautilus_run emake INSTALL_ROOT="${D}" install
nemo_run emake INSTALL_ROOT="${D}" install
thunar_run emake INSTALL_ROOT="${D}" install
}