Revision: 140698 https://trac.macports.org/changeset/140698 Author: mcalhoun@macports.org Date: 2015-09-30 05:43:50 -0700 (Wed, 30 Sep 2015) Log Message: ----------- p7zip: prevent permission errors when not installing as root Modified Paths: -------------- trunk/dports/archivers/p7zip/Portfile Modified: trunk/dports/archivers/p7zip/Portfile =================================================================== --- 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" \
participants (1)
-
mcalhoun@macports.org