aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bernardo <samuelbernardo.mail@gmail.com>2019-05-25 08:01:20 +0100
committerSamuel Bernardo <samuelbernardo.mail@gmail.com>2019-05-25 08:01:20 +0100
commitdbec56bcc0881a4ab18f712f3298ba70c663ad71 (patch)
tree860a40007c0009645fea15af85c94864d39e73f7 /net-misc
parentupdate zrep (diff)
downloadssnb-dbec56bcc0881a4ab18f712f3298ba70c663ad71.tar.gz
ssnb-dbec56bcc0881a4ab18f712f3298ba70c663ad71.tar.bz2
ssnb-dbec56bcc0881a4ab18f712f3298ba70c663ad71.zip
update megasync
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/megasync/Manifest1
-rw-r--r--net-misc/megasync/megasync-4.0.2.ebuild146
2 files changed, 147 insertions, 0 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
index cb46440..8bc62cb 100644
--- a/net-misc/megasync/Manifest
+++ b/net-misc/megasync/Manifest
@@ -16,5 +16,6 @@ EBUILD megasync-3.6.5.ebuild 3337 BLAKE2B 2f5aeb4338a6b3cda24c7df83f72133078bc9d
EBUILD megasync-3.6.6-r1.ebuild 3491 BLAKE2B 7981da7b9d40d9aee6a8eac180a6eba7b68642ad23b12bb73f2387eeb02519d54d88e9557842787379cc603917f768452a175657d87b23cd4e378c2619bfc9ec SHA512 4507cc58b49e1653ed1bf63a4210433f89a7c195892c070deb2c9d9207c95e5274f53bdc2371ad8ecadc1bebfbdc18466a431dbd11bc68d6d2fa3e1f7cc90a58
EBUILD megasync-3.6.6.ebuild 3362 BLAKE2B 31b8246a1600d088d30ad26687f1d14ea372aa92141be2d779aede5da7a32ab53f41463080a4148fbe74402046ede9d797d3e6d3bbc375ab634885b82476dfba SHA512 e4dfb72321158c6befd757921bd70e7b275ec6b95e2297119d70c4cf1cdf708cec903575b8f3adc308b4a6071a7bd741061acefa2ab16ce78b9a1733e5f06e99
EBUILD megasync-3.7.1-r1.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7
+EBUILD megasync-4.0.2.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7
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.0.2.ebuild b/net-misc/megasync/megasync-4.0.2.ebuild
new file mode 100644
index 0000000..e4f6af8
--- /dev/null
+++ b/net-misc/megasync/megasync-4.0.2.ebuild
@@ -0,0 +1,146 @@
+# Copyright 1999-2016 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"
+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_Linux"
+ 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="+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
+ )
+ 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
+ )"
+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 )
+ "
+
+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[@]}
+ $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro
+ else
+ eqmake4 ${myeqmakeargs[@]}
+ $(qt4_get_bindir)/lrelease MEGASync/MEGASync.pro
+ fi
+}
+
+src_compile(){
+ cd "${S}"/src
+ emake INSTALL_ROOT="${D}" || die
+}
+
+src_install(){
+ 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
+}