1 |
commit: af3c04297089a80c98c6b6f554643a2e7e0df669 |
2 |
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Aug 20 07:45:02 2019 +0000 |
4 |
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Aug 20 07:45:15 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=af3c0429 |
7 |
|
8 |
update megasync |
9 |
|
10 |
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com> |
11 |
|
12 |
net-misc/megasync/Manifest | 1 + |
13 |
net-misc/megasync/megasync-4.2.3.ebuild | 159 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 160 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest |
17 |
index d2f4bdb..3d33649 100644 |
18 |
--- a/net-misc/megasync/Manifest |
19 |
+++ b/net-misc/megasync/Manifest |
20 |
@@ -19,5 +19,6 @@ EBUILD megasync-3.7.1-r1.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546b |
21 |
EBUILD megasync-4.0.2.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7 |
22 |
EBUILD megasync-4.1.1.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7 |
23 |
EBUILD megasync-4.2.0.ebuild 3917 BLAKE2B 7295114af019c39c00e8d487c8cc6bfd9ad3480c83374779658325971da2c647ecaa9113b8e5a4646bf6fadbb4d882728f060c809d91aed52208a7a202b32669 SHA512 de032dc55d676bbf93d017b2495038c09e859b193fce0bf5ee20e559d0f61e6d49c7742c2dadf3879419915ad93488ca841ec7cf9cb07b0243fe331726c20b81 |
24 |
+EBUILD megasync-4.2.3.ebuild 3915 BLAKE2B ed8dca3c7f8062d12e17a5143a8bd5a6ee9b8d79c54b395d9e0502a4d277acd62443c36ed09572aff677842c22b879160a62f92fb7beda90c57d3d6fc14ee8f6 SHA512 eb027f7cbf263075f181645ebe2625997ed7a499c8a5e285f52cdb348ef3295ecadb03240ee446a9362895f96e9bfd11657a27aca9fb34ab9d5422cc68d847e9 |
25 |
EBUILD megasync-9999.ebuild 3637 BLAKE2B 3333948364efa4ae9ce897da38659e669fbb509de374686832d4546caccc4f9333693749540c989f1bb074b9eb929b308978ed089f4b6be714dbf76c530e608b SHA512 020ca96d8972f66cc79673bc31083af2fffacbb02dfeb12677d5d62f08605e1a4f9b29d55d5509231a416c39e7b1cd2e6b20d16c4af00a415cbaf4c133fa6c6d |
26 |
MISC metadata.xml 318 BLAKE2B ffc32715f0597b63ba78c242a5adfad13c921b43da17b5e07b4cca5e5ef69dbb3c89a7d110165dcea06ed317f873a5210db21be0ac5941dfb433185fdcb7a6e7 SHA512 e4930a21d6f75f5395e2e96436b42c792771fd7167abceeff0db7a9036616c6feeb6beee890afa6ff5e4584f5bb6938084316e60df57997aa1c20ba0a025514c |
27 |
|
28 |
diff --git a/net-misc/megasync/megasync-4.2.3.ebuild b/net-misc/megasync/megasync-4.2.3.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..744ef35 |
31 |
--- /dev/null |
32 |
+++ b/net-misc/megasync/megasync-4.2.3.ebuild |
33 |
@@ -0,0 +1,159 @@ |
34 |
+# Copyright 1999-2019 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Header: $ |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit eutils multilib qmake-utils autotools versionator git-r3 |
41 |
+ |
42 |
+DESCRIPTION="A Qt-based program for syncing your MEGA account in your PC. This is the official app." |
43 |
+HOMEPAGE="http://mega.co.nz" |
44 |
+RTAG="_Linux" |
45 |
+if [[ ${PV} == *9999* ]];then |
46 |
+ EGIT_REPO_URI="https://github.com/meganz/MEGAsync" |
47 |
+ KEYWORDS="" |
48 |
+ EGIT_SUBMODULES=( '*' ) |
49 |
+else |
50 |
+ #SDK_COMMIT="e8e66e9f030febfb35c9e4dd503d69091e28fc04" |
51 |
+ #MY_PV="$(replace_all_version_separators _)" |
52 |
+ EGIT_REPO_URI="https://github.com/meganz/MEGAsync" |
53 |
+ EGIT_COMMIT="v${PV}.0${RTAG}" |
54 |
+ EGIT_SUBMODULES=( '*' ) |
55 |
+ #SRC_URI="https://github.com/meganz/MEGAsync/archive/v${PV}.0_Linux.tar.gz -> ${P}.tar.gz |
56 |
+ #https://github.com/meganz/sdk/archive/${SDK_COMMIT}.tar.gz -> ${PN}-sdk-20170215.tar.gz" |
57 |
+ KEYWORDS="~x86 ~amd64" |
58 |
+ #RESTRICT="mirror" |
59 |
+ #S="${WORKDIR}/MEGAsync-${PV}.0_Linux" |
60 |
+fi |
61 |
+ |
62 |
+LICENSE="MEGA" |
63 |
+SLOT="0" |
64 |
+IUSE="dolphin nautilus thunar +cryptopp +sqlite +zlib +curl freeimage readline examples threads qt5 java php python gnome" |
65 |
+ |
66 |
+DEPEND=" |
67 |
+ dev-lang/swig |
68 |
+ app-doc/doxygen |
69 |
+ media-libs/libmediainfo |
70 |
+ media-libs/libraw |
71 |
+ !qt5? ( |
72 |
+ dev-qt/qtcore:4 |
73 |
+ dev-qt/qtgui:4 |
74 |
+ dev-qt/qtdbus:4 |
75 |
+ dev-libs/sni-qt |
76 |
+ dev-qt/qtimageformats:5 |
77 |
+ dev-qt/qtsvg:5 |
78 |
+ ) |
79 |
+ qt5? ( |
80 |
+ dev-qt/qtcore:5 |
81 |
+ dev-qt/linguist-tools |
82 |
+ dev-qt/qtwidgets:5 |
83 |
+ dev-qt/qtgui:5 |
84 |
+ dev-qt/qtconcurrent:5 |
85 |
+ dev-qt/qtnetwork:5 |
86 |
+ dev-qt/qtdbus:5 |
87 |
+ dev-qt/qtimageformats:5 |
88 |
+ dev-qt/qtsvg:5 |
89 |
+ )" |
90 |
+RDEPEND="${DEPEND} |
91 |
+ x11-themes/hicolor-icon-theme |
92 |
+ dev-libs/openssl |
93 |
+ dev-libs/libgcrypt |
94 |
+ media-libs/libpng |
95 |
+ net-dns/c-ares |
96 |
+ cryptopp? ( dev-libs/crypto++ ) |
97 |
+ app-arch/xz-utils |
98 |
+ dev-libs/libuv |
99 |
+ sqlite? ( dev-db/sqlite:3 ) |
100 |
+ dev-libs/libsodium |
101 |
+ zlib? ( sys-libs/zlib ) |
102 |
+ curl? ( net-misc/curl[ssl,curl_ssl_openssl] ) |
103 |
+ freeimage? ( media-libs/freeimage ) |
104 |
+ readline? ( sys-libs/readline:0 ) |
105 |
+ dolphin? ( kde-apps/dolphin ) |
106 |
+ nautilus? ( >=gnome-base/nautilus-3 ) |
107 |
+ thunar? ( xfce-base/thunar ) |
108 |
+ " |
109 |
+ |
110 |
+PATCHES=( ) |
111 |
+ |
112 |
+if [[ ${PV} != *9999* ]];then |
113 |
+ src_prepare(){ |
114 |
+ #default |
115 |
+ # Not needed, since using git submodules |
116 |
+ #cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega |
117 |
+ if [ -e "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" ]; then |
118 |
+ EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" |
119 |
+ fi |
120 |
+ if [ ! -z ${PATCHES} ]; then |
121 |
+ epatch ${PATCHES} |
122 |
+ fi |
123 |
+ if use gnome; then |
124 |
+ if [ -e "${FILESDIR}${P}-gnome.patch" ]; then |
125 |
+ epatch "${FILESDIR}/${P}-gnome.patch" |
126 |
+ fi |
127 |
+ fi |
128 |
+ eapply_user |
129 |
+ cd src/MEGASync/mega |
130 |
+ eautoreconf |
131 |
+ } |
132 |
+fi |
133 |
+ |
134 |
+src_configure(){ |
135 |
+ cd "${S}"/src/MEGASync/mega |
136 |
+ econf \ |
137 |
+ "--disable-silent-rules" \ |
138 |
+ "--disable-curl-checks" \ |
139 |
+ "--disable-megaapi" \ |
140 |
+ $(use_with zlib) \ |
141 |
+ $(use_with sqlite) \ |
142 |
+ $(use_with cryptopp) \ |
143 |
+ "--with-cares" \ |
144 |
+ $(use_with curl) \ |
145 |
+ "--without-termcap" \ |
146 |
+ $(use_enable threads posix-threads) \ |
147 |
+ "--with-sodium" \ |
148 |
+ $(use_with freeimage) \ |
149 |
+ $(use_with readline) \ |
150 |
+ $(use_enable examples) \ |
151 |
+ $(use_enable java) \ |
152 |
+ $(use_enable php) \ |
153 |
+ $(use_enable python) \ |
154 |
+ "--enable-chat" \ |
155 |
+ "--enable-gcc-hardening" |
156 |
+ cd ../.. |
157 |
+ local myeqmakeargs=( |
158 |
+ MEGA.pro |
159 |
+ CONFIG+="release" |
160 |
+ ) |
161 |
+ if use qt5; then |
162 |
+ eqmake5 ${myeqmakeargs[@]} |
163 |
+ use dolphin && cmake-utils_src_configure |
164 |
+ $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro |
165 |
+ else |
166 |
+ eqmake4 ${myeqmakeargs[@]} |
167 |
+ use dolphin && cmake-utils_src_configure |
168 |
+ $(qt4_get_bindir)/lrelease MEGASync/MEGASync.pro |
169 |
+ fi |
170 |
+} |
171 |
+ |
172 |
+src_compile(){ |
173 |
+ emake -C src INSTALL_ROOT="${D}" || die |
174 |
+ use dolphin && cmake-utils_src_compile |
175 |
+} |
176 |
+ |
177 |
+src_install(){ |
178 |
+ use dolphin && cmake-utils_src_install |
179 |
+ local DOCS=( CREDITS.md README.md ) |
180 |
+ einstalldocs |
181 |
+ insinto usr/share/licenses/${PN} |
182 |
+ doins LICENCE.md installer/terms.txt |
183 |
+ cd src/MEGASync |
184 |
+ dobin ${PN} |
185 |
+ cd platform/linux/data |
186 |
+ insinto usr/share/applications |
187 |
+ doins ${PN}.desktop |
188 |
+ cd icons/hicolor |
189 |
+ for size in 16x16 32x32 48x48 128x128 256x256;do |
190 |
+ doicon -s $size $size/apps/mega.png |
191 |
+ done |
192 |
+} |