summaryrefslogtreecommitdiff
path: root/net-p2p/retroshare
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-05-18 00:10:51 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-05-18 00:10:51 +0100
commiteccb70a7f91b2d22582587f26d1a28bb31408b45 (patch)
tree3223e1fd54201bcf4ebecac6fbe87361cbe643e2 /net-p2p/retroshare
parenta2810985afabcc31d3eace5e61d8ea25b852ba17 (diff)
gentoo resync : 18.05.2019
Diffstat (limited to 'net-p2p/retroshare')
-rw-r--r--net-p2p/retroshare/Manifest5
-rw-r--r--net-p2p/retroshare/metadata.xml4
-rw-r--r--net-p2p/retroshare/retroshare-0.6.5.ebuild (renamed from net-p2p/retroshare/retroshare-0.6.9999.ebuild)57
3 files changed, 47 insertions, 19 deletions
diff --git a/net-p2p/retroshare/Manifest b/net-p2p/retroshare/Manifest
index aef517074bb1..2ccbb88830b8 100644
--- a/net-p2p/retroshare/Manifest
+++ b/net-p2p/retroshare/Manifest
@@ -2,7 +2,8 @@ AUX retroshare-0.6.3-fix-comment.patch 820 BLAKE2B 361dc83fbe46550ca7b9b6f7c5d0a
AUX retroshare-0.6.4-qt-5.11.patch 2365 BLAKE2B 34745015cae77990a71005a07be39522d292baf504ea609966b839cd945890cfda644766363f74927307d076e6cfca96b5a4be3b992a723b7672b9e9a1c67d71 SHA512 c3f2a4bcd65ffeb57a17761bb045daa20a19d545b746d8bb8d8c0d61c36be9690f3a05103d55e2390b29ec15d978d24461bae9433b1c92d14bfc8aaa8a2896cb
DIST retroshare-0.6.3.tar.gz 19699359 BLAKE2B 5a7a77b5ab43d44928e08fd1edc3bd6baa8b42f5c1e68fb079d3c60786c1068914a4f7a4b32fe4b683e7b990fac1bd09e5af66a09a3e9b7013e5b51b3c69ae8c SHA512 ee699ddc71aba3d20498d46e8183953b948896709d1469a5d5374b7c9b7955e460326b1ea3fe6f87e7235c5d2d5e8f042161410a0990b2dd2a44b42551fb5757
DIST retroshare-0.6.4.tar.gz 20018361 BLAKE2B 63a32ee3a22f4df8b9f6cff149be2c9a9cf18ac895456c808885d510b261f683bf57141b8beb4a0206f7e61eb5c88ce505440956ccdf963ad6ad7f7a73679fb3 SHA512 7fcca6479b73cb4d70532fe46bb4cf24332d523b14a198a0e81689d0e00b62ca300d167be5ac282200e97f5fd9dc6b6c3a2c992ab1daa25846db1a404bf616f8
+DIST retroshare-0.6.5.tar.gz 29377995 BLAKE2B 3a8909227080702e42e59b42301e873d4ece806e014a959080a3ae9df7d11564a6e6d915087a9ddd6d5c66d1e5c43895fa24dea8c0042fdce391c384a54182ee SHA512 a65fefb6baff42a81880a401c9005f73ac8180a247dd992a350f9bf5bac366ee6e809bf93cbbc31e80646156147a1d434306dadfbed1f69879ab61cfae3fddeb
EBUILD retroshare-0.6.3-r1.ebuild 3946 BLAKE2B e4078aa47a2553aa113eacb37aac1772db81c5560423af5abcebd847925853fc6a69faba386711a38a96aaf9e9b728afffc453c2cdc9232c9289a426ea424096 SHA512 3c24cd55ddab91ead27966d354320460f7789cb91970d8d0e1628c7e232ee46420aeb1a86334625c6d3a2d4fe83e56cdfad47f1706141ae1d58531edf353697f
EBUILD retroshare-0.6.4.ebuild 3783 BLAKE2B a764907fa347a3362a7fa60ba8664a4211d09fbfb641768175e7f72ff572400e77dd274c435a5a0b22d1beefb727e6fc3dfef43218a82c0b93c98005ba34eb34 SHA512 5ef95f47d3186f4031c294e153da6001d978530bb376fcc393048abeaf717b2303c4467de27307e5ce7ca5b2d19da39d12cc3c60223cc68b9b7ec4be6847c09b
-EBUILD retroshare-0.6.9999.ebuild 3273 BLAKE2B 3a99b1f80024dacc10165cf0329f6f2f1f17021dc5223c436c817622c7d224ee8d9f312493c563c3df9e14d9a54420393751a26f44a35a11cc01f63e9b4568c4 SHA512 a4951090b3c66f0cc2ed67ac59784c9cfb20e0a0af155831386224b8878603551fa03f7f21258c0ed64fcdbb1d61b227165b6879f7474348cf8d1adf663127d9
-MISC metadata.xml 1576 BLAKE2B 6eb7fa6965ac5c785bbdb8fa700374ec8723ac79a604f882c557cd53972f753f4a4f30712bf49becdd9d49cdd6d8753b900372c60a69d11ba8af042d836a0a5c SHA512 01013d392930b00c7e3958e9e05a0bdaa45524879676cf7c407399cf0adb404dcef83a8ba465dfc536409eb1fd7d6e28f2423e58cc5b2d1cfbcd032ae45a0b75
+EBUILD retroshare-0.6.5.ebuild 3924 BLAKE2B 899639f2a428d41f80a155c5d8641522377c07692eaccec0cb972616b3ee73966fc7ab97b7774f19e296b8a60f968b4bd64a4634f8fdae251a15633c00c47c63 SHA512 127a61c608f7e4bc2fadd301d0fcfe06cfedd462ce1db1b919f2ebc0ff141321e20bc0035e3316a74101864a40fb486ba379ab31549025f06091314d53c96c0c
+MISC metadata.xml 1758 BLAKE2B 7c3cea20af17ad1ba4c5a9923929ada21f986706bc2cc7b43512e272d01e10cb8cbbfa8556159402c9b6aa8165e0b8ff0befea34fa0186115b9af254a35be88f SHA512 b4f152eca444ff069446dbf78b40cf128ff36f6a01689d160b6399c631439489847585dcef3d7ee9afd8e72b5fd88ee8daaf0fd49df45efbc102ae85554efdae
diff --git a/net-p2p/retroshare/metadata.xml b/net-p2p/retroshare/metadata.xml
index 1e20d558f6ee..6f3c32a1f56b 100644
--- a/net-p2p/retroshare/metadata.xml
+++ b/net-p2p/retroshare/metadata.xml
@@ -23,10 +23,12 @@
<flag name="feedreader">Enables the Feedreader plugin</flag>
<flag name="gnome-keyring">Enables potentially insecure autologin capability via Gnome Keyring</flag>
<flag name="gui">Enables the GUI version of RetroShare</flag>
- <flag name="settings-api">Enables settings control via API</flag>
+ <flag name="jsonapi">Enables the new RetroShare JSON API</flag>
+ <flag name="service">Enables the new RetroShare service controllable only through JSON API</flag>
<flag name="sqlcipher">Enables GXS database encryption via SQLCipher</flag>
<flag name="voip">Enables VOIP plugin</flag>
<flag name="webui">Enables Web interface and API support</flag>
+ <flag name="xapian">Enables GXS content indexing and search through Xapian</flag>
</use>
<upstream>
<bugs-to>https://github.com/RetroShare/RetroShare/issues</bugs-to>
diff --git a/net-p2p/retroshare/retroshare-0.6.9999.ebuild b/net-p2p/retroshare/retroshare-0.6.5.ebuild
index a7718e73f904..0a7090d16613 100644
--- a/net-p2p/retroshare/retroshare-0.6.9999.ebuild
+++ b/net-p2p/retroshare/retroshare-0.6.5.ebuild
@@ -1,23 +1,24 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-EGIT_REPO_URI="https://github.com/RetroShare/RetroShare.git"
-inherit desktop git-r3 gnome2-utils qmake-utils versionator
+inherit desktop qmake-utils xdg-utils
DESCRIPTION="P2P private sharing application"
-HOMEPAGE="http://retroshare.net"
+HOMEPAGE="https://retroshare.cc"
+SRC_URI="https://github.com/RetroShare/RetroShare/releases/download/v${PV}/RetroShare-v${PV}-source-with-submodules.tar.gz -> ${P}.tar.gz"
# pegmarkdown can also be used with MIT
-LICENSE="AGPL-3 GPL-2 GPL-3 Apache-2.0 LGPL-2.1"
+LICENSE="AGPL-3 GPL-2 GPL-3 Apache-2.0 LGPL-3"
SLOT="0"
-KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
+
+IUSE="cli control-socket gnome-keyring +gui +jsonapi service +sqlcipher webui +xapian"
-IUSE="cli control-socket gnome-keyring +gui settings-api +sqlcipher +webui"
REQUIRED_USE="
- || ( cli gui )
- settings-api? ( || ( control-socket webui ) )"
+ || ( cli gui service )
+ service? ( jsonapi )"
RDEPEND="
app-arch/bzip2
@@ -40,16 +41,26 @@ RDEPEND="
x11-libs/libX11
x11-libs/libXScrnSaver
)
- settings-api? ( dev-qt/qtcore:5 )
+ service? ( dev-qt/qtcore:5 )
sqlcipher? ( dev-db/sqlcipher )
!sqlcipher? ( dev-db/sqlite:3 )
- webui? ( net-libs/libmicrohttpd )"
+ webui? ( net-libs/libmicrohttpd )
+ xapian? ( dev-libs/xapian )"
DEPEND="${RDEPEND}
gui? ( dev-qt/designer:5 )
+ jsonapi? (
+ app-doc/doxygen
+ dev-util/cmake
+ )
dev-qt/qtcore:5
virtual/pkgconfig
"
+src_unpack() {
+ default
+
+ mv RetroShare ${P}
+}
src_configure() {
local qConfigs=()
@@ -58,16 +69,30 @@ src_configure() {
qConfigs+=( $(usex control-socket '' 'no_')libresapilocalserver )
qConfigs+=( $(usex gnome-keyring '' 'no_')rs_autologin )
qConfigs+=( $(usex gui '' 'no_')retroshare_gui )
- qConfigs+=( $(usex settings-api '' 'no_')libresapi_settings )
+ qConfigs+=( $(usex jsonapi '' 'no_')rs_jsonapi )
+ qConfigs+=( $(usex service '' 'no_')retroshare_service )
qConfigs+=( $(usex sqlcipher '' 'no_')sqlcipher )
qConfigs+=( $(usex webui '' 'no_')libresapihttpserver )
+ qConfigs+=( $(usex xapian '' 'no_')rs_deep_search )
+
+ eqmake5 CONFIG+="${qConfigs[*]}" \
+ RS_MAJOR_VERSION=$(ver_cut 1) RS_MINOR_VERSION=$(ver_cut 2) \
+ RS_MINI_VERSION=$(ver_cut 3) RS_EXTRA_VERSION="-gentoo-${PR}"
+}
+
+src_compile() {
+ use jsonapi && {
+ nonfatal emake ||
+ elog "Due to a bug in RetroShare-v0.6.5 build system when JSON API is enabled, failure at first emake is normal"
+ }
- eqmake5 CONFIG+="${qConfigs[*]}"
+ emake
}
src_install() {
use cli && dobin retroshare-nogui/src/retroshare-nogui
use gui && dobin retroshare-gui/src/retroshare
+ use service && dobin retroshare-service/src/retroshare-service
insinto /usr/share/retroshare
doins libbitdht/src/bitdht/bdboot.txt
@@ -112,9 +137,9 @@ pkg_preinst() {
}
pkg_postinst() {
- gnome2_icon_cache_update
+ xdg_icon_cache_update
}
pkg_postrm() {
- gnome2_icon_cache_update
+ xdg_icon_cache_update
}