diff options
author | Takuya Wakazono <pastalian46@gmail.com> | 2024-03-19 18:42:30 +0900 |
---|---|---|
committer | Takuya Wakazono <pastalian46@gmail.com> | 2024-03-19 19:00:50 +0900 |
commit | 7dd3f1ad548843f316cd65a31e1cc4e2da7f2854 (patch) | |
tree | b59e8f951e452b084af6148b3dbae401d1fb221a /net-misc | |
parent | app-misc/wcal: new package, add 0.1 (diff) | |
download | guru-7dd3f1ad548843f316cd65a31e1cc4e2da7f2854.tar.gz guru-7dd3f1ad548843f316cd65a31e1cc4e2da7f2854.tar.bz2 guru-7dd3f1ad548843f316cd65a31e1cc4e2da7f2854.zip |
net-misc/megasync: add 5.2.0.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/megasync/Manifest | 2 | ||||
-rw-r--r-- | net-misc/megasync/megasync-5.2.0.0.ebuild | 137 | ||||
-rw-r--r-- | net-misc/megasync/megasync-9999.ebuild | 6 |
3 files changed, 143 insertions, 2 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest index 608392b6f..929f0a39e 100644 --- a/net-misc/megasync/Manifest +++ b/net-misc/megasync/Manifest @@ -1,2 +1,4 @@ DIST megasync-4.12.2.0.tar.gz 25267623 BLAKE2B e1a7e6f7e3509f8a8cdb402f228ffaf1809a16c134428ff3d0de59684b3440882ae9c0f5e4be38325044305589c988bbb83953cf6c06408b7d319dee9712cc5b SHA512 c99e29e1999eb257bec8d97dea92094c3c429e8b12380ac9097abe5092a8005ad67e09b9d893a69c2bccc061705ffb78ceeedbf5a7923849f4b2cff9e2f98333 +DIST megasync-5.2.0.0.tar.gz 23815622 BLAKE2B 04c1ff1b6516ca72e3e17a59ab1ba3142f7ef130e479aee5595e010be1993651aa57e8d977d85ffa547a20ae2569c77d5b3907aba8122fb3d6ea686d7e1a5b4a SHA512 c8dd39f7a432aca3956f929bcaf0e86881a819719f184c07a389ae568edee9b54a21e807f5517bcc42c18290d96f7fef875f0308d5411f1e36df60f245aa601b DIST megasync-sdk-4.12.2.0.tar.gz 3580874 BLAKE2B 7fe63ccd998ac0fe4f6d31d4fb38041d01180044b6a36658da28b0793c2c0c9a95984a937ffa74b11449818ca63a55d7d1faef65e69ea29309d42c4d7646b2c3 SHA512 e97d5901e5445bd677b2d7c50d684dbd6975efcba43ed6618b76d9452b33f5c42eaa8279e920987cf5af63da6ad951589e644bf01814b69739e4260c651aa68b +DIST megasync-sdk-5.2.0.0.tar.gz 3809248 BLAKE2B acf9be7b3d0faf843e394b717cb75ee703aadfdf2b79a6ea06eccb49d6d179ef8b2f3d430edce4bc37e6e53a45f1eab3865c433d015cf8d8412d6b037edbd81a SHA512 2c65c53050dcd7757a1015200d4e25ca260e833105e577c6506d36efa280c5e5e511e8b5ea029a6efac09f36ffd6bfdb49b71417d32457d42397de83240451ec diff --git a/net-misc/megasync/megasync-5.2.0.0.ebuild b/net-misc/megasync/megasync-5.2.0.0.ebuild new file mode 100644 index 000000000..c8a98542b --- /dev/null +++ b/net-misc/megasync/megasync-5.2.0.0.ebuild @@ -0,0 +1,137 @@ +# Copyright 2023-2024 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="f71b60452a5d6c32bebc5125a13977a335d78e71" # 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="dolphin freeimage nautilus nemo threads 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 + media-libs/libmediainfo + media-libs/libraw + net-dns/c-ares:= + net-misc/curl[ssl,curl_ssl_openssl(-)] + sys-libs/zlib + x11-libs/libxcb:= + dolphin? ( kde-apps/dolphin ) + freeimage? ( + media-libs/freeimage + media-video/ffmpeg:= + ) + nautilus? ( >=gnome-base/nautilus-43 ) + nemo? ( gnome-extra/nemo ) + thunar? ( xfce-base/thunar ) +" +RDEPEND=" + ${DEPEND} + x11-themes/hicolor-icon-theme +" +BDEPEND=" + dev-qt/linguist-tools:5 + dolphin? ( kde-frameworks/extra-cmake-modules ) +" + +PATCHES=( + "${FILESDIR}/${PN}-4.10.0.0_ffmpeg6.patch" + "${FILESDIR}/${PN}-4.10.0.0_fix-build.patch" +) + +CMAKE_USE_DIR="${S}/src/MEGAShellExtDolphin" + +src_prepare() { + if [[ ${PV} != 9999 ]]; then + rmdir src/MEGASync/mega || die + mv "${WORKDIR}/sdk-${MEGA_SDK_REV}" src/MEGASync/mega || die + fi + + if use dolphin; then + cmake_src_prepare + else + default + fi + + cd "${S}/src/MEGASync/mega" || die + eautoreconf +} + +src_configure() { + cd "${S}/src/MEGASync/mega" || die + econf \ + "--disable-curl-checks" \ + "--disable-examples" \ + $(use_enable threads posix-threads) \ + $(use_with freeimage) + + cd "${S}/src" || die + local myqmakeargs=( + MEGA.pro + CONFIG+="release" + $(usex freeimage "" "CONFIG+=nofreeimage") + $(usev nautilus "SUBDIRS+=MEGAShellExtNautilus") + $(usev nemo "SUBDIRS+=MEGAShellExtNemo") + $(usev thunar "SUBDIRS+=MEGAShellExtThunar") + ) + + eqmake5 "${myqmakeargs[@]}" + $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro || die + + 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 || die + rm -rf "${D}"/usr/share/icons/ubuntu-mono-dark || die + + use dolphin && cmake_src_install +} diff --git a/net-misc/megasync/megasync-9999.ebuild b/net-misc/megasync/megasync-9999.ebuild index 78d77b168..c8a98542b 100644 --- a/net-misc/megasync/megasync-9999.ebuild +++ b/net-misc/megasync/megasync-9999.ebuild @@ -17,8 +17,8 @@ if [[ ${PV} == 9999 ]];then EGIT_BRANCH="master" EGIT_SUBMODULES=( '*' ) else - MEGA_SDK_REV="2e9307d114c379967f415211d466262162e074d4" # commit of src/MEGASync/mega submodule - MEGA_TAG_SUFFIX="Win" + MEGA_SDK_REV="f71b60452a5d6c32bebc5125a13977a335d78e71" # 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 @@ -34,6 +34,7 @@ IUSE="dolphin freeimage nautilus nemo threads thunar" DEPEND=" dev-db/sqlite:3 dev-libs/crypto++:= + dev-libs/icu:= dev-libs/libsodium:= dev-libs/libuv:= dev-libs/openssl:0= @@ -52,6 +53,7 @@ DEPEND=" net-dns/c-ares:= net-misc/curl[ssl,curl_ssl_openssl(-)] sys-libs/zlib + x11-libs/libxcb:= dolphin? ( kde-apps/dolphin ) freeimage? ( media-libs/freeimage |