[103021] trunk/dports/net/tlswrap/Portfile
Ryan Schmidt
ryandesign at macports.org
Fri Feb 15 20:39:30 PST 2013
On Feb 11, 2013, at 23:17, takeshi at macports.org wrote:
> Revision: 103021
> https://trac.macports.org/changeset/103021
> Author: takeshi at 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}
More information about the macports-dev
mailing list