install doc with python group

Rainer Müller raimue at macports.org
Tue Jul 11 13:45:30 UTC 2017


On 2017-07-11 15:23, db wrote:
> On 11 Jul 2017, at 14:44, Joshua Root <jmr at macports.org> wrote:
>> Only the subports like py27-setuptools_hg and py35-setuptools_hg are supposed to install any files. py-setuptools_hg is a stub port, and as such has no distfiles and thus no extracted sources.
> 
> I know why it fails. The stub port does install the subport as a dependency though (first one of python.versions, I guess, which is not clear-cut in the guide). I suppose I could change ${worksrcpath} — how would you make the subport install the documentation when installing the stub port?

Do not install any additional files in the stub port. Wrap your code in
a section that is only executed when installing the subport:

if {${subport} ne ${name}} {
    post-destroot {
        ...
    }
}

Rainer


More information about the macports-dev mailing list