On Feb 11, 2013, at 23:17, take...@macports.org wrote: > Revision: 103021 > https://trac.macports.org/changeset/103021 > Author: take...@macports.org > Date: 2013-02-11 21:17:38 -0800 (Mon, 11 Feb 2013) > Log Message: > ----------- > tlswrap: updated homepage. added license and livecheck. > > Modified Paths: > -------------- > trunk/dports/net/tlswrap/Portfile
> +post-destroot { > + xinstall -d -m 755 ${destroot}${prefix}/share/${name} > + xinstall -d -m 755 ${destroot}${prefix}/share/${name}/doc xinstall creates intermediate directories for you. 755 is the default mode for directories. Documentation should go in ${prefix}/share/doc/${name}. See "man porthier" or https://trac.macports.org/wiki/PortfileRecipes#doc > + foreach f {COPYING ChangeLog README} { > + copy ${worksrcpath}/${f} ${destroot}${prefix}/share/${name}/doc > + } You can do this in a single "xinstall" invocation; no need for a loop. xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog README ${destroot}${prefix}/share/doc/${name} _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-dev