1 |
commit: 73760504350b638f0e2f57dc0725a54f8ee4e2d4 |
2 |
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 10 17:21:40 2019 +0000 |
4 |
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 10 17:21:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=73760504 |
7 |
|
8 |
correct megasync 3.7.1 missing dependency |
9 |
|
10 |
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com> |
11 |
|
12 |
net-misc/megasync/Manifest | 1 + |
13 |
net-misc/megasync/megasync-3.7.1-r1.ebuild | 146 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 147 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/megasync/Manifest b/net-misc/megasync/Manifest |
17 |
index dce2b0b..589be91 100644 |
18 |
--- a/net-misc/megasync/Manifest |
19 |
+++ b/net-misc/megasync/Manifest |
20 |
@@ -15,6 +15,7 @@ EBUILD megasync-3.6.5-r1.ebuild 3362 BLAKE2B 31b8246a1600d088d30ad26687f1d14ea37 |
21 |
EBUILD megasync-3.6.5.ebuild 3337 BLAKE2B 2f5aeb4338a6b3cda24c7df83f72133078bc9d7a9b85235dbc74939a6584ee3db15c1ead62cde806419d455b400e7ecf1f16f8b9180603d2b03f3c1e522d0bbe SHA512 d8093129e32585db276e4aa88496092c7a99731b10755a8514b23492e0e6473837850dcaec1606804a732d4fc88cd77b9bc207ecafbd7a3450e249f8eade438d |
22 |
EBUILD megasync-3.6.6-r1.ebuild 3491 BLAKE2B 7981da7b9d40d9aee6a8eac180a6eba7b68642ad23b12bb73f2387eeb02519d54d88e9557842787379cc603917f768452a175657d87b23cd4e378c2619bfc9ec SHA512 4507cc58b49e1653ed1bf63a4210433f89a7c195892c070deb2c9d9207c95e5274f53bdc2371ad8ecadc1bebfbdc18466a431dbd11bc68d6d2fa3e1f7cc90a58 |
23 |
EBUILD megasync-3.6.6.ebuild 3362 BLAKE2B 31b8246a1600d088d30ad26687f1d14ea372aa92141be2d779aede5da7a32ab53f41463080a4148fbe74402046ede9d797d3e6d3bbc375ab634885b82476dfba SHA512 e4dfb72321158c6befd757921bd70e7b275ec6b95e2297119d70c4cf1cdf708cec903575b8f3adc308b4a6071a7bd741061acefa2ab16ce78b9a1733e5f06e99 |
24 |
+EBUILD megasync-3.7.1-r1.ebuild 3478 BLAKE2B 7c1e3e43bb883856a53b595cf5dea8b546bace994c46653d4e1b144aae175122ea8be06d758a900c508af9bf9d9ae9e63cc02cdef085f74b571f14ee98a8ae49 SHA512 76761c259bbe503d0f5cfcda4116f3176162a46e5705e085e8fc7624d18c11d1a8b16d3c80566132e37abf6d04563446382e53ec21b7a1c4ced70f8a95e06ff7 |
25 |
EBUILD megasync-3.7.1.ebuild 3459 BLAKE2B b4fccfddb25b61742a3058671c1fe6b67c46672db61ac4f23da807d770a70bd2b2b8401cd5ea352be6b1efc589a1050f4a56fa5fa304d03b7facd4c443acedbc SHA512 451f8f82ede1e68cb226d771fdf810fbf131e9d4e7d6ce51a506ef0eb8fc521cfb7eab94ebd740793e13516ee1e06f171300d17497f00b6abe1e95ff8e3d165c |
26 |
EBUILD megasync-9999.ebuild 3637 BLAKE2B 3333948364efa4ae9ce897da38659e669fbb509de374686832d4546caccc4f9333693749540c989f1bb074b9eb929b308978ed089f4b6be714dbf76c530e608b SHA512 020ca96d8972f66cc79673bc31083af2fffacbb02dfeb12677d5d62f08605e1a4f9b29d55d5509231a416c39e7b1cd2e6b20d16c4af00a415cbaf4c133fa6c6d |
27 |
MISC metadata.xml 318 BLAKE2B ffc32715f0597b63ba78c242a5adfad13c921b43da17b5e07b4cca5e5ef69dbb3c89a7d110165dcea06ed317f873a5210db21be0ac5941dfb433185fdcb7a6e7 SHA512 e4930a21d6f75f5395e2e96436b42c792771fd7167abceeff0db7a9036616c6feeb6beee890afa6ff5e4584f5bb6938084316e60df57997aa1c20ba0a025514c |
28 |
|
29 |
diff --git a/net-misc/megasync/megasync-3.7.1-r1.ebuild b/net-misc/megasync/megasync-3.7.1-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 0000000..e4f6af8 |
32 |
--- /dev/null |
33 |
+++ b/net-misc/megasync/megasync-3.7.1-r1.ebuild |
34 |
@@ -0,0 +1,146 @@ |
35 |
+# Copyright 1999-2016 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+# $Header: $ |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+inherit eutils multilib qmake-utils autotools versionator git-r3 |
42 |
+ |
43 |
+DESCRIPTION="A Qt-based program for syncing your MEGA account in your PC. This is the official app." |
44 |
+HOMEPAGE="http://mega.co.nz" |
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_Linux" |
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="+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 |
+ ) |
77 |
+ qt5? ( |
78 |
+ dev-qt/qtcore:5 |
79 |
+ dev-qt/linguist-tools |
80 |
+ dev-qt/qtwidgets:5 |
81 |
+ dev-qt/qtgui:5 |
82 |
+ dev-qt/qtconcurrent:5 |
83 |
+ dev-qt/qtnetwork:5 |
84 |
+ dev-qt/qtdbus:5 |
85 |
+ )" |
86 |
+RDEPEND="${DEPEND} |
87 |
+ x11-themes/hicolor-icon-theme |
88 |
+ dev-libs/openssl |
89 |
+ dev-libs/libgcrypt |
90 |
+ media-libs/libpng |
91 |
+ net-dns/c-ares |
92 |
+ cryptopp? ( dev-libs/crypto++ ) |
93 |
+ app-arch/xz-utils |
94 |
+ dev-libs/libuv |
95 |
+ sqlite? ( dev-db/sqlite:3 ) |
96 |
+ dev-libs/libsodium |
97 |
+ zlib? ( sys-libs/zlib ) |
98 |
+ curl? ( net-misc/curl[ssl,curl_ssl_openssl] ) |
99 |
+ freeimage? ( media-libs/freeimage ) |
100 |
+ readline? ( sys-libs/readline:0 ) |
101 |
+ " |
102 |
+ |
103 |
+PATCHES=( ) |
104 |
+ |
105 |
+if [[ ${PV} != *9999* ]];then |
106 |
+ src_prepare(){ |
107 |
+ #default |
108 |
+ # Not needed, since using git submodules |
109 |
+ #cp -r ../sdk-${SDK_COMMIT}/* src/MEGASync/mega |
110 |
+ if [ -e "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" ]; then |
111 |
+ EPATCH_OPTS="-p0" epatch "${FILESDIR}/MEGAsync-${PV}.0_Linux.patch" |
112 |
+ fi |
113 |
+ if [ ! -z ${PATCHES} ]; then |
114 |
+ epatch ${PATCHES} |
115 |
+ fi |
116 |
+ if use gnome; then |
117 |
+ if [ -e "${FILESDIR}${P}-gnome.patch" ]; then |
118 |
+ epatch "${FILESDIR}/${P}-gnome.patch" |
119 |
+ fi |
120 |
+ fi |
121 |
+ eapply_user |
122 |
+ cd src/MEGASync/mega |
123 |
+ eautoreconf |
124 |
+ } |
125 |
+fi |
126 |
+ |
127 |
+src_configure(){ |
128 |
+ cd "${S}"/src/MEGASync/mega |
129 |
+ econf \ |
130 |
+ "--disable-silent-rules" \ |
131 |
+ "--disable-curl-checks" \ |
132 |
+ "--disable-megaapi" \ |
133 |
+ $(use_with zlib) \ |
134 |
+ $(use_with sqlite) \ |
135 |
+ $(use_with cryptopp) \ |
136 |
+ "--with-cares" \ |
137 |
+ $(use_with curl) \ |
138 |
+ "--without-termcap" \ |
139 |
+ $(use_enable threads posix-threads) \ |
140 |
+ "--with-sodium" \ |
141 |
+ $(use_with freeimage) \ |
142 |
+ $(use_with readline) \ |
143 |
+ $(use_enable examples) \ |
144 |
+ $(use_enable java) \ |
145 |
+ $(use_enable php) \ |
146 |
+ $(use_enable python) \ |
147 |
+ "--enable-chat" \ |
148 |
+ "--enable-gcc-hardening" |
149 |
+ cd ../.. |
150 |
+ local myeqmakeargs=( |
151 |
+ MEGA.pro |
152 |
+ CONFIG+="release" |
153 |
+ ) |
154 |
+ if use qt5; then |
155 |
+ eqmake5 ${myeqmakeargs[@]} |
156 |
+ $(qt5_get_bindir)/lrelease MEGASync/MEGASync.pro |
157 |
+ else |
158 |
+ eqmake4 ${myeqmakeargs[@]} |
159 |
+ $(qt4_get_bindir)/lrelease MEGASync/MEGASync.pro |
160 |
+ fi |
161 |
+} |
162 |
+ |
163 |
+src_compile(){ |
164 |
+ cd "${S}"/src |
165 |
+ emake INSTALL_ROOT="${D}" || die |
166 |
+} |
167 |
+ |
168 |
+src_install(){ |
169 |
+ insinto usr/share/licenses/${PN} |
170 |
+ doins LICENCE.md installer/terms.txt |
171 |
+ cd src/MEGASync |
172 |
+ dobin ${PN} |
173 |
+ cd platform/linux/data |
174 |
+ insinto usr/share/applications |
175 |
+ doins ${PN}.desktop |
176 |
+ cd icons/hicolor |
177 |
+ for size in 16x16 32x32 48x48 128x128 256x256;do |
178 |
+ doicon -s $size $size/apps/mega.png |
179 |
+ done |
180 |
+} |