New port for ldc2

P Padil ppadilcdx at gmail.com
Sun Mar 24 21:58:50 UTC 2024


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