Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/retroshare/
Date: Sun, 31 Oct 2021 08:21:33
Message-Id: 1635668481.43df6846b5a0058db977ac0c2f32eb6c8973e383.juippis@gentoo
1 commit: 43df6846b5a0058db977ac0c2f32eb6c8973e383
2 Author: Matthew White <mehw.is.me <AT> inventati <DOT> org>
3 AuthorDate: Mon Oct 18 05:45:13 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 08:21:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43df6846
7
8 net-p2p/retroshare: install qss stylesheet files
9
10 Closes: https://bugs.gentoo.org/818772
11 Package-Manager: Portage-3.0.20-r6, Repoman-3.0.3-r1
12 Signed-off-by: Matteo Bianco <mehw.is.me <AT> inventati.org>
13 Closes: https://github.com/gentoo/gentoo/pull/22620
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 net-p2p/retroshare/retroshare-0.6.6-r1.ebuild | 123 ++++++++++++++++++++++++++
17 1 file changed, 123 insertions(+)
18
19 diff --git a/net-p2p/retroshare/retroshare-0.6.6-r1.ebuild b/net-p2p/retroshare/retroshare-0.6.6-r1.ebuild
20 new file mode 100644
21 index 00000000000..1fedc3f34d4
22 --- /dev/null
23 +++ b/net-p2p/retroshare/retroshare-0.6.6-r1.ebuild
24 @@ -0,0 +1,123 @@
25 +# Copyright 1999-2021 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +inherit desktop qmake-utils xdg
31 +
32 +DESCRIPTION="P2P private sharing application"
33 +HOMEPAGE="https://retroshare.cc"
34 +SRC_URI="http://download.opensuse.org/repositories/network:/retroshare/Debian_Testing/retroshare-common_${PV}.orig.tar.gz -> ${P}.tar.gz"
35 +S="${WORKDIR}/RetroShare"
36 +
37 +LICENSE="AGPL-3 Apache-2.0 CC-BY-SA-4.0 GPL-2 GPL-3 LGPL-3"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE="autologin cli +gui +jsonapi libupnp +miniupnp +service +sqlcipher"
41 +
42 +REQUIRED_USE="
43 + || ( gui service )
44 + ?? ( libupnp miniupnp )
45 + service? ( || ( cli jsonapi ) )"
46 +
47 +RDEPEND="
48 + app-arch/bzip2
49 + dev-libs/openssl:0=
50 + >=dev-libs/rapidjson-1.1.0
51 + sys-libs/zlib
52 + autologin? ( app-crypt/libsecret )
53 + gui? (
54 + dev-qt/qtcore:5
55 + dev-qt/qtmultimedia:5
56 + dev-qt/qtnetwork:5
57 + dev-qt/qtprintsupport:5
58 + dev-qt/qtscript:5
59 + dev-qt/qtxml:5
60 + dev-qt/qtgui:5
61 + dev-qt/qtwidgets:5
62 + dev-qt/qtx11extras:5
63 + x11-libs/libX11
64 + x11-libs/libXScrnSaver
65 + )
66 + libupnp? ( net-libs/libupnp:= )
67 + miniupnp? ( net-libs/miniupnpc:= )
68 + service? ( dev-qt/qtcore:5 )
69 + sqlcipher? ( dev-db/sqlcipher )
70 + !sqlcipher? ( dev-db/sqlite:3 )"
71 +
72 +DEPEND="${RDEPEND}
73 + dev-qt/qtcore:5
74 + gui? ( dev-qt/designer:5 )"
75 +
76 +BDEPEND="dev-util/cmake
77 + virtual/pkgconfig
78 + jsonapi? ( app-doc/doxygen )"
79 +
80 +PATCHES=( "${FILESDIR}/${P}-fix-cxx17-compilation.patch" )
81 +
82 +src_configure() {
83 + local qconfigs=(
84 + $(usex cli '' 'no_')rs_service_terminal_login
85 + $(usex autologin '' 'no_')rs_autologin
86 + $(usex gui '' 'no_')retroshare_gui
87 + $(usex jsonapi '' 'no_')rs_jsonapi
88 + $(usex service '' 'no_')retroshare_service
89 + $(usex sqlcipher '' 'no_')sqlcipher
90 + )
91 +
92 + local qupnplibs="none"
93 + use miniupnp && qupnplibs="miniupnpc"
94 + use libupnp && qupnplibs="upnp ixml"
95 +
96 + eqmake5 CONFIG+="${qconfigs[*]}" \
97 + RS_MAJOR_VERSION=$(ver_cut 1) RS_MINOR_VERSION=$(ver_cut 2) \
98 + RS_MINI_VERSION=$(ver_cut 3) RS_EXTRA_VERSION="-gentoo-${PR}" \
99 + RS_UPNP_LIB="${qupnplibs}"
100 +}
101 +
102 +src_install() {
103 + use gui && dobin retroshare-gui/src/retroshare
104 + use service && dobin retroshare-service/src/retroshare-service
105 +
106 + insinto /usr/share/retroshare
107 + doins libbitdht/src/bitdht/bdboot.txt
108 + use gui && doins -r retroshare-gui/src/qss
109 +
110 + dodoc README.asciidoc
111 +
112 + if use gui; then
113 + make_desktop_entry retroshare
114 +
115 + for i in 24 48 64 128 ; do
116 + doicon -s ${i} "data/${i}x${i}/apps/retroshare.png"
117 + done
118 + fi
119 +}
120 +
121 +pkg_preinst() {
122 + xdg_pkg_preinst
123 +
124 + if ! use sqlcipher && ! has_version "net-p2p/retroshare[-sqlcipher]"; then
125 + ewarn "You have disabled GXS database encryption, ${PN} will use SQLite"
126 + ewarn "instead of SQLCipher for GXS databases."
127 + ewarn "Builds using SQLite and builds using SQLCipher have incompatible"
128 + ewarn "database format, so you will need to manually delete GXS"
129 + ewarn "database (loosing all your GXS data and identities) when you"
130 + ewarn "toggle sqlcipher USE flag."
131 + fi
132 +
133 + if [[ ${REPLACING_VERSIONS} ]]; then
134 + if ver_test ${REPLACING_VERSIONS} -lt 0.6; then
135 + ewarn "You are upgrading from Retroshare 0.5.* to ${PV}"
136 + ewarn "Version 0.6.* is backward-incompatible with 0.5 branch"
137 + ewarn "and clients with 0.6.* can not connect to clients that have 0.5.*"
138 + ewarn "It's recommended to drop all your configuration and either"
139 + ewarn "generate a new certificate or import existing from a backup"
140 + break
141 + fi
142 + if ver_test ${REPLACING_VERSIONS} -ge 0.6.0 && ver_test ${REPLACING_VERSIONS} -lt 0.6.4; then
143 + elog "Main executable has been renamed upstream from RetroShare06 to retroshare"
144 + break
145 + fi
146 + fi
147 +}