mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-23 20:25:14 +02:00
The makefile checks for presence of libgmp-devel files, and based on that it enables either the GMP version of the respective bigint lib or the other one. This doesn't really work with cross and some host platforms so just forcibly patch it.
18 lines
410 B
Diff
18 lines
410 B
Diff
--- Makefile.PL
|
|
+++ Makefile.PL
|
|
@@ -15,14 +15,8 @@ include 'ExtUtils::AutoInstall';
|
|
|
|
perl_version '5.006';
|
|
build_requires 'Test::More' => 0.47;
|
|
-eval { assertlibs lib => 'gmp', header => 'gmp.h'; };
|
|
-unless ($@) {
|
|
- requires 'Math::BigInt::GMP' => 1.24;
|
|
-}
|
|
-else {
|
|
- requires 'Math::BigInt::Pari' => 1.13;
|
|
-}
|
|
|
|
+requires('Math::BigInt::GMP' => '1.24');
|
|
requires('Math::BigInt' => '1.60');
|
|
|
|
githubmeta;
|