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 338CF138350 for ; Sun, 19 Jan 2020 23:53:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5CEFE09E4; Sun, 19 Jan 2020 23:53:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 926BCE09DC for ; Sun, 19 Jan 2020 23:53:35 +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 E2E1D34E2B4 for ; Sun, 19 Jan 2020 23:53:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21D0AE7 for ; Sun, 19 Jan 2020 23:53:30 +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: <1579477890.aad176a473e4f8fa39940ccabb2daae0f2deafda.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/libcommuni/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild X-VCS-Directories: net-im/libcommuni/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: aad176a473e4f8fa39940ccabb2daae0f2deafda X-VCS-Branch: master Date: Sun, 19 Jan 2020 23:53:30 +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: 15471f7a-46a3-459e-9136-7199423a2b54 X-Archives-Hash: 51f0c5834a513e90259bd4c4039586d1 commit: aad176a473e4f8fa39940ccabb2daae0f2deafda Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Jan 15 20:35:43 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jan 19 23:51:30 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aad176a4 net-im/libcommuni: Prepare for dev-qt/qtgui[xcb -> X] Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner gentoo.org> .../libcommuni-3.5.0_p20190110-r1.ebuild | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild b/net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild new file mode 100644 index 00000000000..0e061171fd0 --- /dev/null +++ b/net-im/libcommuni/libcommuni-3.5.0_p20190110-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +EGIT_COMMIT="88bb0fcdaab5bdd1176a3b6b485a6415a137ec27" + +inherit qmake-utils + +DESCRIPTION="A cross-platform IRC framework written with Qt" +HOMEPAGE="https://communi.github.io/" +SRC_URI="https://github.com/communi/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="examples qml test +uchardet" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + examples? ( || ( + dev-qt/qtgui:5[X(-)] + dev-qt/qtgui:5[xcb(-)] + ) ) + uchardet? ( app-i18n/uchardet ) + !uchardet? ( dev-libs/icu:= ) +" + +DEPEND=" + ${RDEPEND} + test? ( dev-qt/qttest:5 ) +" + +S="${WORKDIR}/${PN}-${EGIT_COMMIT}" + +src_prepare() { + default + + # Currently the test tst_IrcLagTimer fails, so disabling + # See: https://github.com/communi/libcommuni/issues/63 + sed -e '/irclagtimer/d' -i tests/auto/auto.pro || die +} + +src_configure() { + local myqmakeargs=( libcommuni.pro + # Disables compile run-time benchmarks, as they don't make any sense + -config no_benchmarks + # Is needed for fixing the QA Notice: The following files contain insecure RUNPATHs + -config no_rpath + # Compile libcommuni always in Release mode, as Debug seems to do nothing + -config release + # Don't silence all compile messages + -config verbose + -config $(usex examples '' 'no_')examples + -config $(usex qml '' 'no_')install_imports + -config $(usex qml '' 'no_')install_qml + -config $(usex test '' 'no_')tests + -config $(usex uchardet 'no_' '')icu + -config $(usex uchardet '' 'no_')uchardet ) + + eqmake5 "${myqmakeargs[@]}" +} + +src_test() { + # This is a hack to delete the existing LD_LIBRARY_PATH and set a new one, + # otherwise a test will fail, because it uses the system installed lib instead of the new compiled lib. + # The test will fail, when libcommuni is emerged with USE="uchardet" and + # libcommuni is already installed with USE="-uchardat", or the other way around. + find "${S}" -type f -name 'target_wrapper.sh' -exec sed -i -e "/.*LD_LIBRARY_PATH.*/d" {} \; || die + local -x LD_LIBRARY_PATH="${S}/lib" + + default +} + +src_install() { + emake install INSTALL_ROOT="${D}" + + if use examples; then + local examples=( "bot" "client" "minimal" "qmlbot" "quick" ) + for example in ${examples[@]}; do + newbin examples/"${example}"/"${example}" libcommuni."${example}" + done + fi + + einstalldocs +}