Need help with package that only supplies subports ...

Chris Jones jonesc at hep.phy.cam.ac.uk
Thu Apr 9 17:23:07 UTC 2020



> On 9 Apr 2020, at 5:29 pm, Joshua Root <jmr at macports.org> wrote:
> 
> ´╗┐On 2020-4-10 02:08 , Edward Maros wrote:
>> I have a project that does not distribute any files by default. Instead,
>> all distributed are part of various subports. This is because this
>> package only provides language bindings (python, etc.) for a dependent
>> package. I am getting the error message:
>> 
>> :error:destroot No files have been installed in the destroot directory!
>> :error:destroot Please make sure that this software supports 'make install DESTDIR=${destroot}' or implement an alternative destroot mechanism in the Portfile.
>> :error:destroot Files might have been installed directly into your system, check before proceeding.
>> 
>> Is there a way to set a subport to be built by default?
>> Is there a way to have an empty package?
> 
> Add code to the Portfile to install at least one file into the destroot.
> This can be as simple as a README saying "This port is just a stub."
> This is what the python portgroup does for example.

Just to add, by convention these readme files are added to the share/doc area, under a port specific sub-dir. see for instance

https://github.com/macports/macports-ports/blob/202eaebc57fa1551ee7d8a03a9f893030f404a61/lang/gcc8/Portfile#L294

Which is just the first port that springs to my mind that I know does this.

Chris

> 
> - Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200409/c45a8c43/attachment-0001.html>


More information about the macports-dev mailing list