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 4C53A139694 for ; Sun, 11 Jun 2017 11:47:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4272621C039; Sun, 11 Jun 2017 11:47:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C3F321C039 for ; Sun, 11 Jun 2017 11:47:46 +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 E77A8341A36 for ; Sun, 11 Jun 2017 11:47:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B622747E for ; Sun, 11 Jun 2017 11:47:43 +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: <1497181639.f33655f96805bd97322879065539c8445757cb88.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/qxmpp/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild X-VCS-Directories: net-libs/qxmpp/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f33655f96805bd97322879065539c8445757cb88 X-VCS-Branch: master Date: Sun, 11 Jun 2017 11:47:43 +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-Archives-Salt: 9a2633d5-ae6e-4429-a9fe-e64acbe6e60b X-Archives-Hash: 7243c805bf230e108f90bb50591a0ff6 commit: f33655f96805bd97322879065539c8445757cb88 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun May 28 19:11:43 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jun 11 11:47:19 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f33655f9 net-libs/qxmpp: Revbump without USE=qt4,qt5 Package-Manager: Portage-2.3.5, Repoman-2.3.1 net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild | 72 ++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild b/net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild new file mode 100644 index 00000000000..688a4490a70 --- /dev/null +++ b/net-libs/qxmpp/qxmpp-0.9.3-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit qmake-utils + +DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework" +HOMEPAGE="https://github.com/qxmpp-project/qxmpp/" +SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="debug doc opus +speex test theora vpx" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtxml:5 + opus? ( media-libs/opus ) + speex? ( media-libs/speex ) + theora? ( media-libs/libtheora ) + vpx? ( media-libs/libvpx ) +" +DEPEND="${RDEPEND} + test? ( dev-qt/qttest:5 ) +" + +src_prepare(){ + if ! use doc; then + sed -i \ + -e '/SUBDIRS/s/doc//' \ + -e '/INSTALLS/d' \ + qxmpp.pro || die "sed for removing docs failed" + fi + if ! use test; then + sed -i -e '/SUBDIRS/s/tests//' \ + qxmpp.pro || die "sed for removing tests failed" + fi + # There is no point in building examples. Also, they require dev-qt/qtgui + sed -i -e '/SUBDIRS/s/examples//' \ + qxmpp.pro || die "sed for removing examples failed" + default_src_prepare +} + +src_configure(){ + local conf_speex + local conf_theora + local conf_vpx + + use opus && conf_opus="QXMPP_USE_OPUS=1" + use speex && conf_speex="QXMPP_USE_SPEEX=1" + use theora && conf_theora="QXMPP_USE_THEORA=1" + use vpx && conf_vpx="QXMPP_USE_VPX=1" + + eqmake5 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_opus}" "${conf_speex}" "${conf_theora}" "${conf_vpx}" +} + +src_install() { + emake INSTALL_ROOT="${D}" install + einstalldocs + if use doc; then + # Use proper path for documentation + mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed" + fi +} + +src_test() { + MAKEOPTS="-j1" # random tests fail otherwise + default_src_test +}