mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 16:38:01 +00:00
Bug: https://bugs.gentoo.org/473598 Bug: https://bugs.gentoo.org/720224 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
69 lines
1.4 KiB
Bash
69 lines
1.4 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DIST_AUTHOR=XAOC
|
|
DIST_VERSION=1.227
|
|
DIST_EXAMPLES=( "examples/*" )
|
|
VIRTUALX_REQUIRED=manual
|
|
|
|
inherit perl-module virtualx
|
|
|
|
DESCRIPTION="Layout and render international text"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ppc64 ~riscv ~sparc x86 ~x64-macos"
|
|
IUSE="+minimal"
|
|
|
|
RDEPEND="
|
|
>=dev-perl/glib-perl-1.220.0
|
|
>=dev-perl/Cairo-1.0.0
|
|
>=x11-libs/pango-1.0.0
|
|
"
|
|
BDEPEND="
|
|
${RDEPEND}
|
|
>=dev-perl/ExtUtils-Depends-0.300.0
|
|
>=dev-perl/ExtUtils-PkgConfig-1.30.0
|
|
test? (
|
|
!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
|
|
}
|
|
|
|
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
|
|
}
|