diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2017-03-22 21:53:46 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2017-03-22 21:54:11 +0100 |
commit | dbe528377cf440332a02314b984c0e3741f4a039 (patch) | |
tree | da294a1927bf448883b76ae7f256674b46698cbf /dev-ada/gprbuild | |
parent | www-client/google-chrome-beta: automated update (58.0.3029.33) (diff) | |
download | gentoo-dbe528377cf440332a02314b984c0e3741f4a039.tar.gz gentoo-dbe528377cf440332a02314b984c0e3741f4a039.tar.bz2 gentoo-dbe528377cf440332a02314b984c0e3741f4a039.zip |
dev-ada/gprbuild: Add gprbuild-gpl-2016
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-ada/gprbuild')
-rw-r--r-- | dev-ada/gprbuild/Manifest | 2 | ||||
-rw-r--r-- | dev-ada/gprbuild/gprbuild-2016.ebuild | 75 | ||||
-rw-r--r-- | dev-ada/gprbuild/metadata.xml | 11 |
3 files changed, 88 insertions, 0 deletions
diff --git a/dev-ada/gprbuild/Manifest b/dev-ada/gprbuild/Manifest new file mode 100644 index 000000000000..1642070972ef --- /dev/null +++ b/dev-ada/gprbuild/Manifest @@ -0,0 +1,2 @@ +DIST gprbuild-gpl-2016-src.tar.gz 2142261 SHA256 d51659454bc0aaf1a9a9f1d05aab469a1f3d900065a4542123d3a59ab067275d SHA512 6b9e00248aaee90f3c00e7ce442c2b551b8532ec4d94a4471858d117feb27e91fd6d218995d4b71ee3f1f0677e9547d562fc2cda9ba80c3f6eb8d840ed56eb7e WHIRLPOOL 2afb9d3188f9498cf9cf9a6605081e27a843a15e4c4d5541616b8818757c6f8d458e8d6fbe97bcfc0607ac98d58ec2e4830d17aefd26458b3adcf1489a646945 +DIST xmlada-gpl-2016-src.tar.gz 1440671 SHA256 ea64d8da2c5fb01a257fc5bf474b8d4ec40b01dc15b320b9fe260ff2db668ba4 SHA512 d1d7c3d91731394235aed4b80c91b1babe30d5f184282fae8087ee556318475e3923ed628b805693fc89a4d9bb219b0fb0937bc5024a742226da0245d36ed652 WHIRLPOOL b6ebb927d801394ad0b62d9538142c420ab33627582059466d4f64b12c3a45b1b5b489019aef715a59101370220a78507fe03d97c9e67233dfcc4f3aad1f16d7 diff --git a/dev-ada/gprbuild/gprbuild-2016.ebuild b/dev-ada/gprbuild/gprbuild-2016.ebuild new file mode 100644 index 000000000000..57eee67bea64 --- /dev/null +++ b/dev-ada/gprbuild/gprbuild-2016.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs multiprocessing + +MYP=${PN}-gpl-${PV} + +DESCRIPTION="Multi-Language Management" +HOMEPAGE="http://libre.adacore.com/" +SRC_URI=" + http://mirrors.cdn.adacore.com/art/57399662c7a447658e0affa8 + -> ${MYP}-src.tar.gz + http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0 + -> xmlada-gpl-${PV}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-lang/gnat-gpl" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MYP}-src + +pkg_setup() { + GCC=${ADA:-$(tc-getCC)} + local base=$(basename ${GCC}) + GNATMAKE="${base/gcc/gnatmake}" + if [[ ${base} != ${GCC} ]] ; then + local path=$(dirname ${GCC}) + GNATMAKE="${path}/${GNATMAKE}" + fi + if [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then + eerror "You need a gcc compiler that provides the Ada Compiler:" + eerror "1) use gcc-config to select the right compiler or" + eerror "2) set ADA=gcc-4.9.4 in make.conf" + die "ada compiler not available" + fi +} + +src_configure() { + : +} + +bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls" +lib_progs="gprlib gprbind" + +src_compile() { + local xmlada_src="../xmlada-gpl-${PV}-src" + incflags="-Isrc -Igpr/src -I${xmlada_src}/sax -I${xmlada_src}/dom \ + -I${xmlada_src}/schema -I${xmlada_src}/unicode \ + -I${xmlada_src}/input_sources" + ${GCC} -c ${CFLAGS} src/gpr_imports.c -o gpr_imports.o + for bin in ${bin_progs}; do + ${GNATMAKE} -j$(makeopts_jobs) ${incflags} $ADAFLAGS ${bin}-main \ + -o ${bin} -largs gpr_imports.o + done + for lib in $lib_progs; do + ${GNATMAKE} -j$(makeopts_jobs) ${incflags} ${lib} $ADAFLAGS \ + -largs gpr_imports.o + done +} + +src_install() { + dobin ${bin_progs} + insinto /usr/share/gprconfig + exeinto /usr/libexec/gprbuild + doexe ${lib_progs} + doins share/gprconfig/*.xml + insinto /usr/share/gpr + doins share/_default.gpr +} diff --git a/dev-ada/gprbuild/metadata.xml b/dev-ada/gprbuild/metadata.xml new file mode 100644 index 000000000000..d39fc81d0ddc --- /dev/null +++ b/dev-ada/gprbuild/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + <longdescription lang="en"> + GPRbuild is an advanced software tool designed to help automate the construction of multi-language systems. It removes complexity from multi-language development by allowing developers to quickly and easily compile and link software written in a combination of languages including Ada, Assembler, C, C++, and Fortran. Easily extendable by users to cover new toolchains and languages it is primarily aimed at projects of all sizes organized into subsystems and libraries and is particularly well-suited for compiled languages. + </longdescription> +</pkgmetadata> |