diff options
author | 2024-05-22 02:50:47 +0100 | |
---|---|---|
committer | 2024-05-22 03:17:52 +0100 | |
commit | a25b9997efb1aace98f304a7c1739435b65b883a (patch) | |
tree | 50a1eecdc1cc358e42d1c9049299f65b9447a35c /dev-perl/Alien-LibGumbo | |
parent | net-misc/freerdp: add -Wno-error=incompatible-pointer-types to CFLAGS (diff) | |
download | gentoo-a25b9997efb1aace98f304a7c1739435b65b883a.tar.gz gentoo-a25b9997efb1aace98f304a7c1739435b65b883a.tar.bz2 gentoo-a25b9997efb1aace98f304a7c1739435b65b883a.zip |
dev-perl/Alien-LibGumbo: EAPI 8, rely on eclass impls
This covers more variables/args, etc.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl/Alien-LibGumbo')
-rw-r--r-- | dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r4.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r4.ebuild b/dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r4.ebuild new file mode 100644 index 000000000000..fa2a8ba372d3 --- /dev/null +++ b/dev-perl/Alien-LibGumbo/Alien-LibGumbo-0.50.0-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=RUZ +DIST_VERSION=0.05 +inherit perl-module + +DESCRIPTION="Gumbo parser library" + +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +# Alien-Build for Alien::Base +RDEPEND=" + >=dev-perl/Alien-Build-0.5.0 + >=dev-perl/File-ShareDir-1.30.0 + >=dev-perl/Path-Class-0.13.0 + dev-libs/gumbo:= +" +DEPEND=" + dev-libs/gumbo:= + dev-perl/Module-Build +" +BDEPEND="${RDEPEND} + >=dev-perl/Alien-Base-ModuleBuild-0.5.0 + >=dev-perl/Module-Build-0.420.0 +" + +src_test() { + local MODULES=( + "Alien::LibGumbo ${DIST_VERSION}" + "Alien::LibGumbo::ConfigData" + "Alien::LibGumbo::Install::Files" + ) + 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 + # Currently useless + # perl-module_src_test +} |