void-packages/srcpkgs/perl-Crypt-DH/patches/force_require_bigint_gmp.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

18 lines
414 B
Diff

--- a/Makefile.PL
+++ b/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;