--- /usr/portage/net-im/psi/psi-1.3.ebuild 2017-09-24 11:57:22.000000000 +0000 +++ psi-1.3.ebuild 2018-03-23 02:19:13.649326916 +0000 @@ -11,12 +11,13 @@ DESCRIPTION="Qt XMPP client" HOMEPAGE="http://psi-im.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz - https://github.com/psi-im/psi-l10n/archive/${PV}.tar.gz -> psi-l10n-${PV}.tar.gz" + https://github.com/psi-im/psi-l10n/archive/${PV}.tar.gz -> psi-l10n-${PV}.tar.gz + otr? ( https://github.com/psi-im/plugins/archive/${PV}.tar.gz -> ${PN}-plugins-${PV}.tar.gz )" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="aspell crypt dbus debug doc enchant +hunspell ssl webengine webkit whiteboarding xscreensaver" +IUSE="aspell crypt dbus debug doc enchant +hunspell otr ssl webengine webkit whiteboarding xscreensaver" # qconf generates not quite compatible configure scripts QA_CONFIGURE_OPTIONS=".*" @@ -44,6 +45,12 @@ dbus? ( dev-qt/qtdbus:5 ) enchant? ( >=app-text/enchant-1.3.0 ) hunspell? ( app-text/hunspell:= ) + otr? ( + app-text/htmltidy + dev-libs/libgcrypt + dev-libs/libgpg-error + net-libs/libotr + ) webengine? ( >=dev-qt/qtwebchannel-5.7:5 >=dev-qt/qtwebengine-5.7:5[widgets] @@ -64,6 +71,12 @@ RESTRICT="test" +src_prepare() { + mv "${WORKDIR}/plugins-${PV}/generic" src/plugins/ + + default +} + src_configure() { CONF=( --no-separate-debug-info @@ -83,11 +96,14 @@ econf "${CONF[@]}" eqmake5 psi.pro + + use otr && ( cd src/plugins/generic/otrplugin/ && eqmake5 otrplugin.pro ) } src_compile() { emake use doc && emake -C doc api_public + use otr && emake -C src/plugins/generic/otrplugin } src_install() { @@ -103,6 +119,9 @@ use doc && HTML_DOCS=( doc/api/. ) einstalldocs + insinto /usr/$(get_libdir)/psi/plugins + use otr && doins src/plugins/generic/otrplugin/libotrplugin.so + # install translations local mylrelease="$(qt5_get_bindir)"/lrelease cd "${WORKDIR}/psi-l10n-${PV}" || die