diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-06-06 13:05:51 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-06-06 13:05:51 +0000 |
commit | 1f242c53f38d13e67bb38aada9225eeb36ad5a93 (patch) | |
tree | 61447f5ca2011a7f309a6cdc9c16a798dfbc8914 /www/py-HTMLgen/files | |
parent | c01c9a479e767c1b4e23bfdd23ede745da01dbf1 (diff) |
Notes
Diffstat (limited to 'www/py-HTMLgen/files')
-rw-r--r-- | www/py-HTMLgen/files/patch-aa | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/www/py-HTMLgen/files/patch-aa b/www/py-HTMLgen/files/patch-aa index 258b086adffc..0f7781b1404d 100644 --- a/www/py-HTMLgen/files/patch-aa +++ b/www/py-HTMLgen/files/patch-aa @@ -1,6 +1,6 @@ ---- installp.py Sat Mar 20 02:34:29 1999 -+++ installp.py.orig Sat Mar 20 02:33:44 1999 -@@ -14,7 +14,7 @@ +--- 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: @@ -9,3 +9,21 @@ 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) |