On Wed, 05 Mar 2014 18:13:57 GMT, Dicebot wrote:

Thanks for you continuous effort on improving D Debian presence.

You're welcome :)

I think it is most simple an generic thing to do. Just run dub build on a source and then copy resulting binary and any extra files (man pages, modules, etc) to package. Exact placement in resulting file system does not have any common standard. For example, Jordi (maintainer of http://d-apt.sourceforge.net/) uses /usr/include/dmd as base for all imports and I have chosen common /usr/include/dlang/{dmd,ldc,gdc,whatever} for Arch Linux. I think you should actually have best judgement being Debian developer :)

The previous maintainer chose /usr/include/d/ (and /usr/include/d/ldc for ldc-specific stuff), and this is what gdc also uses (it's put in /usr/include/d/4.8), so for now I'll also continue using this, but I'm not really in favour or against it, if D community says otherwise, I'd be happy to change it.

dub does not have a make install alternative so it is completely up to package to chose exact file system placement.

Lot of dub packages are source libraries though (including vibe.d) - it is enough to just copy necessary module and define dependencies to get a usable package. Example of dub-free packaging I do for vibe.d in Arch : https://github.com/Dicebot/Arch-PKGBUILDs/blob/master/vibed/PKGBUILD (a bit outdated, oops!)

Ok, I think I understand it better now, but Debian uses a more fine-grained approach when it comes to language bindings for existing libraries (eg. libevent/openssl). I'll have to provide openssl-dlang or openssl-d (not sure which is the best name, I'll probably go for the former as it's more easy to search for), same for libevent-dlang, etc.

So will it be enough to just copy ~/.dub/packages/openssl-master/deimos/openssl/* to /usr/include/d/openssl and it would be detected? And what about the stuff in the C directory, is it just duplication of the original C headers (from first glance it looks like it, but better make sure).

I'd love to read your opinion about desired scheme by the way ;)

Thanks for all the help, the D community so far has been one of the friendlist I've encountered :)
I'll start with openssl-dlang and libevent-dlang and see if it works and makes building of dub and vibe.d possible and I'll post progress here.

Konstantinos