From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 028331382C5 for ; Sun, 17 Jan 2021 18:05:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23DB9E08AD; Sun, 17 Jan 2021 18:05:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E24CAE08AD for ; Sun, 17 Jan 2021 18:05:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 339F8340A7F for ; Sun, 17 Jan 2021 18:05:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8E9D692 for ; Sun, 17 Jan 2021 18:05:28 +0000 (UTC) From: "Samuel Bernardo" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Samuel Bernardo" Message-ID: <1610906711.7bfdff49c492ca882c53f6db90196d0940c2c2ff.samuelbernardo@gentoo> Subject: [gentoo-commits] repo/user/ssnb:master commit in: net-misc/megasync/ X-VCS-Repository: repo/user/ssnb X-VCS-Files: net-misc/megasync/megasync-4.3.1-r1.ebuild net-misc/megasync/megasync-4.3.3.ebuild net-misc/megasync/megasync-4.3.7.0.ebuild net-misc/megasync/megasync-9999.ebuild X-VCS-Directories: net-misc/megasync/ X-VCS-Committer: samuelbernardo X-VCS-Committer-Name: Samuel Bernardo X-VCS-Revision: 7bfdff49c492ca882c53f6db90196d0940c2c2ff X-VCS-Branch: master Date: Sun, 17 Jan 2021 18:05:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 00c1fcf8-aaaa-4bbe-9330-84ef3a3f16f3 X-Archives-Hash: 39fe3e2a22ae920ad9de1cfc833d3b76 commit: 7bfdff49c492ca882c53f6db90196d0940c2c2ff Author: Samuel Bernardo gmail com> AuthorDate: Sun Jan 17 18:05:11 2021 +0000 Commit: Samuel Bernardo gmail com> CommitDate: Sun Jan 17 18:05:11 2021 +0000 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=7bfdff49 Update megasync Signed-off-by: Samuel Bernardo gmail.com> net-misc/megasync/megasync-4.3.1-r1.ebuild | 150 --------------------- ...gasync-4.3.3.ebuild => megasync-4.3.7.0.ebuild} | 140 +++++++++---------- net-misc/megasync/megasync-9999.ebuild | 120 ++++++++++++++++- 3 files changed, 191 insertions(+), 219 deletions(-) diff --git a/net-misc/megasync/megasync-4.3.1-r1.ebuild b/net-misc/megasync/megasync-4.3.1-r1.ebuild deleted file mode 100644 index d4a648f..0000000 --- a/net-misc/megasync/megasync-4.3.1-r1.ebuild +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 1999-2020 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI=7 - -inherit eutils multilib qmake-utils autotools git-r3 desktop cmake-multilib - -DESCRIPTION="A Qt-based program for syncing your MEGA account in your PC. This is the official app." -HOMEPAGE="http://mega.co.nz" -RTAG="_Linux" -if [[ ${PV} == *9999* ]];then - EGIT_REPO_URI="https://github.com/meganz/MEGAsync" - KEYWORDS="" - EGIT_SUBMODULES=( '*' ) -else - EGIT_REPO_URI="https://github.com/meganz/MEGAsync" - EGIT_COMMIT="v${PV}.0${RTAG}" - EGIT_SUBMODULES=( '*' ) - KEYWORDS="~x86 ~amd64" -fi - -LICENSE="MEGA" -SLOT="0" -IUSE="dolphin nautilus thunar +cryptopp +sqlite +zlib +curl freeimage readline examples threads qt5 java php python gnome" - -DEPEND=" - dev-lang/swig - app-doc/doxygen - media-libs/libmediainfo - media-libs/libraw - !qt5? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - dev-qt/qtdbus:4 - dev-libs/sni-qt - dev-qt/qtimageformats:5 - dev-qt/qtsvg:5 - ) - qt5? ( - dev-qt/qtcore:5 - dev-qt/linguist-tools - 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 - )" -RDEPEND="${DEPEND} - x11-themes/hicolor-icon-theme - dev-libs/openssl - dev-libs/libgcrypt - media-libs/libpng - net-dns/c-ares - cryptopp? ( dev-libs/crypto++ ) - app-arch/xz-utils - dev-libs/libuv - sqlite? ( dev-db/sqlite:3 ) - dev-libs/libsodium - zlib? ( sys-libs/zlib ) - curl? ( net-misc/curl[ssl,curl_ssl_openssl] ) - freeimage? ( media-libs/freeimage ) - readline? ( sys-libs/readline:0 ) - dolphin? ( kde-apps/dolphin ) - nautilus? ( >=gnome-base/nautilus-3 ) - thunar? ( xfce-base/thunar ) - " - -PATCHES=( ) - -if [[ ${PV} != *9999* ]];then - src_prepare(){ - if [ -e "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" ]; then - EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" - fi - if [ ! -z ${PATCHES} ]; then - epatch ${PATCHES} - fi - if use gnome; then - if [ -e "${FILESDIR}${P}-gnome.patch" ]; then - epatch "${FILESDIR}/${P}-gnome.patch" - fi - fi - eapply_user - cd src/MEGASync/mega - eautoreconf - } -fi - -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) \ - "--enable-chat" \ - "--enable-gcc-hardening" - cd ../.. - local myeqmakeargs=( - MEGA.pro - CONFIG+="release" - ) - if use qt5; then - eqmake5 ${myeqmakeargs[@]} - use dolphin && cmake-utils_src_configure - $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro - else - eqmake4 ${myeqmakeargs[@]} - use dolphin && cmake-utils_src_configure - $(qt4_get_bindir)/lrelease MEGASync/MEGASync.pro - fi -} - -src_compile(){ - emake -C src INSTALL_ROOT="${D}" || die - use dolphin && cmake-utils_src_compile -} - -src_install(){ - use dolphin && cmake-utils_src_install - local DOCS=( CREDITS.md README.md ) - einstalldocs - insinto usr/share/licenses/${PN} - doins LICENCE.md installer/terms.txt - cd src/MEGASync - dobin ${PN} - cd platform/linux/data - insinto usr/share/applications - doins ${PN}.desktop - cd icons/hicolor - for size in 16x16 32x32 48x48 128x128 256x256;do - doicon -s $size $size/apps/mega.png - done -} diff --git a/net-misc/megasync/megasync-4.3.3.ebuild b/net-misc/megasync/megasync-4.3.7.0.ebuild similarity index 52% rename from net-misc/megasync/megasync-4.3.3.ebuild rename to net-misc/megasync/megasync-4.3.7.0.ebuild index aa7d2f2..5890701 100644 --- a/net-misc/megasync/megasync-4.3.3.ebuild +++ b/net-misc/megasync/megasync-4.3.7.0.ebuild @@ -4,83 +4,86 @@ EAPI=7 -inherit eutils multilib qmake-utils autotools git-r3 desktop cmake-multilib +inherit autotools desktop qmake-utils xdg cmake git-r3 -DESCRIPTION="A Qt-based program for syncing your MEGA account in your PC. This is the official app." +DESCRIPTION="The official Qt-based program for syncing your MEGA account in your PC" HOMEPAGE="http://mega.co.nz" RTAG="_Linux" -if [[ ${PV} == *9999* ]];then - EGIT_REPO_URI="https://github.com/meganz/MEGAsync" - KEYWORDS="" - EGIT_SUBMODULES=( '*' ) -else - EGIT_REPO_URI="https://github.com/meganz/MEGAsync" - EGIT_COMMIT="v${PV}.0${RTAG}" - EGIT_SUBMODULES=( '*' ) - KEYWORDS="~x86 ~amd64" -fi +EGIT_REPO_URI="https://github.com/meganz/MEGAsync" +EGIT_COMMIT="v${PV}${RTAG}" +EGIT_SUBMODULES=( '*' ) +KEYWORDS="~x86 ~amd64" LICENSE="MEGA" SLOT="0" -IUSE="dolphin nautilus thunar +cryptopp +sqlite +zlib +curl freeimage readline examples threads java php python gnome" +IUSE="+cryptopp +curl +sqlite +zlib dolphin examples freeimage java libressl nautilus php python readline threads thunar" +RDEPEND=" + app-arch/xz-utils + dev-libs/libgcrypt + dev-libs/libsodium + dev-libs/libuv + media-libs/libpng + net-dns/c-ares + x11-themes/hicolor-icon-theme + cryptopp? ( dev-libs/crypto++ ) + curl? ( + !libressl? ( net-misc/curl[ssl,curl_ssl_openssl] ) + libressl? ( net-misc/curl[ssl,curl_ssl_libressl] ) + ) + dolphin? ( kde-apps/dolphin ) + freeimage? ( media-libs/freeimage ) + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + nautilus? ( >=gnome-base/nautilus-3 ) + readline? ( sys-libs/readline:0 ) + sqlite? ( dev-db/sqlite:3 ) + thunar? ( xfce-base/thunar ) + zlib? ( sys-libs/zlib ) +" DEPEND=" - dev-lang/swig - app-doc/doxygen + ${RDEPEND} media-libs/libmediainfo media-libs/libraw dev-qt/qtcore:5 - dev-qt/linguist-tools 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" -RDEPEND="${DEPEND} - x11-themes/hicolor-icon-theme - dev-libs/openssl - dev-libs/libgcrypt - media-libs/libpng - net-dns/c-ares - cryptopp? ( dev-libs/crypto++ ) - app-arch/xz-utils - dev-libs/libuv - sqlite? ( dev-db/sqlite:3 ) - dev-libs/libsodium - zlib? ( sys-libs/zlib ) - curl? ( net-misc/curl[ssl,curl_ssl_openssl] ) - freeimage? ( media-libs/freeimage ) - readline? ( sys-libs/readline:0 ) - dolphin? ( kde-apps/dolphin ) - nautilus? ( >=gnome-base/nautilus-3 ) - thunar? ( xfce-base/thunar ) - " + dev-qt/qtsvg:5 +" +BDEPEND=" + dev-lang/swig + dev-qt/linguist-tools +" + +DOCS=( CREDITS.md README.md ) PATCHES=( ) -if [[ ${PV} != *9999* ]];then - src_prepare(){ - if [ -e "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" ]; then - EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" - fi - if [ ! -z ${PATCHES} ]; then - epatch ${PATCHES} - fi - if use gnome; then - if [ -e "${FILESDIR}${P}-gnome.patch" ]; then - epatch "${FILESDIR}/${P}-gnome.patch" - fi - fi - eapply_user - cd src/MEGASync/mega - eautoreconf - } -fi +CMAKE_USE_DIR="${S}/src/MEGAShellExtDolphin" -src_configure(){ - cd "${S}"/src/MEGASync/mega +src_prepare() { + if [ -e "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" ]; then + EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" + fi + if [ ! -z ${PATCHES} ]; then + epatch ${PATCHES} + fi + if use dolphin; then + # use the kde5 CMakeLists instead of the kde 4 version + mv src/MEGAShellExtDolphin/CMakeLists_kde5.txt src/MEGAShellExtDolphin/CMakeLists.txt || die + cmake_src_prepare + fi + eapply_user + cd src/MEGASync/mega + eautoreconf +} + +src_configure() { + cd src/MEGASync/mega econf \ "--disable-silent-rules" \ "--disable-curl-checks" \ @@ -100,35 +103,36 @@ src_configure(){ $(use_enable php) \ $(use_enable python) \ "--enable-chat" \ - "--enable-gcc-hardening" + "--enable-gcc-hardening" cd ../.. + local myeqmakeargs=( MEGA.pro CONFIG+="release" ) + eqmake5 ${myeqmakeargs[@]} - use dolphin && cmake-utils_src_configure + use dolphin && cmake_src_configure $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro } -src_compile(){ +src_compile() { emake -C src INSTALL_ROOT="${D}" || die - use dolphin && cmake-utils_src_compile + use dolphin && cmake_src_compile } -src_install(){ - use dolphin && cmake-utils_src_install +src_install() { local DOCS=( CREDITS.md README.md ) + use dolphin && cmake_src_install einstalldocs + dobin src/MEGASync/${PN} insinto usr/share/licenses/${PN} doins LICENCE.md installer/terms.txt - cd src/MEGASync - dobin ${PN} - cd platform/linux/data - insinto usr/share/applications - doins ${PN}.desktop - cd icons/hicolor + dobin src/MEGASync/${PN} + domenu src/MEGASync/platform/linux/data/${PN}.desktop + cd src/MEGASync/platform/linux/data/icons/hicolor for size in 16x16 32x32 48x48 128x128 256x256;do doicon -s $size $size/apps/mega.png done } + diff --git a/net-misc/megasync/megasync-9999.ebuild b/net-misc/megasync/megasync-9999.ebuild deleted file mode 120000 index 464f33c..0000000 --- a/net-misc/megasync/megasync-9999.ebuild +++ /dev/null @@ -1 +0,0 @@ -megasync-4.3.3.ebuild \ No newline at end of file diff --git a/net-misc/megasync/megasync-9999.ebuild b/net-misc/megasync/megasync-9999.ebuild new file mode 100644 index 0000000..8029bd4 --- /dev/null +++ b/net-misc/megasync/megasync-9999.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools desktop qmake-utils xdg cmake git-r3 + +DESCRIPTION="The official Qt-based program for syncing your MEGA account in your PC" +HOMEPAGE="http://mega.co.nz" + +EGIT_REPO_URI="https://github.com/meganz/MEGAsync" +KEYWORDS="" +EGIT_SUBMODULES=( '*' ) + +LICENSE="MEGA" +SLOT="0" +IUSE="+cryptopp +curl +sqlite +zlib dolphin examples freeimage java libressl nautilus php python readline threads thunar" + +RDEPEND=" + app-arch/xz-utils + dev-libs/libgcrypt + dev-libs/libsodium + dev-libs/libuv + media-libs/libpng + net-dns/c-ares + x11-themes/hicolor-icon-theme + cryptopp? ( dev-libs/crypto++ ) + curl? ( + !libressl? ( net-misc/curl[ssl,curl_ssl_openssl] ) + libressl? ( net-misc/curl[ssl,curl_ssl_libressl] ) + ) + dolphin? ( kde-apps/dolphin ) + freeimage? ( media-libs/freeimage ) + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + nautilus? ( >=gnome-base/nautilus-3 ) + 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 +" +BDEPEND=" + app-doc/doxygen + dev-lang/swig + dev-qt/linguist-tools +" + +DOCS=( CREDITS.md README.md ) + +src_prepare() { + default + cd src/MEGASync/mega + eautoreconf +} + +src_configure() { + cd 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) \ + "--enable-chat" \ + "--enable-gcc-hardening" + cd ../.. + + local myeqmakeargs=( + MEGA.pro + CONFIG+="release" + ) + + eqmake5 ${myeqmakeargs[@]} + use dolphin && cmake_src_configure + $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro +} + +src_compile() { + emake -C src INSTALL_ROOT="${D}" || die + use dolphin && cmake_src_compile +} + +src_install() { + use dolphin && cmake_src_install + einstalldocs + dobin src/MEGASync/${PN} + insinto usr/share/licenses/${PN} + doins LICENCE.md installer/terms.txt + domenu src/MEGASync/platform/linux/data/${PN}.desktop + cd src/MEGASync/platform/linux/data/icons/hicolor + for size in 16x16 32x32 48x48 128x128 256x256;do + doicon -s $size $size/apps/mega.png + done +}