Make dub part of the standard dmd distribution

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 1 23:57:19 PDT 2015


On 2015-06-01 20:03, Johannes Pfau wrote:

> Create a package format: .dlib (simply a renamed .tar.xz)
> Contents:
>     - PACKAGEINFO //meta information (version)
>     - include/*   //include files
>     - doc/*       //documentation in standard format for IDEs
>     - lib/dmd/libfoo.a
>     - lib/gdc/libfoo.a
>
> Write a small tool xdmd. Implement:
>     //simply move to /usr/share/dlib/libfoo/version/
>     //or ~/.share/dlib/libfoo/version/
>     xdmd --install libfoo.dlib
>     Note: when installing using a systems package manager, packages
>     could be installed in the same way: pacman -S libfoo could call xdmd
>     --install.
>
>     //extract /usr/share/dlib/libfoo/0.9.3/libfoo.dlib
>     //to temporary directory. Pass link and include flags and
>     //rest of arguments to dmd
>     xdmd --library=foo:0.9.3 test.d
>     //directly use local package
>     xdmd --library=libfoo-0.9.3.dlib test.d
>
> This is essentially are very slimmed down dub. Would be a nice weekend
> exercise to write such a tool.

So, a package manager ;). I tried that, but people were complaining that 
I used Ruby for the meta information and that binary packages would 
cause problems. Then Dub came and I gave up on that project.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list