d-apt - APT repository for D

D Programming Language Specifications

APT repository for D

"d-apt" is an APT repository to easily install/upgrade D binary packages on systems like Debian, Ubuntu, LinuxMint, etc.

To enable it, add the repository sources:

$ sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list

then update local info and install "d-apt" public key (fingerprint 0xEBCF975E5BA24D5E):

$ sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring && sudo apt-get update

List of available binary packages:

"nn" at the end of some package's names should be replaced by the proper dmd version:
i.e. for "dmd" v2.066.1, "libphobos2-nn" becomes "libphobos2-66".

Installing packages:

i.e. to install GtkD2 development files and documentation:

$ sudo apt-get install libgtkd2-dev libgtkd2-doc

or just install GtkD2 runtime shared library:

$ sudo apt-get install libgtkd2-nn


Every dev package contains "pkg-config" (shared and static) configuration files for the specific library.

i.e. to link GtkD2 applications against "libgtkd2.so" and "libphobos2.so" shared libraries:

$ dmd `pkg-config --cflags --libs gtkd2` my_gtkd2_app.d

or to link GtkD2 applications against "libgtkd2.a" and "libphobos2.a" static libraries:

$ dmd `pkg-config --cflags --libs gtkd2-static` my_gtkd2_app.d


On 64-bit multiarch systems (like Ubuntu 12.04 and Debian 7.0), it is allowed to compile and link to 32-bit.

i.e., to compile GtkD2 applications to 32-bit on a 64-bit Linux system:

$ sudo apt-get install libgtkd2-dev:i386
$ dmd -m32 `pkg-config --cflags --libs gtkd2` my_gtkd2_app.d


Use soname to link against curl shared library:

$ dmd -L-l:libcurl.so.4 my_curl_app.d


Every doc package contains the related documentation with a system menu entry. It also contains examples if any.

contact: g.sayol at yahoo dot es