New package: perl-XML-LibXSLT-1.96

This commit is contained in:
svenper 2019-08-26 00:44:44 +02:00 committed by Leah Neukirchen
parent c36f99a959
commit 7ee027ef0b
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,28 @@
Remove the 'have_library()' check. It breaks cross compilation.
The checked for libxslt and libexslt are pulled in via makedepends
and therefore do exist, anyway.
--- Makefile.PL.orig
+++ Makefile.PL
@@ -157,20 +157,8 @@
$config{LIBS} .= $::is_Win32 ? '' :' -lm';
}
-if (!have_library($::is_Win32 ? "libxslt" : "xslt")) {
- print STDERR <<DEATH;
-libxslt not found
-Try setting LIBS and INC values on the command line
-Or get libxslt and libxml2 from
- http://www.libxml.org/
-If you install via RPMs, make sure you also install the -devel
-RPMs, as this is where the headers (.h files) are.
-DEATH
-exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors)
-}
-
-if (have_library($::is_Win32 ? "libexslt" : "exslt")) {
+if ($::is_Win32 ? "libexslt" : "exslt") {
if (! $HAVE_USER_DEFINED) {
my $exslt_defaults = $::is_Win32 ?
($ENV{ACTIVEPERL_MINGW} ? q/-llibexslt.lib/ : q/-llibexslt/) :

View file

@ -0,0 +1,15 @@
# Template file for 'perl-XML-LibXSLT'
pkgname=perl-XML-LibXSLT
version=1.96
revision=1
wrksrc="${pkgname/perl-/}-${version}"
build_style=perl-module
hostmakedepends="perl"
makedepends="perl perl-XML-LibXML libxslt-devel"
depends="${makedepends}"
short_desc="XML::LibXSLT - Interface to the GNOME libxslt library"
maintainer="svenper <svenper@tuta.io>"
license="Artistic-1.0-Perl, GPL-1.0-or-later"
homepage="https://metacpan.org/release/XML-LibXSLT/"
distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz"
checksum=2a5e374edaa2e9f9d26b432265bfea9b4bb7a94c9fbfef9047b298fce844d473