destroot

Rainer Müller raimue at macports.org
Sat Apr 2 10:28:23 PDT 2016


On 2016-04-02 18:17, Mark Brethen wrote:
> I have to manually move an examples directory to destroot. xinstall
> will let you either create directories or copy files, not both. Is
> there a simpler method to copy the entire directory?

post-destroot {
    copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/
    system "chmod -R a+rX ${destroot}${prefix}/share/doc/${name}/"
}

If the permissions are already correct in the source tree, running chmod
will be optional.

Rainer


More information about the macports-dev mailing list