[net-im/spectrum2] drop twitter, sync

This commit is contained in:
Robert Förster 2023-08-21 23:56:21 +02:00
parent b142cb651a
commit 9a1551004a

View File

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
@ -20,21 +20,20 @@ HOMEPAGE="https://www.spectrum.im"
LICENSE="GPL-2+" LICENSE="GPL-2+"
SLOT="0" SLOT="0"
IUSE="doc frotz irc mysql postgres purple sms +sqlite test twitter whatsapp xmpp" IUSE="doc frotz irc mysql postgres purple sms +sqlite test whatsapp xmpp"
REQUIRED_USE=" REQUIRED_USE="
|| ( mysql postgres sqlite ) || ( mysql postgres sqlite )
test? ( irc ) test? ( irc )
" "
RESTRICT="!test? ( test )" RESTRICT="!test? ( test )"
# https://github.com/SpectrumIM/spectrum2/issues/464 for log4cxx version limit
RDEPEND=" RDEPEND="
acct-group/spectrum acct-group/spectrum
acct-user/spectrum acct-user/spectrum
dev-libs/boost:=[nls] dev-libs/boost:=[nls]
dev-libs/expat dev-libs/expat
dev-libs/libev:= dev-libs/libev:=
<dev-libs/log4cxx-1.0.0:= >=dev-libs/log4cxx-1.0.0:=
dev-libs/jsoncpp:= dev-libs/jsoncpp:=
dev-libs/openssl:= dev-libs/openssl:=
dev-libs/popt dev-libs/popt
@ -58,7 +57,6 @@ RDEPEND="
) )
sms? ( app-mobilephone/smstools ) sms? ( app-mobilephone/smstools )
sqlite? ( dev-db/sqlite:3 ) sqlite? ( dev-db/sqlite:3 )
twitter? ( net-misc/curl )
whatsapp? ( net-im/transwhat )" whatsapp? ( net-im/transwhat )"
DEPEND=" DEPEND="
@ -89,7 +87,6 @@ src_configure() {
-DENABLE_SMSTOOLS3="$(usex sms)" -DENABLE_SMSTOOLS3="$(usex sms)"
-DENABLE_SQLITE3="$(usex sqlite)" -DENABLE_SQLITE3="$(usex sqlite)"
-DENABLE_TESTS="$(usex test)" -DENABLE_TESTS="$(usex test)"
-DENABLE_TWITTER="$(usex twitter)"
-DENABLE_XMPP="$(usex xmpp)" -DENABLE_XMPP="$(usex xmpp)"
) )
@ -117,4 +114,15 @@ src_install() {
pkg_postinst() { pkg_postinst() {
tmpfiles_process spectrum2.conf tmpfiles_process spectrum2.conf
if [[ ${REPLACING_VERSIONS} ]]; then
for v in ${REPLACING_VERSIONS}; do
if ver_test "${v}" -lt 2.2.0; then
ewarn "Starting with Release 2.2.0, the path for spectrum2"
ewarn "executable helper files has been changed from '/usr/bin'"
ewarn "to '/usr/libexec'. Please update your config files!"
break
fi
done
fi
} }