View | Details | Raw Unified | Return to bug 190374
Collapse All | Expand All

(-)b/www/py-HTMLgen/Makefile (-6 / +5 lines)
Lines 16-22 COMMENT= A Python library for the generation of HTML documents Link Here
16
16
17
USE_PYTHON=	2
17
USE_PYTHON=	2
18
NO_BUILD=	yes
18
NO_BUILD=	yes
19
NO_STAGE=	yes
20
19
21
.if !defined(NOPORTDOCS)
20
.if !defined(NOPORTDOCS)
22
PORTDOCS=	*
21
PORTDOCS=	*
Lines 27-38 post-patch: Link Here
27
26
28
.if !defined(NOPORTDOCS)
27
.if !defined(NOPORTDOCS)
29
post-install:
28
post-install:
30
	@${MKDIR} ${DOCSDIR}
29
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
31
	@${TAR} -C ${WRKSRC} -cf - README html image | \
30
	@${TAR} -C ${WRKSRC} -cf - README html image | \
32
		${TAR} -C ${DOCSDIR} -xvf -
31
		${TAR} -C ${STAGEDIR}${DOCSDIR} -xvf -
33
	@${CHOWN} -R ${BINOWN}:${BINGRP} ${DOCSDIR}
32
	@${CHOWN} -R ${BINOWN}:${BINGRP} ${STAGEDIR}${DOCSDIR}
34
	@${FIND} ${DOCSDIR} -type d -exec ${CHMOD} 0555 {} \;
33
	@${FIND} ${STAGEDIR}${DOCSDIR} -type d -exec ${CHMOD} 0555 {} \;
35
	@${FIND} ${DOCSDIR} -type f -exec ${CHMOD} 0444 {} \;
34
	@${FIND} ${STAGEDIR}${DOCSDIR} -type f -exec ${CHMOD} 0444 {} \;
36
.endif
35
.endif
37
36
38
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)b/www/py-HTMLgen/files/patch-aa (-3 / +21 lines)
Lines 1-6 Link Here
1
--- installp.py	Sat Mar 20 02:34:29 1999
1
--- installp.py.orig	1999-02-03 21:59:11.000000000 -0700
2
+++ installp.py.orig	Sat Mar 20 02:33:44 1999
2
+++ installp.py	2014-05-29 09:23:31.000000000 -0700
3
@@ -14,7 +14,7 @@
3
@@ -14,17 +14,22 @@
4
         print "Usage: %s [-f] pymodule [npymodule...]" % sys.argv[0]
4
         print "Usage: %s [-f] pymodule [npymodule...]" % sys.argv[0]
5
         sys.exit(1)
5
         sys.exit(1)
6
     for opt in opts:
6
     for opt in opts:
Lines 9-11 Link Here
9
 
9
 
10
     v = sys.version[:3]
10
     v = sys.version[:3]
11
 
11
 
12
+    try:
13
+        destdir = os.environ['DESTDIR']
14
+    except KeyError:
15
+        destdir = ""
16
+
17
     if string.atof(v) >= 1.5:
18
-        sp = "%s/lib/python%s/site-packages" % (sys.prefix, v)
19
+        sp = "%s%s/lib/python%s/site-packages" % (destdir, sys.prefix, v)
20
         if not os.path.exists(sp):
21
-            os.mkdir(sp)
22
+            os.makedirs(sp)
23
     else:
24
         print "looks like Python is older than 1.5"
25
-        sp = "%s/lib/python%s" % (sys.prefix, v)
26
+        sp = "%s%s/lib/python%s" % (destdir, sys.prefix, v)
27
 
28
     if not FORCE:
29
         ans = raw_input("Install Python modules into %s? [y] " % sp)

Return to bug 190374