diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2021-06-19 03:03:21 +0000 |
---|---|---|
committer | Đoàn Trần Công Danh <sgn.danh@gmail.com> | 2021-06-20 06:17:29 +0000 |
commit | 49cb564d140a79e3a1a85c753aaef429981e4e67 (patch) | |
tree | 2517a45ab0afd6269f3c3a83abadd0006998ca85 /srcpkgs/perl-XML-SAX | |
parent | 2fd8d4df94855a157a4de16c61d54153e16ef185 (diff) | |
download | void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.tar void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.tar.gz void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.tar.bz2 void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.tar.lz void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.tar.xz void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.tar.zst void-packages-49cb564d140a79e3a1a85c753aaef429981e4e67.zip |
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
```
Diffstat (limited to 'srcpkgs/perl-XML-SAX')
-rw-r--r-- | srcpkgs/perl-XML-SAX/patches/fix-installation.patch | 4 | ||||
-rw-r--r-- | srcpkgs/perl-XML-SAX/template | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/srcpkgs/perl-XML-SAX/patches/fix-installation.patch b/srcpkgs/perl-XML-SAX/patches/fix-installation.patch index b71247aa14c..780d180fc18 100644 --- a/srcpkgs/perl-XML-SAX/patches/fix-installation.patch +++ b/srcpkgs/perl-XML-SAX/patches/fix-installation.patch @@ -2,8 +2,8 @@ Source: maxice8 Upstream: No Reason: Fixes installation ---- Makefile.PL -+++ Makefile.PL +--- a/Makefile.PL ++++ b/Makefile.PL @@ -12,43 +12,3 @@ WriteMakefile( 'XML::NamespaceSupport' => 0.03, }, diff --git a/srcpkgs/perl-XML-SAX/template b/srcpkgs/perl-XML-SAX/template index 445c4c6e20f..d72f1eac7e8 100644 --- a/srcpkgs/perl-XML-SAX/template +++ b/srcpkgs/perl-XML-SAX/template @@ -13,4 +13,3 @@ license="Artistic-1.0-Perl, GPL-1.0-or-later" homepage="https://metacpan.org/release/XML-SAX" distfiles="${CPAN_SITE}/XML/XML-SAX-${version}.tar.gz" checksum=4506c387043aa6a77b455f00f57409f3720aa7e553495ab2535263b4ed1ea12a -patch_args=-Np0 |