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