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 04A9F138334 for ; Wed, 17 Jul 2019 07:56:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1D04E079E; Wed, 17 Jul 2019 07:56:33 +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-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A340EE079E for ; Wed, 17 Jul 2019 07:56:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 E7815347E2F for ; Wed, 17 Jul 2019 07:56:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 58F6A58B for ; Wed, 17 Jul 2019 07:56:29 +0000 (UTC) From: "Kent Fredric" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kent Fredric" Message-ID: <1563350181.7cb5bbd854888f64490382aad89fa8f5acafd417.kentnl@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Pango/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-perl/Pango/Pango-1.227.0-r1.ebuild X-VCS-Directories: dev-perl/Pango/ X-VCS-Committer: kentnl X-VCS-Committer-Name: Kent Fredric X-VCS-Revision: 7cb5bbd854888f64490382aad89fa8f5acafd417 X-VCS-Branch: master Date: Wed, 17 Jul 2019 07:56:29 +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: 9fd3e24f-b798-4c4a-bfdc-3c740ec1b70e X-Archives-Hash: baa4e917512a9ba64f2907840be3651a commit: 7cb5bbd854888f64490382aad89fa8f5acafd417 Author: Kent Fredric gentoo org> AuthorDate: Wed Jul 17 07:56:05 2019 +0000 Commit: Kent Fredric gentoo org> CommitDate: Wed Jul 17 07:56:21 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb5bbd8 dev-perl/Pango: Disable running X11 tests w/ USE=minimal bug #662320 When USE="minimal", various deps are omitted to break cycles. Among these are Xvfb, which means virtx can't be imagined to work. This change avoids running live X11 tests with Xvfb in this condition. To avoid this resulting in a total degradation of testing-safety, a rudimentary "it compiles!" test has been inserted that ensures Pango.pm actually loads at all. Bug: https://bugs.gentoo.org/662320 20 Package-Manager: Portage-2.3.66, Repoman-2.3.16 Signed-off-by: Kent Fredric gentoo.org> dev-perl/Pango/Pango-1.227.0-r1.ebuild | 73 ++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/dev-perl/Pango/Pango-1.227.0-r1.ebuild b/dev-perl/Pango/Pango-1.227.0-r1.ebuild new file mode 100644 index 00000000000..2a640574dac --- /dev/null +++ b/dev-perl/Pango/Pango-1.227.0-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=XAOC +DIST_VERSION=1.227 +VIRTUALX_REQUIRED=manual + +inherit perl-module virtualx + +DESCRIPTION="Layout and render international text" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="examples test minimal" + +RDEPEND=" + >=dev-perl/glib-perl-1.220.0 + >=dev-perl/Cairo-1.0.0 + >=x11-libs/pango-1.0.0 +" +DEPEND=" + ${RDEPEND} + virtual/perl-ExtUtils-MakeMaker + >=dev-perl/ExtUtils-Depends-0.300.0 + >=dev-perl/ExtUtils-PkgConfig-1.30.0 + test? ( + virtual/perl-Test-Simple + !minimal? ( + >=dev-perl/Gtk2-1.220.0 + $VIRTUALX_DEPEND + ) + ) +" + +src_prepare() { + perl-module_src_prepare + sed -i -e "s:exit 0:exit 1:g" "${S}"/Makefile.PL || die "sed failed" +} +src_install() { + local mydoc + mydoc=("NEWS") + perl-module_src_install + if use examples; then + docompress -x /usr/share/doc/${PF}/examples + insinto /usr/share/doc/${PF}/examples + doins examples/* + fi +} +src_test() { + local MODULES=( "Pango ${DIST_VERSION}" ) + local failed=() + for dep in "${MODULES[@]}"; do + ebegin "Compile testing ${dep}" + perl -Mblib="${S}/blib" -M"${dep} ()" -e1 + eend $? || failed+=( "$dep" ) + done + if [[ ${failed[@]} ]]; then + echo + eerror "One or more modules failed compile:"; + for dep in "${failed[@]}"; do + eerror " ${dep}" + done + die "Failing due to module compilation errors"; + fi + if use minimal; then + einfo "Skipping builtin tests due to USE=minimal" + else + virtx perl-module_src_test + fi +}