1 |
commit: 23c589a3e07fb2b524902571c6dce1379e6c0b71 |
2 |
Author: olifre <o.freyermuth <AT> googlemail <DOT> com> |
3 |
AuthorDate: Fri Mar 31 07:49:32 2017 +0000 |
4 |
Commit: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
5 |
CommitDate: Fri Mar 31 07:49:32 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=23c589a3 |
7 |
|
8 |
net-misc/cernbox-client: Bump to 2.3.1 release, (#764) |
9 |
|
10 |
following owncloud-client. |
11 |
|
12 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
13 |
|
14 |
.../cernbox-client/cernbox-client-2.3.1.ebuild | 103 +++++++++++++++++++++ |
15 |
1 file changed, 103 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/cernbox-client/cernbox-client-2.3.1.ebuild b/net-misc/cernbox-client/cernbox-client-2.3.1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000..6f3ad8c70 |
20 |
--- /dev/null |
21 |
+++ b/net-misc/cernbox-client/cernbox-client-2.3.1.ebuild |
22 |
@@ -0,0 +1,103 @@ |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+ |
28 |
+inherit cmake-utils rpm |
29 |
+ |
30 |
+DESCRIPTION="Synchronize files from CERNbox EOS with your computer" |
31 |
+ |
32 |
+# Origin is classic owncloud-client, branded for CERN during compilation. |
33 |
+ORIGIN_P="owncloudclient" |
34 |
+BRANDED_P="cernbox" |
35 |
+BRANDED_PV="2.2.4" |
36 |
+BRANDED_REL="1.1" |
37 |
+ |
38 |
+HOMEPAGE="https://cernbox.cern.ch/" |
39 |
+SRC_URI="http://download.owncloud.com/desktop/stable/${ORIGIN_P}-${PV}.tar.xz |
40 |
+ https://cernbox.cern.ch/cernbox/doc/Linux/repo/CentOS_7/src/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm" |
41 |
+ |
42 |
+LICENSE="CC-BY-3.0 GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~x86" |
45 |
+IUSE="doc dolphin nautilus samba +sftp test" |
46 |
+ |
47 |
+COMMON_DEPEND=">=dev-db/sqlite-3.4:3 |
48 |
+ dev-libs/qtkeychain[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 |
54 |
+ dev-qt/qtsql:5 |
55 |
+ dev-qt/qtwebkit:5 |
56 |
+ sys-fs/inotify-tools |
57 |
+ virtual/libiconv |
58 |
+ dolphin? ( |
59 |
+ kde-frameworks/kcoreaddons:5 |
60 |
+ kde-frameworks/kio:5 |
61 |
+ ) |
62 |
+ nautilus? ( dev-python/nautilus-python ) |
63 |
+ samba? ( >=net-fs/samba-3.5 ) |
64 |
+ sftp? ( >=net-libs/libssh-0.5 ) |
65 |
+" |
66 |
+RDEPEND="${COMMON_DEPEND} |
67 |
+ !net-misc/ocsync |
68 |
+ !net-misc/nextcloud-client |
69 |
+" |
70 |
+DEPEND="${COMMON_DEPEND} |
71 |
+ dev-qt/linguist-tools:5 |
72 |
+ doc? ( |
73 |
+ dev-python/sphinx |
74 |
+ dev-texlive/texlive-latexextra |
75 |
+ virtual/latex-base |
76 |
+ ) |
77 |
+ dolphin? ( kde-frameworks/extra-cmake-modules ) |
78 |
+ test? ( |
79 |
+ dev-util/cmocka |
80 |
+ dev-qt/qttest:5 |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+S=${WORKDIR}/owncloudclient-${PV} |
85 |
+ |
86 |
+src_unpack() { |
87 |
+ rpm_src_unpack ${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm |
88 |
+ mv ${PN/-}-${BRANDED_PV}/cernbox "${S}" || die "failed to extract branding" |
89 |
+} |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ # Keep tests in ${T} |
93 |
+ sed -i -e "s#\"/tmp#\"${T}#g" test/test*.cpp || die "sed failed" |
94 |
+ |
95 |
+ if ! use nautilus; then |
96 |
+ pushd shell_integration > /dev/null || die |
97 |
+ cmake_comment_add_subdirectory nautilus |
98 |
+ popd > /dev/null || die |
99 |
+ fi |
100 |
+ default |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ local mycmakeargs=( |
105 |
+ -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc |
106 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
107 |
+ -DWITH_ICONV=ON |
108 |
+ -DWITH_DOC=$(usex doc) |
109 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_KF5=$(usex !dolphin) |
110 |
+ -DBUILD_WITH_QT4=OFF |
111 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_Libsmbclient=$(usex !samba) |
112 |
+ -DCMAKE_DISABLE_FIND_PACKAGE_LibSSH=$(usex !sftp) |
113 |
+ -DUNIT_TESTING=$(usex test) |
114 |
+ -DOEM_THEME_DIR=${PWD}/${BRANDED_P}/mirall |
115 |
+ ) |
116 |
+ |
117 |
+ cmake-utils_src_configure |
118 |
+} |
119 |
+ |
120 |
+pkg_postinst() { |
121 |
+ if ! use doc ; then |
122 |
+ elog "Documentation and man pages not installed" |
123 |
+ elog "Enable doc USE-flag to generate them" |
124 |
+ fi |
125 |
+} |