pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-HTMLgen DESTDIR support.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e5b0a108c075
branches: trunk
changeset: 554609:e5b0a108c075
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Feb 16 19:44:28 2009 +0000
description:
DESTDIR support.
diffstat:
www/py-HTMLgen/Makefile | 6 +++++-
www/py-HTMLgen/distinfo | 4 ++--
www/py-HTMLgen/patches/patch-ab | 14 ++++++++++----
3 files changed, 17 insertions(+), 7 deletions(-)
diffs (62 lines):
diff -r 9aa8889bd691 -r e5b0a108c075 www/py-HTMLgen/Makefile
--- a/www/py-HTMLgen/Makefile Mon Feb 16 19:38:27 2009 +0000
+++ b/www/py-HTMLgen/Makefile Mon Feb 16 19:44:28 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2006/03/04 21:31:03 jlam Exp $
+# $NetBSD: Makefile,v 1.10 2009/02/16 19:44:28 joerg Exp $
#
DISTNAME= HTMLgen
@@ -13,9 +13,13 @@
HOMEPAGE= http://starship.python.net/crew/friedrich/HTMLgen/html/main.html
COMMENT= Class library for the generation of HTML documents
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_BUILD= yes
MAKE_ENV+= PYTHONBIN=${PYTHONBIN:Q}
PY_PATCHPLIST= yes
+INSTALLATION_DIRS+= ${PYSITELIB}
+
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 9aa8889bd691 -r e5b0a108c075 www/py-HTMLgen/distinfo
--- a/www/py-HTMLgen/distinfo Mon Feb 16 19:38:27 2009 +0000
+++ b/www/py-HTMLgen/distinfo Mon Feb 16 19:44:28 2009 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2005/02/24 14:08:38 wiz Exp $
+$NetBSD: distinfo,v 1.3 2009/02/16 19:44:28 joerg Exp $
SHA1 (py-HTMLgen-2.2.2/HTMLgen.tgz) = a34b9c1f9cf5536a548c66522213ac9fee1b43cd
RMD160 (py-HTMLgen-2.2.2/HTMLgen.tgz) = bb32b2822f7ce8e49eb42853aff330429df073de
Size (py-HTMLgen-2.2.2/HTMLgen.tgz) = 316415 bytes
SHA1 (patch-aa) = 506d0aa49b875a02441006bc8a59adde14e2be9c
-SHA1 (patch-ab) = 92fc6aa41c590fafd75ab36b4d55f1fd952100fa
+SHA1 (patch-ab) = 1630abcbe16b6a11fb7e75e9c4de6e09f106251d
diff -r 9aa8889bd691 -r e5b0a108c075 www/py-HTMLgen/patches/patch-ab
--- a/www/py-HTMLgen/patches/patch-ab Mon Feb 16 19:38:27 2009 +0000
+++ b/www/py-HTMLgen/patches/patch-ab Mon Feb 16 19:44:28 2009 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/02/05 19:44:53 drochner Exp $
+$NetBSD: patch-ab,v 1.2 2009/02/16 19:44:28 joerg Exp $
---- installp.py.orig Tue Feb 5 20:19:55 2002
-+++ installp.py Tue Feb 5 20:20:11 2002
-@@ -15,7 +15,7 @@
+--- installp.py.orig 1999-02-04 05:59:11.000000000 +0100
++++ installp.py
+@@ -14,12 +14,12 @@ def main():
print "Usage: %s [-f] pymodule [npymodule...]" % sys.argv[0]
sys.exit(1)
for opt in opts:
@@ -11,3 +11,9 @@
v = sys.version[:3]
+ if string.atof(v) >= 1.5:
+- sp = "%s/lib/python%s/site-packages" % (sys.prefix, v)
++ sp = "%s%s/lib/python%s/site-packages" % (os.environ.get("DESTDIR", ""), sys.prefix, v)
+ if not os.path.exists(sp):
+ os.mkdir(sp)
+ else:
Home |
Main Index |
Thread Index |
Old Index