aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/python3-pylibgen
diff options
context:
space:
mode:
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
commit49cb564d140a79e3a1a85c753aaef429981e4e67 (patch)
tree2517a45ab0afd6269f3c3a83abadd0006998ca85 /srcpkgs/python3-pylibgen
parent2fd8d4df94855a157a4de16c61d54153e16ef185 (diff)
downloadvoid-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/python3-pylibgen')
-rw-r--r--srcpkgs/python3-pylibgen/patches/fix-setup.patch4
-rw-r--r--srcpkgs/python3-pylibgen/template1
2 files changed, 2 insertions, 3 deletions
diff --git a/srcpkgs/python3-pylibgen/patches/fix-setup.patch b/srcpkgs/python3-pylibgen/patches/fix-setup.patch
index 1fa9e9f2acb..d6d6afcc900 100644
--- a/srcpkgs/python3-pylibgen/patches/fix-setup.patch
+++ b/srcpkgs/python3-pylibgen/patches/fix-setup.patch
@@ -1,7 +1,7 @@
diff --git setup.py setup.py
index 1a84791..1a6d7c2 100644
---- setup.py
-+++ setup.py
+--- a/setup.py
++++ b/setup.py
@@ -14,9 +14,6 @@ with open(os.path.join(here, "README.md")) as f:
with open(os.path.join(here, "requirements.txt")) as f:
install_requires = f.read()
diff --git a/srcpkgs/python3-pylibgen/template b/srcpkgs/python3-pylibgen/template
index d59a68eca8a..4d77619ae93 100644
--- a/srcpkgs/python3-pylibgen/template
+++ b/srcpkgs/python3-pylibgen/template
@@ -12,7 +12,6 @@ license="MIT"
homepage="https://github.com/JoshuaRLi/pylibgen"
distfiles="${PYPI_SITE}/p/pylibgen/pylibgen-${version}.tar.gz"
checksum=87b28a27fa7c1912e2b38020262dd6086b292d670b0c08d76baecbcd7678b9ee
-patch_args=-Np0
post_install() {
vlicense LICENSE