aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bernardo <samuelbernardo.mail@gmail.com>2017-02-15 02:25:12 +0000
committerSamuel Bernardo <samuelbernardo.mail@gmail.com>2017-02-15 02:25:12 +0000
commitab04c95c71feac944335cfdf3c2904e6051e2e09 (patch)
tree2bbf1b6d5d30b5e0b7242e320dac2a85fe01431e /net-misc
parentupdate chefdk to version 1.2.22 (chef12) (diff)
downloadssnb-ab04c95c71feac944335cfdf3c2904e6051e2e09.tar.gz
ssnb-ab04c95c71feac944335cfdf3c2904e6051e2e09.tar.bz2
ssnb-ab04c95c71feac944335cfdf3c2904e6051e2e09.zip
added megasync 3.0.1 version
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/megasync/Manifest5
-rw-r--r--net-misc/megasync/megasync-3.0.1.ebuild135
-rw-r--r--net-misc/megasync/megasync-9999.ebuild135
-rw-r--r--net-misc/megasync/metadata.xml9
4 files changed, 284 insertions, 0 deletions
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest
new file mode 100644
index 0000000..280f92b
--- /dev/null
+++ b/net-misc/megasync/Manifest
@@ -0,0 +1,5 @@
+DIST megasync-3.0.1.tar.gz 10859538 SHA256 97c11019841c48dc1b88b9c4a15c2a2d69dda06e6544d30ff066f9b960af3d4d SHA512 0e3e0315f9a8f4694a59f7b50d6dd93c5e840d013d8c658288d7c0cafca9fbdc1faa2bbaec5c2d08e5f4c4d1790864a8595153808ea7b8c0a1c3550ae8398dbe WHIRLPOOL 6f67983cc76d1ec18ccc6ccd9145c9d57ac46ecd8de9e0433c964d7af728699b2250228dc40d736ad88552c71ed4b5575f2c710476ffeaca1ab85d119710342c
+DIST megasync-sdk-20170215.tar.gz 3475613 SHA256 085ad3db78f7b30d613f4ad1d62e811bdf4be070c8c48cdb5243e4e9963468e2 SHA512 738e30e3b66edb129247dcce87bf9033efe698303f0e6c81362a51d81464b2323fb41b41f4659fa7d8db4bc9992ff7718a5f975d782e558e51ab50efadd740ea WHIRLPOOL 7daea0d450e900af78f7d144883aebaf283725f0850b23e4ea5c4f86822e9804f9876b53a18426fc36ad375bce2c19ad80a4ed45a659b022805b54551ce23265
+EBUILD megasync-3.0.1.ebuild 3631 SHA256 6b1cc5515154b60d036ba07a75eabddc7eae835f8e2f767bc9e7bf5cccd2bfb7 SHA512 e980bd0b0589c17082f1dde3d98e1411edd8a05b7f1a746e57f4e6823d5a2c9adc9c9319a79e5e518de701cd695766b31da1aeab155254bda6e327e85b5414ca WHIRLPOOL 8e02a62d2ae1ddf541b367f74f9dae5b3a0956145dd2e1fa939719bcdea5435c0583b8373de72606729be663fcb3169223d063e2f973bfdca7a63b8311cd5c9f
+EBUILD megasync-9999.ebuild 3637 SHA256 f134223373de8e36bb603c122617065faab119f1c7b2934c8e7a732373ed0413 SHA512 408fd7892319be926c97cc6bdc873c07c246d385171b0ce57d39d3d8e7198a6cfeb3438b53cce6f507ea3e733d5e24058ded56f8554c1677b131efc415d48cc7 WHIRLPOOL eefb594b796973f2feabd2b6a316c825ddc5064e28d801d25dfc487aa7dc33942b97b91c9f651ccf54c151889d063674d7de69a79a6850e6c0f6228f4750dd23
+MISC metadata.xml 318 SHA256 705510d197fc14d45313ea036c3ce472a72da8fe1be62743a7d00f38422b43ef SHA512 e4930a21d6f75f5395e2e96436b42c792771fd7167abceeff0db7a9036616c6feeb6beee890afa6ff5e4584f5bb6938084316e60df57997aa1c20ba0a025514c WHIRLPOOL 99eadcf32497e8a117b297242fa0ed8de588a2fa4a7f3a85c67ebc479faa66c83cdd155cd974b5b80aeab2c9e431f837d4453397568a5105957d5082a7541d65
diff --git a/net-misc/megasync/megasync-3.0.1.ebuild b/net-misc/megasync/megasync-3.0.1.ebuild
new file mode 100644
index 0000000..e29e1e1
--- /dev/null
+++ b/net-misc/megasync/megasync-3.0.1.ebuild
@@ -0,0 +1,135 @@
+# 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
+
+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
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/meganz/MEGAsync"
+ KEYWORDS=""
+else
+ SDK_COMMIT="e8e66e9f030febfb35c9e4dd503d69091e28fc04"
+ MY_PV="$(replace_all_version_separators _)"
+ 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 nautilus"
+
+DEPEND="
+ !qt5? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtdbus:4
+ )
+ 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}
+ 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 )
+ nautilus? (
+ >=gnome-base/nautilus-3.12.0
+ !!gnome-extra/nautilus-megasync
+ )
+ "
+
+if [[ ${PV} != *9999* ]];then
+ src_prepare(){
+ cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega
+ cd src/MEGASync/mega
+ eapply_user
+ 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)
+ cd ../..
+ local myeqmakeargs=(
+ MEGA.pro
+ CONFIG+="release"
+ )
+ use nautilus && myeqmakeargs+=( CONFIG+="with_ext" )
+ 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
+ if use nautilus; then
+ cd "${S}/src/MEGAShellExtNautilus"
+ insinto usr/lib/nautilus/extensions-3.0
+ doins libMEGAShellExtNautilus.so.1.0.0
+ cd data/emblems
+ for size in 32x32 64x64;do
+ insinto usr/share/icons/hicolor/$size/emblems
+ doins $size/mega-{pending,synced,syncing,upload}.{icon,png}
+ dosym ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0.0 ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0
+ dosym ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0.0 ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1
+ dosym ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0.0 ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so
+ done
+ fi
+}
diff --git a/net-misc/megasync/megasync-9999.ebuild b/net-misc/megasync/megasync-9999.ebuild
new file mode 100644
index 0000000..bac7547
--- /dev/null
+++ b/net-misc/megasync/megasync-9999.ebuild
@@ -0,0 +1,135 @@
+# 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
+
+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
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/meganz/MEGAsync"
+ KEYWORDS=""
+else
+ SDK_COMMIT="d7412bb8a13139600302ad9a907a10c47bdd0b52"
+ MY_PV="$(replace_all_version_separators _)"
+ SRC_URI="https://github.com/meganz/MEGAsync/archive/v${MY_PV}_0_Linux.tar.gz -> ${P}.tar.gz
+ https://github.com/meganz/sdk/archive/${SDK_COMMIT}.tar.gz -> ${PN}-sdk-20160719.tar.gz"
+ KEYWORDS="~x86 ~amd64"
+ RESTRICT="mirror"
+ S="${WORKDIR}/MEGAsync-${MY_PV}_0_Linux"
+fi
+
+LICENSE="MEGA"
+SLOT="0"
+IUSE="+cryptopp +sqlite +zlib +curl freeimage readline examples threads qt5 nautilus"
+
+DEPEND="
+ !qt5? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtdbus:4
+ )
+ 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}
+ 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 )
+ nautilus? (
+ >=gnome-base/nautilus-3.12.0
+ !!gnome-extra/nautilus-megasync
+ )
+ "
+
+if [[ ${PV} != *9999* ]];then
+ src_prepare(){
+ cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega
+ cd src/MEGASync/mega
+ eapply_user
+ 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)
+ cd ../..
+ local myeqmakeargs=(
+ MEGA.pro
+ CONFIG+="release"
+ )
+ use nautilus && myeqmakeargs+=( CONFIG+="with_ext" )
+ 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
+ if use nautilus; then
+ cd "${S}/src/MEGAShellExtNautilus"
+ insinto usr/lib/nautilus/extensions-3.0
+ doins libMEGAShellExtNautilus.so.1.0.0
+ cd data/emblems
+ for size in 32x32 64x64;do
+ insinto usr/share/icons/hicolor/$size/emblems
+ doins $size/mega-{pending,synced,syncing,upload}.{icon,png}
+ dosym ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0.0 ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0
+ dosym ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0.0 ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1
+ dosym ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so.1.0.0 ${EPREFIX}/usr/lib/nautilus/extensions-3.0/libMEGAShellExtNautilus.so
+ done
+ fi
+}
diff --git a/net-misc/megasync/metadata.xml b/net-misc/megasync/metadata.xml
new file mode 100644
index 0000000..a9aac56
--- /dev/null
+++ b/net-misc/megasync/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+ <description>megasync client from mega.nz</description>
+ </maintainer>
+</pkgmetadata>