public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Kent Fredric" <kentnl@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Pango/
Date: Wed, 17 Jul 2019 07:56:29 +0000 (UTC)	[thread overview]
Message-ID: <1563350181.7cb5bbd854888f64490382aad89fa8f5acafd417.kentnl@gentoo> (raw)

commit:     7cb5bbd854888f64490382aad89fa8f5acafd417
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 17 07:56:05 2019 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> 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 <kentnl <AT> 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
+}


             reply	other threads:[~2019-07-17  7:56 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-17  7:56 Kent Fredric [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-12 18:37 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Pango/ Jakov Smolić
2021-07-23 21:01 Andreas K. Hüttel
2021-05-21  0:05 Andreas K. Hüttel
2020-07-23  3:34 Kent Fredric
2020-04-15 13:46 Kent Fredric
2020-02-09 12:24 Mart Raudsepp
2019-11-17  4:02 Matt Turner
2019-11-13 11:28 Agostino Sarubbo
2019-10-17 11:23 Agostino Sarubbo
2019-10-17 10:32 Agostino Sarubbo
2019-10-17 10:29 Agostino Sarubbo
2019-10-17 10:25 Agostino Sarubbo
2019-10-17  9:53 Agostino Sarubbo
2018-12-27 18:48 Fabian Groffen
2017-03-19  4:12 Kent Fredric
2017-02-04 17:33 Andreas Hüttel
2017-02-03 21:48 Jeroen Roovers
2016-12-10 18:01 Kent Fredric
2016-05-31 13:51 Tobias Klausmann
2016-04-10 18:12 Andreas Hüttel
2016-03-14 23:07 Andreas Hüttel
2016-03-06  9:21 Mikle Kolyada

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1563350181.7cb5bbd854888f64490382aad89fa8f5acafd417.kentnl@gentoo \
    --to=kentnl@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox