diff options
author | 2019-11-12 20:20:51 +0000 | |
---|---|---|
committer | 2019-11-12 20:20:51 +0000 | |
commit | 27f4198273f0af2afbf03bbab4da2aba7928bb16 (patch) | |
tree | 1dbfd46851ff70b68ebb85b923e900310601856b /net-misc | |
parent | update idea-ultimate, clion and rubymine (diff) | |
download | ssnb-27f4198273f0af2afbf03bbab4da2aba7928bb16.tar.gz ssnb-27f4198273f0af2afbf03bbab4da2aba7928bb16.tar.bz2 ssnb-27f4198273f0af2afbf03bbab4da2aba7928bb16.zip |
update megasync
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/megasync/Manifest | 1 | ||||
-rw-r--r-- | net-misc/megasync/megasync-4.2.5.ebuild | 159 |
2 files changed, 160 insertions, 0 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest index 3d33649..f443475 100644 --- a/net-misc/megasync/Manifest +++ b/net-misc/megasync/Manifest @@ -20,5 +20,6 @@ EBUILD megasync-4.0.2.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace EBUILD megasync-4.1.1.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7 EBUILD megasync-4.2.0.ebuild 3917 BLAKE2B 7295114af019c39c00e8d487c8cc6bfd9ad3480c83374779658325971da2c647ecaa9113b8e5a4646bf6fadbb4d882728f060c809d91aed52208a7a202b32669 SHA512 de032dc55d676bbf93d017b2495038c09e859b193fce0bf5ee20e559d0f61e6d49c7742c2dadf3879419915ad93488ca841ec7cf9cb07b0243fe331726c20b81 EBUILD megasync-4.2.3.ebuild 3915 BLAKE2B ed8dca3c7f8062d12e17a5143a8bd5a6ee9b8d79c54b395d9e0502a4d277acd62443c36ed09572aff677842c22b879160a62f92fb7beda90c57d3d6fc14ee8f6 SHA512 eb027f7cbf263075f181645ebe2625997ed7a499c8a5e285f52cdb348ef3295ecadb03240ee446a9362895f96e9bfd11657a27aca9fb34ab9d5422cc68d847e9 +EBUILD megasync-4.2.5.ebuild 3915 BLAKE2B ed8dca3c7f8062d12e17a5143a8bd5a6ee9b8d79c54b395d9e0502a4d277acd62443c36ed09572aff677842c22b879160a62f92fb7beda90c57d3d6fc14ee8f6 SHA512 eb027f7cbf263075f181645ebe2625997ed7a499c8a5e285f52cdb348ef3295ecadb03240ee446a9362895f96e9bfd11657a27aca9fb34ab9d5422cc68d847e9 EBUILD megasync-9999.ebuild 3637 BLAKE2B 3333948364efa4ae9ce897da38659e669fbb509de374686832d4546caccc4f9333693749540c989f1bb074b9eb929b308978ed089f4b6be714dbf76c530e608b SHA512 020ca96d8972f66cc79673bc31083af2fffacbb02dfeb12677d5d62f08605e1a4f9b29d55d5509231a416c39e7b1cd2e6b20d16c4af00a415cbaf4c133fa6c6d MISC metadata.xml 318 BLAKE2B ffc32715f0597b63ba78c242a5adfad13c921b43da17b5e07b4cca5e5ef69dbb3c89a7d110165dcea06ed317f873a5210db21be0ac5941dfb433185fdcb7a6e7 SHA512 e4930a21d6f75f5395e2e96436b42c792771fd7167abceeff0db7a9036616c6feeb6beee890afa6ff5e4584f5bb6938084316e60df57997aa1c20ba0a025514c diff --git a/net-misc/megasync/megasync-4.2.5.ebuild b/net-misc/megasync/megasync-4.2.5.ebuild new file mode 100644 index 0000000..744ef35 --- /dev/null +++ b/net-misc/megasync/megasync-4.2.5.ebuild @@ -0,0 +1,159 @@ +# Copyright 1999-2019 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=6 + +inherit eutils multilib qmake-utils autotools versionator git-r3 + +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 + #SDK_COMMIT="e8e66e9f030febfb35c9e4dd503d69091e28fc04" + #MY_PV="$(replace_all_version_separators _)" + EGIT_REPO_URI="https://github.com/meganz/MEGAsync" + EGIT_COMMIT="v${PV}.0${RTAG}" + EGIT_SUBMODULES=( '*' ) + #SRC_URI="https://github.com/meganz/MEGAsync/archive/v${PV}.0_Linux.tar.gz -> ${P}.tar.gz + #https://github.com/meganz/sdk/archive/${SDK_COMMIT}.tar.gz -> ${PN}-sdk-20170215.tar.gz" + KEYWORDS="~x86 ~amd64" + #RESTRICT="mirror" + #S="${WORKDIR}/MEGAsync-${PV}.0_Linux" +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(){ + #default + # Not needed, since using git submodules + #cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega + 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 +} |