Modified: trunk/dports/archivers/p7zip/Portfile (140697 => 140698)
--- trunk/dports/archivers/p7zip/Portfile 2015-09-30 12:05:36 UTC (rev 140697)
+++ trunk/dports/archivers/p7zip/Portfile 2015-09-30 12:43:50 UTC (rev 140698)
@@ -4,6 +4,7 @@
name p7zip
version 9.38.1
+revision 1
categories archivers
# contains unrar code which has a restrictive license
license LGPL-2.1+ Restrictive/Distributable
@@ -27,6 +28,14 @@
variant universal {}
+post-patch {
+ # if not root, installing with restricted permissions causes errors
+ # when attempting to remove work directory
+ # see http://www.linuxfromscratch.org/blfs/view/svn/general/p7zip.html
+ reinplace "s|chmod 444|chmod 644|g" ${worksrcpath}/install.sh
+ reinplace "s|chmod 555|chmod 755|g" ${worksrcpath}/install.sh
+}
+
configure {
copy -force ${worksrcpath}/makefile.macosx_32bits ${worksrcpath}/makefile.machine
reinplace "s|^CXX=c++|CXX=${configure.cxx}|g" \