From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C264C138350 for ; Mon, 16 Mar 2020 21:29:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 002D4E09A2; Mon, 16 Mar 2020 21:29:24 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6B1AE09A2 for ; Mon, 16 Mar 2020 21:29:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 977C134F238 for ; Mon, 16 Mar 2020 21:29:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E532219F for ; Mon, 16 Mar 2020 21:29:19 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1584394017.e14316111a4a11e4f782f4fc7f00929401ccce28.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/psi/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/psi/metadata.xml net-im/psi/psi-9999.ebuild X-VCS-Directories: net-im/psi/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: e14316111a4a11e4f782f4fc7f00929401ccce28 X-VCS-Branch: master Date: Mon, 16 Mar 2020 21:29:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d36d06dd-d45f-4597-aa20-08e7ac009c33 X-Archives-Hash: 976dfe2f167eadbdc517a0a8964c01b0 commit: e14316111a4a11e4f782f4fc7f00929401ccce28 Author: Sergey Ilinykh gmail com> AuthorDate: Sat Mar 14 12:26:44 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Mar 16 21:26:57 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1431611 net-im/psi: sync with upstream Signed-off-by: Sergey Ilinykh gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14952 Signed-off-by: Andreas Sturmlechner gentoo.org> net-im/psi/metadata.xml | 25 +++++++------ net-im/psi/psi-9999.ebuild | 92 ++++++++++++++++------------------------------ 2 files changed, 46 insertions(+), 71 deletions(-) diff --git a/net-im/psi/metadata.xml b/net-im/psi/metadata.xml index 96ff1512239..d1fdaf8e1f5 100644 --- a/net-im/psi/metadata.xml +++ b/net-im/psi/metadata.xml @@ -1,4 +1,4 @@ - + @@ -9,17 +9,20 @@ proxy-maint@gentoo.org Proxy Maintainers - Psi is a very good XMPP client that uses Qt + + Psi is a multi-platform XMPP client based on Qt and supports a wide range of XMPP extensions. It is extremely configurable and extendable with plugins. + - Enable spellchecking using app-text/aspell - Enable spellchecking using app-text/enchant - Enable Psi+ patcheset - Enable spellchecking using app-text/hunspell - Install additional iconsets, some of them has not clear licensing - Enable psi-new-history extras patch - Use dev-qt/qtwebengine instead of dev-qt/qtwebkit - Enable themed, html-based chatlogs - Enable experimental interactive SVG drawing + Enable spellchecking using app-text/aspell + Enable spellchecking using app-text/enchant + Enable Psi+ patchset + Enable spellchecking using app-text/hunspell + Install additional iconsets, some of them have no clear licensing + Enable storing password in system keyring manager + Enable themed, html-based chatlogs using dev-qt/qtwebengine + Enable themed, html-based chatlogs using dev-qt/qtwebkit + Enable experimental interactive SVG drawing + Use X screensaver protocol extension to monitor idle/active status based on mouse/keyboard events psi-im/psi diff --git a/net-im/psi/psi-9999.ebuild b/net-im/psi/psi-9999.ebuild index e1a2ea1f572..429334fabc9 100644 --- a/net-im/psi/psi-9999.ebuild +++ b/net-im/psi/psi-9999.ebuild @@ -3,10 +3,10 @@ EAPI=7 -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" +PLOCALES="be bg ca cs de el en eo es et fa fi fr he hu it ja kk mk nl pl pt_BR pt ru sk sl sr@latin sv sw uk ur_PK vi zh_CN zh_TW" PLOCALE_BACKUP="en" -inherit l10n git-r3 qmake-utils xdg +inherit git-r3 cmake l10n qmake-utils xdg DESCRIPTION="Qt XMPP client" HOMEPAGE="https://psi-im.org" @@ -20,13 +20,11 @@ EGIT_MIN_CLONE_TYPE="single" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="aspell crypt dbus debug doc enchant extras +hunspell iconsets sql webengine webkit whiteboarding xscreensaver" +IUSE="aspell crypt debug doc enchant extras +hunspell iconsets keyring webengine webkit xscreensaver" REQUIRED_USE=" ?? ( aspell enchant hunspell ) iconsets? ( extras ) - sql? ( extras ) - webengine? ( !webkit ) " BDEPEND=" @@ -39,10 +37,12 @@ DEPEND=" app-crypt/qca:2[ssl] dev-qt/qtconcurrent:5 dev-qt/qtcore:5 + dev-qt/qtdbus:5 dev-qt/qtgui:5 dev-qt/qtmultimedia:5 dev-qt/qtnetwork:5 dev-qt/qtsql:5[sqlite] + dev-qt/qtsvg:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 dev-qt/qtxml:5 @@ -51,20 +51,19 @@ DEPEND=" x11-libs/libX11 x11-libs/libxcb aspell? ( app-text/aspell ) - dbus? ( dev-qt/qtdbus:5 ) - enchant? ( >=app-text/enchant-1.3.0:0 ) + enchant? ( app-text/enchant:2 ) hunspell? ( app-text/hunspell:= ) + keyring? ( dev-libs/qtkeychain:= ) webengine? ( dev-qt/qtwebchannel:5 dev-qt/qtwebengine:5[widgets] net-libs/http-parser ) webkit? ( dev-qt/qtwebkit:5 ) - whiteboarding? ( dev-qt/qtsvg:5 ) - xscreensaver? ( x11-libs/libXScrnSaver ) " RDEPEND="${DEPEND} dev-qt/qtimageformats + crypt? ( app-crypt/qca[gpg] ) " RESTRICT="test iconsets? ( bindist )" @@ -83,6 +82,8 @@ pkg_setup() { ewarn "and has not clear licensing." ewarn "Possibly this build is not redistributable in some countries." fi + + EGIT_REPO_URI="${PSI_PLUS_URI}/${MY_PN}-snapshots.git" fi } @@ -95,75 +96,46 @@ src_unpack() { EGIT_CHECKOUT_DIR="${WORKDIR}/psi-l10n" git-r3_src_unpack - if use extras; then + if use iconsets; then unset EGIT_BRANCH EGIT_COMMIT - EGIT_CHECKOUT_DIR="${WORKDIR}/psi-plus" \ - EGIT_REPO_URI="${PSI_PLUS_URI}/main.git" \ + EGIT_CHECKOUT_DIR="${WORKDIR}/resources" \ + EGIT_REPO_URI="${PSI_URI}/resources.git" \ git-r3_src_unpack - - if use iconsets; then - unset EGIT_BRANCH EGIT_COMMIT - EGIT_CHECKOUT_DIR="${WORKDIR}/resources" \ - EGIT_REPO_URI="${PSI_PLUS_URI}/resources.git" \ - git-r3_src_unpack - fi fi } src_prepare() { - default - if use extras; then - cp -a "${WORKDIR}/psi-plus/iconsets" "${S}" || die "failed to copy iconsets" - if use iconsets; then - cp -a "${WORKDIR}/resources/iconsets" "${S}" || die "failed to copy additional iconsets" - fi - - eapply "${WORKDIR}/psi-plus/patches"/*.diff - use sql && eapply "${WORKDIR}/psi-plus/patches/dev/psi-new-history.patch" - - vergen="${WORKDIR}/psi-plus/admin/psi-plus-nightly-version" - features="$(use webkit && echo '--webkit') $(use webengine && echo '--webengine') $(use sql && echo '--sql')" - NIGHTLY_VER=$("${vergen}" ./ $features) - elog "Prepared version: ${NIGHTLY_VER}" - echo "${NIGHTLY_VER}" > version || die "Failed to write version file" - - qconf || die "Failed to create ./configure." + cmake_src_prepare + if use iconsets; then + cp -a "${WORKDIR}/resources/iconsets" "${S}" || die "failed to copy additional iconsets" fi } src_configure() { - CONF=( - --prefix="${EPREFIX}"/usr - --libdir="${EPREFIX}"/usr/$(get_libdir) - --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) + local chattype=basic + use webengine && chattype=webengine + use webkit && chattype=webkit + + local mycmakeargs=( + -DUSE_ASPELL=$(usex aspell) + -DUSE_ENCHANT=$(usex enchant) + -DUSE_HUNSPELL=$(usex hunspell) + -DINSTALL_PLUGINS_SDK=1 + -DUSE_KEYCHAIN=$(usex keyring) + -DCHAT_TYPE=$chattype + -DUSE_XSS=$(usex xscreensaver) + -DPSI_PLUS=$(usex extras) ) - - use debug && CONF+=("--debug") - use webengine && CONF+=("--enable-webkit" "--with-webkit=qtwebengine") - use webkit && CONF+=("--enable-webkit" "--with-webkit=qtwebkit") - - # 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" - - eqmake5 psi.pro + cmake_src_configure } src_compile() { - emake + cmake_src_compile use doc && emake -C doc api_public } src_install() { - emake INSTALL_ROOT="${D}" install + cmake_src_install # this way the docs will be installed in the standard gentoo dir rm "${ED}"/usr/share/${MY_PN}/{COPYING,README.html} || die "doc files set seems to have changed"