perl-Math-Prime-Util: fix cross compilation

Closes: #7542 [via git-merge-pr]
This commit is contained in:
newbluemoon 2017-08-31 14:18:41 +02:00 committed by Leah Neukirchen
parent 29e7640765
commit c0025c3f0f
2 changed files with 12 additions and 0 deletions

View file

@ -13,3 +13,9 @@ license="Artistic, GPL-1"
homepage="https://github.com/danaj/Math-Prime-Util-GMP"
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
checksum=bf37ab27ca155aaa274688d7115bbefc93e28d4a6ba4faa193bb0a1b5f87e45f
if [ -n "$CROSS_BUILD" ]; then
pre_configure() {
sed -i -e "s/^check_lib_or_exit(lib => 'gmp', header => 'gmp.h');//" Makefile.PL
}
fi

View file

@ -13,3 +13,9 @@ license="Artistic, GPL-1"
homepage="https://github.com/danaj/Math-Prime-Util"
distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz"
checksum=26dbcdfe8d0f7efdc049a449430acc2d7b014746cd265db046137e89da5fb7aa
if [ -n "$CROSS_BUILD" ]; then
pre_configure() {
sed -i -e "s/^\(my \$have_gmp =\).*/\1 1;/" Makefile.PL
}
fi