commit: 29be1d491122d8af946ad1346020c7f089b40641 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Wed Feb 4 09:39:48 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Feb 6 00:04:32 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29be1d49
dev-perl/XML-LibXSLT: fix pkg-config Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/45637 Closes: https://github.com/gentoo/gentoo/pull/45637 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-perl/XML-LibXSLT/XML-LibXSLT-2.3.0-r1.ebuild | 16 ++++++++++++-- .../files/XML-LibXSLT-2.3.0-fix_pkgconfig.patch | 25 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/dev-perl/XML-LibXSLT/XML-LibXSLT-2.3.0-r1.ebuild b/dev-perl/XML-LibXSLT/XML-LibXSLT-2.3.0-r1.ebuild index fa571fa549ba..2527867f9646 100644 --- a/dev-perl/XML-LibXSLT/XML-LibXSLT-2.3.0-r1.ebuild +++ b/dev-perl/XML-LibXSLT/XML-LibXSLT-2.3.0-r1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DIST_AUTHOR=SHLOMIF DIST_VERSION=2.003000 -inherit perl-module +inherit perl-module toolchain-funcs DESCRIPTION="A Perl module to parse XSL Transformational sheets using GNOME's libxslt" @@ -28,3 +28,15 @@ PERL_RM_FILES=( "t/cpan-changes.t" "t/pod.t" "t/style-trailing-space.t" ) + +PATCHES=( + # PR pending https://github.com/shlomif/perl-XML-LibXSLT/pull/9.patch + "${FILESDIR}"/${PN}-2.3.0-fix_pkgconfig.patch +) + +src_configure() { + # used to find libxslt + tc-export PKG_CONFIG + + perl-module_src_configure +} diff --git a/dev-perl/XML-LibXSLT/files/XML-LibXSLT-2.3.0-fix_pkgconfig.patch b/dev-perl/XML-LibXSLT/files/XML-LibXSLT-2.3.0-fix_pkgconfig.patch new file mode 100644 index 000000000000..aa2549d1e407 --- /dev/null +++ b/dev-perl/XML-LibXSLT/files/XML-LibXSLT-2.3.0-fix_pkgconfig.patch @@ -0,0 +1,25 @@ +See PR pending https://github.com/shlomif/perl-XML-LibXSLT/pull/9.patch +fix hardcoded pkg-config +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -41,8 +41,10 @@ if ( delete $config{NO_THREADS} ) { + # https://rt.cpan.org/Public/Bug/Display.html?id=116461 + my $HAVE_USER_DEFINED = (defined($config{LIBS}) or defined($config{INC}) ); + ++my $pkg_config = $ENV{PKG_CONFIG} || 'pkg-config'; ++ + unless ( $::is_Win32 ) { # cannot get config in W32 +- my $xsltcfg = "pkg-config libxslt"; ++ my $xsltcfg = "$pkg_config libxslt"; + my $libprefix = $ENV{XSLTPREFIX} || $config{XSLTPREFIX}; + + delete $config{XSLTPREFIX}; # delete if exists, otherwise MakeMaker gets confused +@@ -174,7 +176,7 @@ if (have_library($::is_Win32 ? "libexslt" : "exslt")) { + my $exslt_defaults = $::is_Win32 ? + ($ENV{ACTIVEPERL_MINGW} ? q/-llibexslt.lib/ : q/-llibexslt/) : + q/-lexslt/; # -lgcrypt -lgpg-error/; +- my $exsltcfg = 'pkg-config libexslt'; ++ my $exsltcfg = "$pkg_config libexslt"; + my ($exslt_libs,$exslt_inc); + eval { + print "running $exsltcfg... ";
