Project:Ada

Aim of the project
The project maintain the compiler, builder, system library and IDE for ada. The reference sources are the one present in the libre.adacore.com site, maintained by AdaCore.

Current packages
At present packages are part of the project.
 * dev-lang/gnat-gpl
 * dev-ada/xmlada
 * dev-ada/gprbuild
 * dev-ada/gnat_util
 * dev-ada/gnatcoll
 * dev-ada/asis
 * dev-ada/gtkada

The dev-lang/gnat-gpl-2016 conflict with the sys-devel/gcc-4.9.4 compiler, as it share with it the sources and the binaries

Configuration
You need to indicate the ADA compiler and the FLAGS that you want to use to build the ADA packages

The compiler to choose should be indicated by the ADA variable in /etc/portage/make.conf.

ADA=(basename of the gcc compiler that can compile ada files)

e.g. ADA=gcc-4.9.4

If you do not specify the ADA variable, the system gcc compiler will be used instead

The flags the compiler will use is specified instead by

ADAFLAGS compiler flags for ADA

e.g. ADAFLAGS=${CFLAGS}

Build instructions
To build the compiler unfortunately you need an ada/c/c++ compiler already available, to produce an ada/c/c++ compiler.

If you don't have an ada compiler available you must set the bootstrap use flags. In this case the compiler used will be gnat-gpl-2014-x86_64-linux-bin.tar.gz from libre.adacore.com.

Once installed you can use the compiler either
 * by selecting it with gcc-config. In this case you also change the default c/c++ compiler (and this is not supported to upgrade gentoo)
 * by postfixing any ada command with its own version: eg. gnatmake-4.9.4