1 |
commit: db62cbf2ce66e8c66cceb6a5b5eba8dda16dfd46 |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Thu Dec 31 08:31:13 2020 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Thu Dec 31 08:31:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db62cbf2 |
7 |
|
8 |
net-misc/megasync: bump to 4.3.8.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Theo Anderson <telans <AT> posteo.de> |
12 |
|
13 |
net-misc/megasync/Manifest | 2 + |
14 |
net-misc/megasync/megasync-4.3.8.0.ebuild | 133 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 135 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest |
18 |
index 2e3f9444..996b96d0 100644 |
19 |
--- a/net-misc/megasync/Manifest |
20 |
+++ b/net-misc/megasync/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST megasync-4.3.7.tar.gz 16020207 BLAKE2B f38b40594c0cb1ed3e93715842f3c161e09ef66deb017d2e5fa03d9d0ac2863ba02b88d1fe779960c07664b19250fa29115a87d62d0934157370c1faa85345a5 SHA512 6852390e05da13effd059a5e0dc7fe400f3456668925fbed5e34bc5018b3664d72aebd78847dfdb4f6dda39fe615a79e5c0eb99e72a401fb833d4eba8216010c |
23 |
+DIST megasync-4.3.8.0.tar.gz 16019709 BLAKE2B 493ac0df0e8ca5c6617e493b5b3d81e45cedf2212a83ec9f5f6c07eee6fdf1d749b3735e10082b89f376f261ebfb825a3a7c457b8aa3be64702cddca34558558 SHA512 597b1d4a5a806514449b55e8bf81688b3c6d275372ebb56a45841b2f4c7caf8d9db363cf627fa0b6b84f4c662dc8cf87179b4478cd50b7b7efa1e23a9dca3389 |
24 |
DIST megasync-sdk-4.3.7.tar.gz 3362032 BLAKE2B 36ab643252d27475f34c7a5ee0e71a6470f2c830ea5c8331a094b79da5cd751699390c36e107cb0da06e6f46932e10e5fefbfc8eec3e8645ba84c365835088f3 SHA512 45dcc285c194cc347d9d562638658d2f0dd8099371e7408995cad68811e720905ad6f9810b24079c1112d16bfb87f7986cf3180520dc7edd611e703c251b182a |
25 |
+DIST megasync-sdk-4.3.8.0.tar.gz 3363057 BLAKE2B fbc7006a5559a5e2220cd9f9f398c835a1de919624e4d00d052580cf7e3ac4bae2ec1acbd6650b1eaef1218363203837cad562875067e524e067a53d5553567b SHA512 e6ec612fb11be4566d091d4159429ee50574081753caae3b1dd4e22221f2b213cfc0787b52051cbcdf9b0069869df6c95aa80951bdc3fa5098dd26fa0a2e7f7e |
26 |
|
27 |
diff --git a/net-misc/megasync/megasync-4.3.8.0.ebuild b/net-misc/megasync/megasync-4.3.8.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..eb91b2e5 |
30 |
--- /dev/null |
31 |
+++ b/net-misc/megasync/megasync-4.3.8.0.ebuild |
32 |
@@ -0,0 +1,133 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit autotools desktop qmake-utils xdg cmake |
39 |
+ |
40 |
+DESCRIPTION="The official Qt-based program for syncing your MEGA account in your PC" |
41 |
+HOMEPAGE="http://mega.co.nz" |
42 |
+ |
43 |
+if [[ ${PV} == 9999 ]];then |
44 |
+ inherit git-r3 |
45 |
+ EGIT_REPO_URI="https://github.com/meganz/MEGAsync" |
46 |
+else |
47 |
+ MEGA_SDK_REV="37b346c2e119559e40c08f43e1a8f54353e7ad59" # commit of src/MEGASync/mega submodule |
48 |
+ SRC_URI=" |
49 |
+ https://github.com/meganz/MEGAsync/archive/v${PV}_Win.tar.gz -> ${P}.tar.gz |
50 |
+ https://github.com/meganz/sdk/archive/${MEGA_SDK_REV}.tar.gz -> ${PN}-sdk-${PV}.tar.gz |
51 |
+ " |
52 |
+ KEYWORDS="~amd64 ~x86" |
53 |
+ # 4.3.8.0 has no dedicated linux tag |
54 |
+ S="${WORKDIR}"/MEGAsync-${PV}_Win |
55 |
+fi |
56 |
+ |
57 |
+LICENSE="MEGA" |
58 |
+SLOT="0" |
59 |
+IUSE="+cryptopp +curl +sqlite +zlib dolphin examples freeimage java libressl nautilus php python readline threads thunar" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ app-arch/xz-utils |
63 |
+ dev-libs/libgcrypt |
64 |
+ dev-libs/libsodium |
65 |
+ dev-libs/libuv |
66 |
+ media-libs/libpng |
67 |
+ net-dns/c-ares |
68 |
+ x11-themes/hicolor-icon-theme |
69 |
+ cryptopp? ( dev-libs/crypto++ ) |
70 |
+ curl? ( |
71 |
+ !libressl? ( net-misc/curl[ssl,curl_ssl_openssl] ) |
72 |
+ libressl? ( net-misc/curl[ssl,curl_ssl_libressl] ) |
73 |
+ ) |
74 |
+ dolphin? ( kde-apps/dolphin ) |
75 |
+ freeimage? ( media-libs/freeimage ) |
76 |
+ !libressl? ( dev-libs/openssl:0= ) |
77 |
+ libressl? ( dev-libs/libressl:0= ) |
78 |
+ nautilus? ( >=gnome-base/nautilus-3 ) |
79 |
+ readline? ( sys-libs/readline:0 ) |
80 |
+ sqlite? ( dev-db/sqlite:3 ) |
81 |
+ thunar? ( xfce-base/thunar ) |
82 |
+ zlib? ( sys-libs/zlib ) |
83 |
+" |
84 |
+DEPEND=" |
85 |
+ ${RDEPEND} |
86 |
+ media-libs/libmediainfo |
87 |
+ media-libs/libraw |
88 |
+ dev-qt/qtcore:5 |
89 |
+ dev-qt/qtwidgets:5 |
90 |
+ dev-qt/qtgui:5 |
91 |
+ dev-qt/qtconcurrent:5 |
92 |
+ dev-qt/qtnetwork:5 |
93 |
+ dev-qt/qtdbus:5 |
94 |
+ dev-qt/qtimageformats:5 |
95 |
+ dev-qt/qtsvg:5 |
96 |
+" |
97 |
+BDEPEND=" |
98 |
+ app-doc/doxygen |
99 |
+ dev-lang/swig |
100 |
+ dev-qt/linguist-tools |
101 |
+" |
102 |
+ |
103 |
+DOCS=( CREDITS.md README.md ) |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ if [[ ${PV} != 9999 ]]; then |
107 |
+ rmdir src/MEGASync/mega |
108 |
+ mv "${WORKDIR}"/sdk-${MEGA_SDK_REV} src/MEGASync/mega |
109 |
+ fi |
110 |
+ default |
111 |
+ cd src/MEGASync/mega |
112 |
+ eautoreconf |
113 |
+} |
114 |
+ |
115 |
+src_configure() { |
116 |
+ cd src/MEGASync/mega |
117 |
+ econf \ |
118 |
+ "--disable-silent-rules" \ |
119 |
+ "--disable-curl-checks" \ |
120 |
+ "--disable-megaapi" \ |
121 |
+ $(use_with zlib) \ |
122 |
+ $(use_with sqlite) \ |
123 |
+ $(use_with cryptopp) \ |
124 |
+ "--with-cares" \ |
125 |
+ $(use_with curl) \ |
126 |
+ "--without-termcap" \ |
127 |
+ $(use_enable threads posix-threads) \ |
128 |
+ "--with-sodium" \ |
129 |
+ $(use_with freeimage) \ |
130 |
+ $(use_with readline) \ |
131 |
+ $(use_enable examples) \ |
132 |
+ $(use_enable java) \ |
133 |
+ $(use_enable php) \ |
134 |
+ $(use_enable python) \ |
135 |
+ "--enable-chat" \ |
136 |
+ "--enable-gcc-hardening" |
137 |
+ cd ../.. |
138 |
+ |
139 |
+ local myeqmakeargs=( |
140 |
+ MEGA.pro |
141 |
+ CONFIG+="release" |
142 |
+ ) |
143 |
+ |
144 |
+ eqmake5 ${myeqmakeargs[@]} |
145 |
+ use dolphin && cmake_src_configure |
146 |
+ $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro |
147 |
+} |
148 |
+ |
149 |
+src_compile() { |
150 |
+ emake -C src INSTALL_ROOT="${D}" || die |
151 |
+ use dolphin && cmake_src_compile |
152 |
+} |
153 |
+ |
154 |
+src_install() { |
155 |
+ use dolphin && cmake_src_install |
156 |
+ einstalldocs |
157 |
+ dobin src/MEGASync/${PN} |
158 |
+ insinto usr/share/licenses/${PN} |
159 |
+ doins LICENCE.md installer/terms.txt |
160 |
+ domenu src/MEGASync/platform/linux/data/${PN}.desktop |
161 |
+ cd src/MEGASync/platform/linux/data/icons/hicolor |
162 |
+ for size in 16x16 32x32 48x48 128x128 256x256;do |
163 |
+ doicon -s $size $size/apps/mega.png |
164 |
+ done |
165 |
+} |