Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: net-misc/cernbox-client/
Date: Sat, 06 Feb 2021 04:50:55
Message-Id: 1612586100.c56f730d37114a2fa3be71b142434e3ac24c1c1e.andrewammerlaan@gentoo
1 commit: c56f730d37114a2fa3be71b142434e3ac24c1c1e
2 Author: Oliver Freyermuth <o.freyermuth <AT> googlemail <DOT> com>
3 AuthorDate: Fri Feb 5 20:28:42 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sat Feb 6 04:35:00 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c56f730d
7
8 net-misc/cernbox-client: Bump to 2.7.5.3180.
9
10 Follows new version of net-misc/owncloud-client.
11
12 Package-Manager: Portage-3.0.13, Repoman-3.0.2
13 Signed-off-by: Oliver Freyermuth <o.freyermuth <AT> googlemail.com>
14 Closes: https://github.com/gentoo/sci/pull/1051
15 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
16
17 .../cernbox-client-2.7.5.3180.ebuild | 96 ++++++++++++++++++++++
18 1 file changed, 96 insertions(+)
19
20 diff --git a/net-misc/cernbox-client/cernbox-client-2.7.5.3180.ebuild b/net-misc/cernbox-client/cernbox-client-2.7.5.3180.ebuild
21 new file mode 100644
22 index 000000000..2eb01cf8e
23 --- /dev/null
24 +++ b/net-misc/cernbox-client/cernbox-client-2.7.5.3180.ebuild
25 @@ -0,0 +1,96 @@
26 +# Copyright 1999-2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit cmake rpm xdg
32 +
33 +DESCRIPTION="Synchronize files from CERNBox EOS with your computer"
34 +
35 +# Origin is classic owncloud-client, branded for CERN during compilation.
36 +ORIGIN_PN="ownCloud"
37 +BRANDED_P="cernbox"
38 +BRANDED_PV="2.7.1"
39 +BRANDED_REL="2596"
40 +HOMEPAGE="https://cernbox.cern.ch/"
41 +SRC_URI="http://download.owncloud.com/desktop/${ORIGIN_PN}/stable/${PV}/source/${ORIGIN_PN}-${PV}.tar.xz
42 + https://cernbox.cern.ch/cernbox/doc/Linux/repo/CentOS_7/src/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm
43 + https://cern.ch/ofreyerm/gentoo/cernbox/${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm"
44 +
45 +LICENSE="CC-BY-3.0 GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="doc dolphin gnome-keyring nautilus test"
49 +
50 +COMMON_DEPEND=">=dev-db/sqlite-3.4:3
51 + dev-libs/qtkeychain[gnome-keyring?,qt5(+)]
52 + dev-qt/qtconcurrent:5
53 + dev-qt/qtcore:5
54 + dev-qt/qtdbus:5
55 + dev-qt/qtgui:5
56 + dev-qt/qtnetwork:5[ssl]
57 + dev-qt/qtsql:5
58 + dev-qt/qtwidgets:5
59 + dev-qt/qtxml:5
60 + sys-fs/inotify-tools
61 + dolphin? (
62 + kde-frameworks/kcoreaddons:5
63 + kde-frameworks/kio:5
64 + )
65 + nautilus? ( dev-python/nautilus-python )"
66 +
67 +RDEPEND="${COMMON_DEPEND}"
68 +DEPEND="${COMMON_DEPEND}
69 + dev-qt/linguist-tools:5
70 + kde-frameworks/extra-cmake-modules
71 + doc? (
72 + dev-python/sphinx
73 + dev-tex/latexmk
74 + dev-texlive/texlive-latexextra
75 + virtual/latex-base
76 + )
77 + test? (
78 + dev-util/cmocka
79 + dev-qt/qttest:5
80 + )"
81 +
82 +RESTRICT="!test? ( test )"
83 +
84 +S=${WORKDIR}/${ORIGIN_PN}-${PV}
85 +
86 +src_unpack() {
87 + rpm_src_unpack ${PN}-${BRANDED_PV}-${BRANDED_REL}.src.rpm || die "failed to extract branding RPM"
88 + mv ${PN%-*}-${BRANDED_PV}.${BRANDED_REL}/branding "${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
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 + cmake_src_prepare
101 +}
102 +
103 +src_configure() {
104 + local mycmakeargs=(
105 + -DSYSCONF_INSTALL_DIR="${EPREFIX}"/etc
106 + -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF}
107 + -DCMAKE_DISABLE_FIND_PACKAGE_Sphinx=$(usex !doc)
108 + -DBUILD_SHELL_INTEGRATION_DOLPHIN=$(usex dolphin)
109 + -DBUILD_TESTING=$(usex test)
110 + )
111 +
112 + cmake_src_configure
113 +}
114 +
115 +pkg_postinst() {
116 + if ! use doc ; then
117 + elog "Documentation and man pages not installed"
118 + elog "Enable doc USE-flag to generate them"
119 + fi
120 + xdg_pkg_postinst
121 +}