aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2014-06-06 21:05:51 +0800
committermiwi <miwi@FreeBSD.org>2014-06-06 21:05:51 +0800
commit1c6539a7cce6b965851cad4dba37f563c71ee9b7 (patch)
tree61447f5ca2011a7f309a6cdc9c16a798dfbc8914 /www
parente2a11c523d031de70e92f770b714c3e99a762528 (diff)
downloadfreebsd-ports-gnome-1c6539a7cce6b965851cad4dba37f563c71ee9b7.tar.gz
freebsd-ports-gnome-1c6539a7cce6b965851cad4dba37f563c71ee9b7.tar.zst
freebsd-ports-gnome-1c6539a7cce6b965851cad4dba37f563c71ee9b7.zip
- Stage support
PR: 190377
Diffstat (limited to 'www')
-rw-r--r--www/py-HTMLgen/Makefile11
-rw-r--r--www/py-HTMLgen/files/patch-aa24
2 files changed, 26 insertions, 9 deletions
diff --git a/www/py-HTMLgen/Makefile b/www/py-HTMLgen/Makefile
index 0e15abe166c0..973f13cb8238 100644
--- a/www/py-HTMLgen/Makefile
+++ b/www/py-HTMLgen/Makefile
@@ -16,7 +16,6 @@ COMMENT= A Python library for the generation of HTML documents
USE_PYTHON= 2
NO_BUILD= yes
-NO_STAGE= yes
.if !defined(NOPORTDOCS)
PORTDOCS= *
@@ -27,12 +26,12 @@ post-patch:
.if !defined(NOPORTDOCS)
post-install:
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
@${TAR} -C ${WRKSRC} -cf - README html image | \
- ${TAR} -C ${DOCSDIR} -xvf -
- @${CHOWN} -R ${BINOWN}:${BINGRP} ${DOCSDIR}
- @${FIND} ${DOCSDIR} -type d -exec ${CHMOD} 0555 {} \;
- @${FIND} ${DOCSDIR} -type f -exec ${CHMOD} 0444 {} \;
+ ${TAR} -C ${STAGEDIR}${DOCSDIR} -xvf -
+ @${CHOWN} -R ${BINOWN}:${BINGRP} ${STAGEDIR}${DOCSDIR}
+ @${FIND} ${STAGEDIR}${DOCSDIR} -type d -exec ${CHMOD} 0555 {} \;
+ @${FIND} ${STAGEDIR}${DOCSDIR} -type f -exec ${CHMOD} 0444 {} \;
.endif
.include <bsd.port.mk>
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)