c987560802
```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 ```
11 lines
386 B
Diff
11 lines
386 B
Diff
--- a/setup.py 2017-03-02 11:35:41.688884000 -0800
|
|
+++ b/setup.py 2017-03-02 11:36:07.745885086 -0800
|
|
@@ -103,7 +103,7 @@
|
|
if not prefix and "PREFIX" in os.environ:
|
|
prefix = os.environ["PREFIX"]
|
|
if not prefix or not len (prefix):
|
|
- prefix = "/usr/local"
|
|
+ prefix = "/usr"
|
|
|
|
if sys.argv[1] in ("install", "uninstall") and len (prefix):
|
|
sys.argv += ["--prefix", prefix]
|