New port for ldc2

Austin Ziegler halostatue at gmail.com
Sun Mar 24 23:11:10 UTC 2024


The rustc port depends on rustc-bootstrap and that will download the previous compiler binary either from the rust source site or from a git repository (that should become part of the MacPorts org) if one doesn’t exist. The presence of that one previous version is an exercise left for the adventurous reader.

-a

> On Mar 24, 2024, at 17:59, P Padil <ppadilcdx at gmail.com> wrote:
> 
> yes but requires a bootstrap from an older compiler. Would have to go bck to the first compiler that can be build from C, all recent versions require a previous ldc or gdc version. I can try to do the bootstrap, although not sure I have seen documentation for that either.
> 
>> On Mar 24, 2024, at 2:35 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>> 
>>> On Mar 24, 2024, at 15:52, P Padil wrote:
>>> 
>>> I’m trying to develop a new port for the d-lang ldc package (see attached), but I’m having a hard time deciphering the macports guide as to how to install something like this. It is a binary distributed in a tar.xz file which has the bin, lib, etc, imports directories in the tar and, I would have though, would be easy to link to the appropriate installion dirs.  However I cannot find anything as to how to do this in a Portfile.  Any pointers/help appreciated.
>> 
>> There's no documentation specific to this case because it's not a usual way to distribute software. I don't recall encountering this need in MacPorts before.
>> 
>> It looks like you're trying to write a portfile that installs a precompiled binary. MacPorts prefers to build from source. Can the port be made to do that instead?
> 


More information about the macports-dev mailing list