diff options
Diffstat (limited to 'dev-ada/gnat_util')
-rw-r--r-- | dev-ada/gnat_util/Manifest | 7 | ||||
-rw-r--r-- | dev-ada/gnat_util/files/gnat_util-2016-gentoo.patch | 100 | ||||
-rw-r--r-- | dev-ada/gnat_util/files/gnat_util-2017-gentoo.patch | 80 | ||||
-rw-r--r-- | dev-ada/gnat_util/gnat_util-2016.ebuild | 55 | ||||
-rw-r--r-- | dev-ada/gnat_util/gnat_util-2017.ebuild | 55 | ||||
-rw-r--r-- | dev-ada/gnat_util/metadata.xml | 24 |
6 files changed, 321 insertions, 0 deletions
diff --git a/dev-ada/gnat_util/Manifest b/dev-ada/gnat_util/Manifest new file mode 100644 index 000000000000..3028bce2d91e --- /dev/null +++ b/dev-ada/gnat_util/Manifest @@ -0,0 +1,7 @@ +AUX gnat_util-2016-gentoo.patch 3197 SHA256 ec877b5d0e1a752ec24d7388781203469447e905a9d30f952b5ac8c3dae98f6e SHA512 599d3c2cb1d22513c9ef2200d100a80b55d2efe8d8bf7b541cfb845da2a40d1a8d24234208b92a3fcfeba305cb0157b01576d16129e3979e8869ab4b098bb9f7 WHIRLPOOL 6578cefe98a8a78d24fef87536e9097bed70b19a64f42fdd37bd6050a471ad02db4a07b502658bb53e54f46fd299af95f3413743e11378082888c58d99976263 +AUX gnat_util-2017-gentoo.patch 2840 SHA256 7ffe6b6539da328a659dc85ece5a5722dece27f5fd9b456db72be1616be27a0d SHA512 6fb7c9fd3ac282fd0571aec55acfcafc5a72e8814dd9c158751f36f6bab29d682da9b6e89eca774f424831c2985776b07f6749c97bff4ee1baa423a9ed142846 WHIRLPOOL 51dabc47a2f98c0baaf87323e2d5140df02e944386521045d3dea0275582fe72f32ef0eb1fe23b99ce6e2014d42ca013e20af48ffb3f21092c49d05eefe65dce +DIST gnat_util-gpl-2016-src.tar.gz 1126296 SHA256 8e76d7eb1cbae1d3040b9e4196ab07d6e0dd5d4eeb3f5e0fbeb267b1a3470af5 SHA512 1edb67e762637e9e951356c7be402d7b2b903a05abdc93eadaf5ba98bc7bfa936b4fa2a2ae7eb986200dec755020e53d312d42769512fba2e290099f6030bbd0 WHIRLPOOL c2218ba14f669aa2412be4e0a42b1ffb475c720e608e73bca3bbe42dcaefe2dc4410c4632e0e900a8c72ed92c3ec670bd35935783f43c1eb0eb2cdb7afc4f63e +DIST gnat_util-gpl-2017-src.tar.gz 868496 SHA256 46910f4248ebbb6cae5e576cae766768d376fdbf459c55f7efca9ea10d4ea8ad SHA512 d5e48c6fafc870f36094d2dfd5f45f2d5b5729c97596afff7475b7838c1c7c029ef57395ca1011ee74d8a4195597ea1f502732e654a02561a7abc72c8a7d3a6a WHIRLPOOL 9db8569a56e5ca61ba9cc76276838bb82b07bd1cf9357540d2716136df85a85144eb4f93c2d8336a67b071cf07dfb7b3c0197a0010442b9d1b65471c057cd0b9 +EBUILD gnat_util-2016.ebuild 1307 SHA256 57d1b143a0b8f8d1f2043f760094619a159817bcf6a8576d92ba5eeaae520fea SHA512 14beff76e4dfa5322e86d26be022d0111db1bcace518752d33d19f06ac42085d462a24172a36d387f0060ddce4fb7f623d973ad925f781500696bba93eba8f5d WHIRLPOOL 8e01ff461cc8eff12d696548d8504362548a4c9920b77bf6c81e2ede04c74c0669e54c4da258a74b6a590096ae5a1ad7ec8d572c83b32f62aafb2765db5d1244 +EBUILD gnat_util-2017.ebuild 1301 SHA256 5d59ce0411e132ebb87b0322350046a42ee78aa05b90c7e1d0c12343f73c19fd SHA512 9e7da34419a6aa471ad45f7faea79bdb264d33ae0d7a2809777beaf897bb476f67f5f1c1679de9cb95895628cc46f874ff76b7c14bc7615c9b0368587878075b WHIRLPOOL 794ab6edaf2bccf17d0602b0fcbfe8c871c99d3af1d0047545f83e02535a4a5d746d6980ee098362b6b66376a7f38824d331c05b901993464250db0adf0f4892 +MISC metadata.xml 1149 SHA256 7caeeaad6896e163a48738d2968dcaab33d9d0c516851ccf83e130faedf2e597 SHA512 d433f228882662e5b896d0ade071d502cee9c260fad096fe2556a5e7c4eb9ce82287edfb0240f96716538160d5403db010712633248bd6c53097951bb899313c WHIRLPOOL cbd35e8cc60e27d4a155072dd2e2e24e12b17839cd65e0ef637d3b0fe7d9365bddbe52fe3c791730c56471bc1422459f172139d4802f7f05ca0885b7800a4ffb diff --git a/dev-ada/gnat_util/files/gnat_util-2016-gentoo.patch b/dev-ada/gnat_util/files/gnat_util-2016-gentoo.patch new file mode 100644 index 000000000000..7559894c6d00 --- /dev/null +++ b/dev-ada/gnat_util/files/gnat_util-2016-gentoo.patch @@ -0,0 +1,100 @@ +--- gnat_util-gpl-2014-src/Makefile.old 2016-12-28 09:56:49.378950217 +0100 ++++ gnat_util-gpl-2014-src/Makefile 2016-12-28 09:57:12.301562519 +0100 +@@ -19,17 +19,26 @@ + MKDIR=mkdir -p + SRC=gen_src + +-.PHONY: all +-all: generate_sources ++build-static: + ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ +- -XLIBRARY_TYPE=static -Pgnat_util -p ++ -XLIBRARY_TYPE=static -Pgnat_util -p \ ++ -cargs:ada $(ADAFLAGS) -cargs:C $(CFLAGS) +-ifeq ($(ENABLE_SHARED), yes) ++build-shared: + ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ +- -XLIBRARY_TYPE=relocatable -Pgnat_util -p ++ -XLIBRARY_TYPE=relocatable -Pgnat_util -p \ ++ -cargs:ada $(ADAFLAGS) -cargs:C $(CFLAGS) +-endif +-ifeq ($(ENABLE_PIC), yes) ++build-static-pic: + ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ +- -XLIBRARY_TYPE=static-pic -Pgnat_util -p ++ -XLIBRARY_TYPE=static-pic -Pgnat_util -p \ ++ -cargs:ada $(ADAFLAGS) -cargs:C $(CFLAGS) ++.PHONY: all ++all: generate_sources ++ $(MAKE) build-static ++ifeq ($(ENABLE_SHARED), yes) ++ $(MAKE) build-shared ++endif ++ifeq ($(ENABLE_PIC), yes) ++ $(MAKE) build-static-pic + endif + + .PHONY: generate_sources +@@ -48,7 +48,7 @@ + $(MKDIR) $(SRC) + $(CP) xsnamest.adb xutil.* snames.adb-tmpl snames.ads-tmpl snames.h-tmpl $(SRC) + (cd $(SRC) && \ +- gnatmake -gnatf -gnatwae -gnatyg -gnatyS xsnamest && \ ++ ${GNATMAKE} -gnatf -gnatwae -gnatyg -gnatyS xsnamest && \ + ./xsnamest && mv snames.ns snames.ads && mv snames.nb snames.adb) + $(CP) sdefault_adb.gnat_util $(SRC)/sdefault.adb + +@@ -58,8 +58,7 @@ + --prefix=$(prefix) --project-subdir=lib/gnat gnat_util + endif + +-.PHONY: install +-install: install-clean ++install-static: + ${INSTALLER} -p -f -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ + -XLIBRARY_TYPE=static \ + --prefix=$(prefix) \ +@@ -67,7 +66,7 @@ + --lib-subdir=lib/gnat_util/static \ + --project-subdir=lib/gnat \ + --build-var=LIBRARY_TYPE --build-name=static -Pgnat_util +-ifeq ($(ENABLE_SHARED), yes) ++install-shared: + ${INSTALLER} -p -f -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ + -XLIBRARY_TYPE=relocatable \ + --prefix=$(prefix) \ +@@ -75,8 +74,7 @@ + --lib-subdir=lib/gnat_util/relocatable \ + --project-subdir=lib/gnat \ + --build-var=LIBRARY_TYPE --build-name=relocatable -Pgnat_util +-endif +-ifeq ($(ENABLE_PIC), yes) ++install-static-pic: + ${INSTALLER} -p -f -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ + -XLIBRARY_TYPE=static-pic \ + --prefix=$(prefix) \ +@@ -84,6 +82,14 @@ + --lib-subdir=lib/gnat_util/static-pic \ + --project-subdir=lib/gnat \ + --build-var=LIBRARY_TYPE --build-name=static-pic -Pgnat_util ++.PHONY: install ++install: install-clean ++ $(MAKE) install-static ++ifeq ($(ENABLE_SHARED), yes) ++ $(MAKE) install-shared ++endif ++ifeq ($(ENABLE_PIC), yes) ++ $(MAKE) install-static-pic + endif + + .PHONY: clean +--- gnat_util-gpl-2016-src/gnat_util.gpr.old 2017-02-09 22:15:27.153827164 +0100 ++++ gnat_util-gpl-2016-src/gnat_util.gpr 2017-02-09 22:15:38.307627480 +0100 +@@ -31,6 +31,7 @@ + for Default_Switches ("Ada") use ("-O0", "-gnato", "-g", "-gnata"); + for Default_Switches ("C") use ("-g"); + end case; ++ for Driver ("C") use External ("CC", "gcc"); + end Compiler; + + package Builder is diff --git a/dev-ada/gnat_util/files/gnat_util-2017-gentoo.patch b/dev-ada/gnat_util/files/gnat_util-2017-gentoo.patch new file mode 100644 index 000000000000..50f74d3a1381 --- /dev/null +++ b/dev-ada/gnat_util/files/gnat_util-2017-gentoo.patch @@ -0,0 +1,80 @@ +--- gnat_util-gpl-2014-src/Makefile.old 2016-12-28 09:56:49.378950217 +0100 ++++ gnat_util-gpl-2014-src/Makefile 2016-12-28 09:57:12.301562519 +0100 +@@ -21,21 +21,30 @@ + + .PHONY: all + all: generate_sources +- ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ +- -XLIBRARY_TYPE=static -Pgnat_util -p ++ $(MAKE) build-static + ifeq ($(ENABLE_SHARED), yes) +- ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ +- -XLIBRARY_TYPE=relocatable -Pgnat_util -p ++ $(MAKE) build-shared + endif ++ $(MAKE) build-static-pic ++build-static: ++ ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ ++ -XLIBRARY_TYPE=static -Pgnat_util -p -XCC=${CC} \ ++ -cargs:ada $(ADAFLAGS) -cargs:C $(CFLAGS) ++build-shared: ++ ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ ++ -XLIBRARY_TYPE=relocatable -Pgnat_util -p -XCC=${CC} \ ++ -cargs:ada $(ADAFLAGS) -cargs:C $(CFLAGS) ++build-static-pic: + ${BUILDER} -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ +- -XLIBRARY_TYPE=static-pic -Pgnat_util -p ++ -XLIBRARY_TYPE=static-pic -Pgnat_util -p -XCC=${CC} \ ++ -cargs:ada $(ADAFLAGS) -cargs:C $(CFLAGS) + + .PHONY: generate_sources + generate_sources: + $(MKDIR) $(SRC) + $(CP) xsnamest.adb xutil.* snames.adb-tmpl snames.ads-tmpl snames.h-tmpl $(SRC) + (cd $(SRC) && \ +- gnatmake -gnatf -gnatwae -gnatyg -gnatyS xsnamest && \ ++ ${GNATMAKE} -gnatf -gnatwae -gnatyg -gnatyS xsnamest && \ + ./xsnamest && mv snames.ns snames.ads && mv snames.nb snames.adb) + $(CP) sdefault_adb.gnat_util $(SRC)/sdefault.adb + +@@ -47,6 +56,12 @@ + + .PHONY: install + install: install-clean ++ ${MAKE} install-static ++ifeq ($(ENABLE_SHARED), yes) ++ ${MAKE} install-shared ++endif ++ ${MAKE} install-static-pic ++install-static: + ${INSTALLER} -p -f -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ + -XLIBRARY_TYPE=static \ + --prefix=$(prefix) \ +@@ -54,7 +69,7 @@ + --lib-subdir=lib/gnat_util/static \ + --project-subdir=lib/gnat \ + --build-var=LIBRARY_TYPE --build-name=static -Pgnat_util +-ifeq ($(ENABLE_SHARED), yes) ++install-shared: + ${INSTALLER} -p -f -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ + -XLIBRARY_TYPE=relocatable \ + --prefix=$(prefix) \ +@@ -62,7 +77,7 @@ + --lib-subdir=lib/gnat_util/relocatable \ + --project-subdir=lib/gnat \ + --build-var=LIBRARY_TYPE --build-name=relocatable -Pgnat_util +-endif ++install-static-pic: + ${INSTALLER} -p -f -m -XOS=$(OS_TYPE) -XBUILD=$(BUILD_TYPE) \ + -XLIBRARY_TYPE=static-pic \ + --prefix=$(prefix) \ +--- gnat_util-gpl-2016-src/gnat_util.gpr.old 2017-02-09 22:15:27.153827164 +0100 ++++ gnat_util-gpl-2016-src/gnat_util.gpr 2017-02-09 22:15:38.307627480 +0100 +@@ -31,6 +31,7 @@ + for Default_Switches ("Ada") use ("-O0", "-gnato", "-g", "-gnata"); + for Default_Switches ("C") use ("-g"); + end case; ++ for Driver ("C") use External ("CC", "gcc"); + end Compiler; + + package Builder is diff --git a/dev-ada/gnat_util/gnat_util-2016.ebuild b/dev-ada/gnat_util/gnat_util-2016.ebuild new file mode 100644 index 000000000000..81f44021d41e --- /dev/null +++ b/dev-ada/gnat_util/gnat_util-2016.ebuild @@ -0,0 +1,55 @@ +# 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="Provides access to GNAT compiler internals for AdaCore utilities" +HOMEPAGE="http://libre.adacore.com" +SRC_URI="http://mirrors.cdn.adacore.com/art/57399637c7a447658e0affa6 + -> ${MYP}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnat_2016 gnat_2017 +shared static static-pic" + +RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) + gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )" +DEPEND="${RDEPEND} + dev-ada/gprbuild[gnat_2016=,gnat_2017=]" +REQUIRED_USE="^^ ( gnat_2016 gnat_2017 )" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_compile() { + if use gnat_2016; then + GCC_PV=4.9.4 + else + GCC_PV=6.3.0 + fi + GCC=${CHOST}-gcc-${GCC_PV} + GNATMAKE=${CHOST}-gnatmake-${GCC_PV} + emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \ + BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources + for kind in shared static static-pic; do + if use ${kind}; then + emake CC="${GCC}" BUILDER="gprbuild -v -j$(makeopts_jobs)" \ + build-${kind} + fi + done +} + +src_install() { + for kind in shared static static-pic; do + if use ${kind}; then + emake prefix="${D}"/usr install-${kind} + fi + done + einstalldocs +} diff --git a/dev-ada/gnat_util/gnat_util-2017.ebuild b/dev-ada/gnat_util/gnat_util-2017.ebuild new file mode 100644 index 000000000000..afceac741060 --- /dev/null +++ b/dev-ada/gnat_util/gnat_util-2017.ebuild @@ -0,0 +1,55 @@ +# 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="Provides access to GNAT compiler internals for AdaCore utilities" +HOMEPAGE="http://libre.adacore.com" +SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed037 + -> ${MYP}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnat_2016 gnat_2017 +shared static static-pic" + +RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) + gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )" +DEPEND="${RDEPEND} + dev-ada/gprbuild[gnat_2016=,gnat_2017=]" +REQUIRED_USE="!gnat_2016 gnat_2017" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_compile() { + if use gnat_2016; then + GCC_PV=4.9.4 + else + GCC_PV=6.3.0 + fi + GCC=${CHOST}-gcc-${GCC_PV} + GNATMAKE=${CHOST}-gnatmake-${GCC_PV} + emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \ + BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources + for kind in shared static static-pic; do + if use ${kind}; then + emake CC="${GCC}" BUILDER="gprbuild -v -j$(makeopts_jobs)" \ + build-${kind} + fi + done +} + +src_install() { + for kind in shared static static-pic; do + if use ${kind}; then + emake prefix="${D}"/usr install-${kind} + fi + done + einstalldocs +} diff --git a/dev-ada/gnat_util/metadata.xml b/dev-ada/gnat_util/metadata.xml new file mode 100644 index 000000000000..22a3c1f31fe6 --- /dev/null +++ b/dev-ada/gnat_util/metadata.xml @@ -0,0 +1,24 @@ +<?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> + <use> + <flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag> + <flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag> + <flag name="shared">Build gnat_util shared library</flag> + <flag name="static">Build gnat_util static library</flag> + <flag name="static-pic">Build gnat_util static library with pic code</flag> + </use> + <longdescription lang="en"> + Gnat_Util is a library uniting a number of GNAT sources that are used by + different tools. At the moment Gnat_Util provides GNAT sources needed by ASIS, + GNATCOLL and Gprbuild. Its main purpose is allowing to simultaneously use + tools like ASIS and GNATCOLL (and other ones based on GNAT sources, if they + are to come), which would normally cause name conflicts between the same GNAT + sources that they use. Building both of them using same set of sources that + is Gnat_Util solves this problem. + </longdescription> +</pkgmetadata> |