You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.1 KiB
125 lines
3.1 KiB
7 years ago
|
# Copyright 1999-2018 Gentoo Foundation
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
PLOCALES="be bg ca cs de en eo es et fa fi fr he hu it ja kk mk nl pl pt pt_BR ru sk sl sr@latin sv sw uk ur_PK vi zh_CN zh_TW"
|
||
|
PLOCALE_BACKUP="en"
|
||
|
|
||
6 years ago
|
inherit l10n qmake-utils gnome2-utils xdg-utils
|
||
7 years ago
|
|
||
|
DESCRIPTION="Qt XMPP client"
|
||
6 years ago
|
HOMEPAGE="https://psi-im.org"
|
||
7 years ago
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz
|
||
|
https://github.com/psi-im/psi-l10n/archive/${PV}.tar.gz -> psi-l10n-${PV}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
6 years ago
|
IUSE="aspell crypt dbus debug doc enchant +hunspell webengine webkit whiteboarding xscreensaver"
|
||
7 years ago
|
|
||
|
REQUIRED_USE="
|
||
|
?? ( aspell enchant hunspell )
|
||
|
webengine? ( !webkit )
|
||
|
"
|
||
|
|
||
|
RDEPEND="
|
||
6 years ago
|
app-crypt/qca:2[ssl]
|
||
7 years ago
|
dev-qt/qtconcurrent:5
|
||
|
dev-qt/qtcore:5
|
||
|
dev-qt/qtgui:5
|
||
|
dev-qt/qtmultimedia:5
|
||
|
dev-qt/qtnetwork:5
|
||
|
dev-qt/qtwidgets:5
|
||
|
dev-qt/qtx11extras:5
|
||
|
dev-qt/qtxml:5
|
||
6 years ago
|
net-dns/libidn:0
|
||
7 years ago
|
sys-libs/zlib[minizip]
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libxcb
|
||
|
aspell? ( app-text/aspell )
|
||
|
dbus? ( dev-qt/qtdbus:5 )
|
||
|
enchant? ( >=app-text/enchant-1.3.0 )
|
||
|
hunspell? ( app-text/hunspell:= )
|
||
|
webengine? (
|
||
6 years ago
|
dev-qt/qtwebchannel:5
|
||
|
dev-qt/qtwebengine:5[widgets]
|
||
7 years ago
|
)
|
||
|
webkit? ( dev-qt/qtwebkit:5 )
|
||
|
whiteboarding? ( dev-qt/qtsvg:5 )
|
||
|
xscreensaver? ( x11-libs/libXScrnSaver )
|
||
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
dev-qt/linguist-tools:5
|
||
|
virtual/pkgconfig
|
||
|
doc? ( app-doc/doxygen )
|
||
|
"
|
||
|
|
||
|
RESTRICT="test"
|
||
|
|
||
|
src_configure() {
|
||
|
CONF=(
|
||
6 years ago
|
--prefix="${EPREFIX}"/usr
|
||
|
--libdir="${EPREFIX}"/usr/$(get_libdir)
|
||
7 years ago
|
--no-separate-debug-info
|
||
|
--qtdir="$(qt5_get_bindir)/.."
|
||
|
$(use_enable aspell)
|
||
|
$(use_enable dbus qdbus)
|
||
|
$(use_enable enchant)
|
||
|
$(use_enable hunspell)
|
||
|
$(use_enable xscreensaver xss)
|
||
|
$(use_enable whiteboarding)
|
||
|
)
|
||
|
|
||
|
use debug && CONF+=("--debug")
|
||
|
use webengine && CONF+=("--enable-webkit" "--with-webkit=qtwebengine")
|
||
|
use webkit && CONF+=("--enable-webkit" "--with-webkit=qtwebkit")
|
||
|
|
||
6 years ago
|
# This may generate warnings if passed option already matches with default.
|
||
|
# Just ignore them. It's how qconf-based configure works and will be fixed in
|
||
|
# future qconf versions.
|
||
|
./configure "${CONF[@]}" || die "configure failed"
|
||
7 years ago
|
|
||
|
eqmake5 psi.pro
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake
|
||
|
use doc && emake -C doc api_public
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake INSTALL_ROOT="${D}" install
|
||
|
|
||
|
# this way the docs will be installed in the standard gentoo dir
|
||
|
rm "${ED}"/usr/share/psi/{COPYING,README} || die "Installed file set seems to be changed by upstream"
|
||
|
newdoc iconsets/roster/README README.roster
|
||
|
newdoc iconsets/system/README README.system
|
||
|
newdoc certs/README README.certs
|
||
|
dodoc README
|
||
|
|
||
|
use doc && HTML_DOCS=( doc/api/. )
|
||
|
einstalldocs
|
||
|
|
||
|
# install translations
|
||
|
local mylrelease="$(qt5_get_bindir)"/lrelease
|
||
|
cd "${WORKDIR}/psi-l10n-${PV}" || die
|
||
|
insinto /usr/share/psi
|
||
|
install_locale() {
|
||
|
"${mylrelease}" "translations/${PN}_${1}.ts" || die "lrelease ${1} failed"
|
||
|
doins "translations/${PN}_${1}.qm"
|
||
|
}
|
||
|
l10n_for_each_locale_do install_locale
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
6 years ago
|
gnome2_icon_cache_update
|
||
7 years ago
|
xdg_desktop_database_update
|
||
6 years ago
|
einfo "For GPG support make sure app-crypt/qca is compiled with gpg USE flag."
|
||
7 years ago
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
6 years ago
|
gnome2_icon_cache_update
|
||
7 years ago
|
xdg_desktop_database_update
|
||
|
}
|