1 |
commit: bddad9e2e3ef28f38ce78c202a1a1e7b2014682d |
2 |
Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Mon Sep 26 19:25:45 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 10:22:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=bddad9e2 |
7 |
|
8 |
net-misc/cernbox-client: add 2.11.1.8438 |
9 |
|
10 |
Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com> |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
.../cernbox-client-2.11.1.8438.ebuild | 80 ++++++++++++++++++++++ |
14 |
1 file changed, 80 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/cernbox-client/cernbox-client-2.11.1.8438.ebuild b/net-misc/cernbox-client/cernbox-client-2.11.1.8438.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..c698f7562 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/cernbox-client/cernbox-client-2.11.1.8438.ebuild |
21 |
@@ -0,0 +1,80 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit cmake rpm xdg |
28 |
+ |
29 |
+DESCRIPTION="Synchronize files from CERNBox EOS with your computer" |
30 |
+ |
31 |
+# Origin is classic owncloud-client, branded for CERN during compilation. |
32 |
+ORIGIN_PN="ownCloud" |
33 |
+BRANDED_P="cernbox" |
34 |
+BRANDED_PV="2.9.2" |
35 |
+BRANDED_REL="6339" |
36 |
+HOMEPAGE="https://cernbox.cern.ch/" |
37 |
+SRC_URI="https://download.owncloud.com/desktop/${ORIGIN_PN}/stable/${PV}/source/${ORIGIN_PN}-${PV}.tar.xz |
38 |
+ https://cernbox.cern.ch/cernbox/doc/Linux/repo/CentOS_7/src/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm |
39 |
+ https://cern.ch/ofreyerm/gentoo/cernbox/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm" |
40 |
+ |
41 |
+LICENSE="CC-BY-3.0 GPL-2" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="dolphin gnome-keyring nautilus test" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+RDEPEND=">=dev-db/sqlite-3.4:3 |
48 |
+ dev-libs/qtkeychain[gnome-keyring?,qt5(+)] |
49 |
+ dev-qt/qtconcurrent:5 |
50 |
+ dev-qt/qtcore:5 |
51 |
+ dev-qt/qtdbus:5 |
52 |
+ dev-qt/qtgui:5 |
53 |
+ dev-qt/qtnetwork:5[ssl] |
54 |
+ dev-qt/qtsql:5 |
55 |
+ dev-qt/qtwidgets:5 |
56 |
+ dev-qt/qtxml:5 |
57 |
+ sys-fs/inotify-tools |
58 |
+ dolphin? ( |
59 |
+ kde-frameworks/kcoreaddons:5 |
60 |
+ kde-frameworks/kio:5 |
61 |
+ ) |
62 |
+ nautilus? ( dev-python/nautilus-python )" |
63 |
+ |
64 |
+DEPEND="${RDEPEND} |
65 |
+ test? ( |
66 |
+ dev-util/cmocka |
67 |
+ dev-qt/qttest:5 |
68 |
+ )" |
69 |
+ |
70 |
+BDEPEND=" |
71 |
+ dev-qt/linguist-tools:5 |
72 |
+ kde-frameworks/extra-cmake-modules" |
73 |
+ |
74 |
+S=${WORKDIR}/${ORIGIN_PN}-${PV} |
75 |
+ |
76 |
+src_unpack() { |
77 |
+ rpm_src_unpack ${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm || die "failed to extract branding RPM" |
78 |
+ mv ${PN%-*}-${BRANDED_PV}.${BRANDED_REL}/branding "${S}" || die "failed to extract branding" |
79 |
+} |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ # Keep tests in ${T} |
83 |
+ sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die |
84 |
+ |
85 |
+ if ! use nautilus; then |
86 |
+ pushd shell_integration > /dev/null || die |
87 |
+ cmake_comment_add_subdirectory nautilus |
88 |
+ popd > /dev/null || die |
89 |
+ fi |
90 |
+ cmake_src_prepare |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ local mycmakeargs=( |
95 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
96 |
+ -DBUILD_SHELL_INTEGRATION_DOLPHIN=$(usex dolphin) |
97 |
+ -DBUILD_TESTING=$(usex test) |
98 |
+ ) |
99 |
+ |
100 |
+ cmake_src_configure |
101 |
+} |