FreeBSD Bugzilla – Attachment 143204 Details for
Bug 190374
[patch] Add staging support to www/py-HTMLgen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.15 KB, created by
joe
on 2014-05-29 17:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
joe
Created:
2014-05-29 17:30:00 UTC
Size:
2.15 KB
patch
obsolete
>diff --git a/www/py-HTMLgen/Makefile b/www/py-HTMLgen/Makefile >index 0e15abe..973f13c 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 258b086..0f7781b 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)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 190374
: 143204