aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bernardo <samuelbernardo.mail@gmail.com>2019-07-28 13:27:02 +0100
committerSamuel Bernardo <samuelbernardo.mail@gmail.com>2019-07-28 13:27:02 +0100
commit7031c62f12824e3e2b0216261640cf31304db114 (patch)
tree9b1d1a25f111906945dd900107d78f9d0df43986 /net-misc
parentupdate zrep (diff)
downloadssnb-7031c62f12824e3e2b0216261640cf31304db114.tar.gz
ssnb-7031c62f12824e3e2b0216261640cf31304db114.tar.bz2
ssnb-7031c62f12824e3e2b0216261640cf31304db114.zip
update megasync
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/megasync/Manifest2
-rw-r--r--net-misc/megasync/megasync-4.1.1.ebuild146
-rw-r--r--net-misc/megasync/megasync-4.2.0.ebuild163
3 files changed, 311 insertions, 0 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
index 8bc62cb..3814684 100644
--- a/net-misc/megasync/Manifest
+++ b/net-misc/megasync/Manifest
@@ -17,5 +17,7 @@ EBUILD megasync-3.6.6-r1.ebuild 3491 BLAKE2B 7981da7b9d40d9aee6a8eac180a6eba7b68
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-4.1.1.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7
+EBUILD megasync-4.2.0.ebuild 4035 BLAKE2B 5fe7a44ef5d10e12000b0dfe56960f06800f946b339f50c6ffa875be0f80a13ff548bdeee442b442536692a6c9291074d2137e9f59a6c56717044c9bd39eb5d4 SHA512 b2ee2b2bdf1cf878684d74d27ba6934a189abc1deefc90464b9632889976e7860e9a443752702a80036aff4b36fc5619b73bd05951e4e083ec24244cb0fbce45
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.1.1.ebuild b/net-misc/megasync/megasync-4.1.1.ebuild
new file mode 100644
index 0000000..e4f6af8
--- /dev/null
+++ b/net-misc/megasync/megasync-4.1.1.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
+}
diff --git a/net-misc/megasync/megasync-4.2.0.ebuild b/net-misc/megasync/megasync-4.2.0.ebuild
new file mode 100644
index 0000000..5e66d5d
--- /dev/null
+++ b/net-misc/megasync/megasync-4.2.0.ebuild
@@ -0,0 +1,163 @@
+# 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"
+RTAG="_ArchLinux"
+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}${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$(usex nautilus + -)=with_ext
+ CONFIG$(usex thunar + -)=with_thu
+ CONFIG-=with_updater
+ CONFIG-=with_tools
+ 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
+}