From 5fef74e277a1a8631418cc86635c091fcc79d099 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 15:49:46 +0000 Subject: Rename www/ patch-xy patches to reflect the files they modify. --- www/py-HTMLgen/files/patch-aa | 29 ----------------------------- www/py-HTMLgen/files/patch-installp.py | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 www/py-HTMLgen/files/patch-aa create mode 100644 www/py-HTMLgen/files/patch-installp.py (limited to 'www/py-HTMLgen') diff --git a/www/py-HTMLgen/files/patch-aa b/www/py-HTMLgen/files/patch-aa deleted file mode 100644 index 0f7781b1404d..000000000000 --- a/www/py-HTMLgen/files/patch-aa +++ /dev/null @@ -1,29 +0,0 @@ ---- installp.py.orig 1999-02-03 21:59:11.000000000 -0700 -+++ installp.py 2014-05-29 09:23:31.000000000 -0700 -@@ -14,17 +14,22 @@ - print "Usage: %s [-f] pymodule [npymodule...]" % sys.argv[0] - sys.exit(1) - for opt in opts: -- if opt == '-f': FORCE = 1 -+ if opt[0] == '-f': FORCE = 1 - - v = sys.version[:3] - -+ try: -+ destdir = os.environ['DESTDIR'] -+ except KeyError: -+ destdir = "" -+ - if string.atof(v) >= 1.5: -- sp = "%s/lib/python%s/site-packages" % (sys.prefix, v) -+ sp = "%s%s/lib/python%s/site-packages" % (destdir, sys.prefix, v) - if not os.path.exists(sp): -- os.mkdir(sp) -+ os.makedirs(sp) - else: - print "looks like Python is older than 1.5" -- sp = "%s/lib/python%s" % (sys.prefix, v) -+ sp = "%s%s/lib/python%s" % (destdir, sys.prefix, v) - - if not FORCE: - ans = raw_input("Install Python modules into %s? [y] " % sp) diff --git a/www/py-HTMLgen/files/patch-installp.py b/www/py-HTMLgen/files/patch-installp.py new file mode 100644 index 000000000000..0f7781b1404d --- /dev/null +++ b/www/py-HTMLgen/files/patch-installp.py @@ -0,0 +1,29 @@ +--- installp.py.orig 1999-02-03 21:59:11.000000000 -0700 ++++ installp.py 2014-05-29 09:23:31.000000000 -0700 +@@ -14,17 +14,22 @@ + print "Usage: %s [-f] pymodule [npymodule...]" % sys.argv[0] + sys.exit(1) + for opt in opts: +- if opt == '-f': FORCE = 1 ++ if opt[0] == '-f': FORCE = 1 + + v = sys.version[:3] + ++ try: ++ destdir = os.environ['DESTDIR'] ++ except KeyError: ++ destdir = "" ++ + if string.atof(v) >= 1.5: +- sp = "%s/lib/python%s/site-packages" % (sys.prefix, v) ++ sp = "%s%s/lib/python%s/site-packages" % (destdir, sys.prefix, v) + if not os.path.exists(sp): +- os.mkdir(sp) ++ os.makedirs(sp) + else: + print "looks like Python is older than 1.5" +- sp = "%s/lib/python%s" % (sys.prefix, v) ++ sp = "%s%s/lib/python%s" % (destdir, sys.prefix, v) + + if not FORCE: + ans = raw_input("Install Python modules into %s? [y] " % sp) -- cgit v1.2.3