# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DIST_AUTHOR=PEVANS
DIST_VERSION=0.46
inherit flag-o-matic perl-module

DESCRIPTION="XS functions to assist in parsing keyword syntax"

SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"

RDEPEND="
	dev-perl/File-ShareDir
"
BDEPEND="
	>=dev-perl/ExtUtils-CChecker-0.110.0
	>=dev-perl/Module-Build-0.400.400
	virtual/perl-ExtUtils-CBuilder
	>=virtual/perl-ExtUtils-ParseXS-3.160.0
	test? ( virtual/perl-Test2-Suite )
"

src_configure() {
	# https://rt.cpan.org/Ticket/Display.html?id=157196
	append-cflags -std=gnu17

	perl-module_src_configure
}