diff options
Diffstat (limited to 'dev-ada/gtkada')
-rw-r--r-- | dev-ada/gtkada/Manifest | 7 | ||||
-rw-r--r-- | dev-ada/gtkada/files/gtkada-2016-gentoo.patch | 93 | ||||
-rw-r--r-- | dev-ada/gtkada/files/gtkada-2017-gentoo.patch | 63 | ||||
-rw-r--r-- | dev-ada/gtkada/gtkada-2016.ebuild | 65 | ||||
-rw-r--r-- | dev-ada/gtkada/gtkada-2017.ebuild | 65 | ||||
-rw-r--r-- | dev-ada/gtkada/metadata.xml | 17 |
6 files changed, 310 insertions, 0 deletions
diff --git a/dev-ada/gtkada/Manifest b/dev-ada/gtkada/Manifest new file mode 100644 index 000000000000..8646e7c6f82f --- /dev/null +++ b/dev-ada/gtkada/Manifest @@ -0,0 +1,7 @@ +AUX gtkada-2016-gentoo.patch 3728 SHA256 3646ea25757ada2eb7e631b1c411c42d3c4e656d12d512ce828a53e4255559f4 SHA512 8e8815173496f7ebc795e8b20e19f88f50a726cca3657b5798cd7cd613c0196aea4c63daa2874c36d5a039e5b6cc26c67d0003c47ddcf8ca6e9c28dd8a58bf4b WHIRLPOOL fdb302898aee47976904cc764d523e6594959bda33a1b19e2a6ef4314b68bf6cbdd3c2bd6b8fe13d69dd8fdc332d5b74f503aa23d705838ef932ef6283c8b8c5 +AUX gtkada-2017-gentoo.patch 2777 SHA256 166a96a1d9d68a916eb2211b5cc78e3a673776242a83e216ec835450b06e1ce6 SHA512 0027d42e41ee1e754bf54982c5bd31b6fc5a113e9a5e7aed95868ac956097f3226b073721d4a5ccb9dc8d82600089720a72162b02910d6c8afcdfb2ea8ec4b13 WHIRLPOOL d5079e6a54157b363aba4b8b082b9644303e4da33fdbf07119063336d1bc181c4c135fbf5a5c4e3a93c59241bac1d857f796ddfbf885c6a1535d3e92ab04eef7 +DIST gtkada-gpl-2016-src.tgz 11944697 SHA256 263cc8323e726ae22946508792dd719ff266a9e847a4f7c95e27bd13d3fb4d8f SHA512 90912e15d9e22574a3d86e8bd052d4ce0a0d8018386f699dc1ce3c345978e9b3ddc7bdd3e4247a264496c5da7cff6ae68589a02f43193fc957c418e2a8ef63c7 WHIRLPOOL fc12f151c65ccef5d23b520cfc0625606ece06e56ed2d5b28e39bd65e51850d9b5c40e7382207f1d9186f93ce9232f6024bec977af6973163eb6603178dc1a30 +DIST gtkada-gpl-2017-src.tgz 11952333 SHA256 545a125dd41cce2a5e4aeeefbd9538e9e8c7aecbe39c106d27078eb5a649b5f0 SHA512 f5bbb9ebdd966e70b3edcaaf359cb9e75edba3c3f4f8febfa7de9f634f8e96cd0dd1482fb16ad852b1c9f9b0e2c16eb3a437120d37f0638d90af666620f09f3f WHIRLPOOL 69a05d9e8cd956681951a7adeb5eedd5b13f8d403f5fd0f2473e1f2f4579676314cfa7aac81631fe0e8f68362cdb09dde685b8b2bf30801c38f82ae7ba484b88 +EBUILD gtkada-2016.ebuild 1269 SHA256 52b96911b13c45a29a35b8cfe5194ed7af240e2b46c494398ea8e5ea5b5059be SHA512 32a327fa14ec2f7a4e658356d8af7cff460cd7faa6b2dd8d20ae593be5689f9bd8824047b0d034b32833fc978b66290cb2b584730828615f87ee9af18116f689 WHIRLPOOL 6168e9bb16534669f1da403e01449df23d4e398f364c48245f53f6210e00bc54a698e5d18d3204ca265c3127e769c983949eaefe0cf495da8737428d7832d720 +EBUILD gtkada-2017.ebuild 1269 SHA256 fde1117d68c78aa8b48827bbf22fbe9a59d5e825bc28c8ac6df70f4ceccae268 SHA512 c82beb455477b41b485a6c8b1dfa34f50d94112f649f205f0c8b3411c637caa9dd9fc84d90d68fce61e95febdf9a504cbda57999739a6cbebcfc84f99f908d78 WHIRLPOOL 9f15671bf4b42d64d80845b0cf2c38cff8fd990604d3c707def0bc61b32c353743164a6c6c32420cc304bbb9fa478396078b59ad741e6aa4408bf04a9f1e4505 +MISC metadata.xml 765 SHA256 dd15cc8fb534952a5a1ff1d3a5b1cdc777afa89f088b8bfd56419c01f5a5fd56 SHA512 f1f6999e5458ffb19a0d2a99a674f67af4a8839eed7c6a50c31c2d839f0f09abb6a2d1ad05bcf5b4c809a04a5d6b6959d9f27c7a3aca6c94bf50f8044201c59a WHIRLPOOL 6f376028c6c91a2dce783efb12383f2dbb14fdd9f2d9cbfe708c6a239df4ce0ee34b72cc193e55f7ded968c73a22db862690a20fd82846a8cd161961f386cae8 diff --git a/dev-ada/gtkada/files/gtkada-2016-gentoo.patch b/dev-ada/gtkada/files/gtkada-2016-gentoo.patch new file mode 100644 index 000000000000..808b07dfdfaf --- /dev/null +++ b/dev-ada/gtkada/files/gtkada-2016-gentoo.patch @@ -0,0 +1,93 @@ +--- gtkada-gpl-2015-src/shared.gpr.in.old 2017-01-05 23:28:35.838073270 +0100 ++++ gtkada-gpl-2015-src/shared.gpr.in 2017-01-05 23:30:17.752255709 +0100 +@@ -44,6 +44,8 @@ + for Switches ("C") use ("-O2"); + end case; + ++ for Driver ("C") use External ("GCC", "gcc"); ++ for PIC_Option ("C") use ("-fPIC"); + for Switches ("C") use Compiler'Switches ("C") & Gtk_Include; + for Switches ("Objective-C") use Compiler'Switches ("Objective-C") & Gtk_Include; + end Compiler; +--- gtkada-gpl-2016-src/Makefile.in.old 2017-01-21 22:42:18.319969095 +0100 ++++ gtkada-gpl-2016-src/Makefile.in 2017-01-21 22:42:33.989700236 +0100 +@@ -60,30 +60,33 @@ + LIBRARY_TYPE_FOR_TOOLS=static + endif + +-all: tools tests ++all: tools + static: build_library_type/static + relocatable: build_library_type/relocatable + + tools: + @echo "====== Building tools =====" +- ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) -Psrc/tools/tools.gpr ++ ${GPRBUILD_FULL} -v -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ ++ -Psrc/tools/tools.gpr -cargs:Ada $(ADAFLAGS) + + build_library_type/%: src/gtkada-intl.adb + @echo "====== Building $(@F) libraries =====" +- ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/gtkada.gpr ++ ${GPRBUILD_FULL} -v -XLIBRARY_TYPE=$(@F) -Psrc/gtkada.gpr \ ++ -cargs:Ada $(ADAFLAGS) -cargs:C $(CFLAGS) + ifeq (${HAVE_OPENGL}, True) + ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/opengl/gtkada_gl.gpr + endif + + src/gtkada-intl.adb: src/gtkada-intl.gpb Makefile +- gnatprep -DGETTEXT_INTL=$(GETTEXT_INTL) -DHAVE_GETTEXT=$(HAVE_GETTEXT) src/gtkada-intl.gpb $@ ++ $(GNATPREP) -DGETTEXT_INTL=$(GETTEXT_INTL) -DHAVE_GETTEXT=$(HAVE_GETTEXT) src/gtkada-intl.gpb $@ + + testgtk/opengl/view_gl.adb: testgtk/opengl/view_gl.gpb Makefile +- gnatprep -r -c -DHAVE_GL=${HAVE_OPENGL} -DWIN32=False testgtk/opengl/view_gl.gpb $@ ++ $(GNATPREP) -r -c -DHAVE_GL=${HAVE_OPENGL} -DWIN32=False testgtk/opengl/view_gl.gpb $@ + + tests: testgtk/opengl/view_gl.adb + @echo "====== Building tests =====" +- cd testgtk; ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) -Ptestgtk.gpr -aP ../src ++ cd testgtk; ${GPRBUILD_FULL} -v -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ ++ -Ptestgtk.gpr -aP ../src -cargs:Ada $(ADAFLAGS) + + install/%: force + ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(@F) --build-name=$(@F) \ +@@ -96,7 +96,7 @@ + ifeq (${HAVE_OPENGL}, True) + ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(@F) --build-name=$(@F) \ + --sources-subdir=include/gtkada/gtkada_gl.$(@F) \ +- --lib-subdir=${libdir}/gtkada/gtkada_gl.$(@F) \ ++ --lib-subdir=lib/gtkada/gtkada_gl.$(@F) \ + -Psrc/opengl/gtkada_gl.gpr + endif + +@@ -106,12 +106,9 @@ + --project-subdir=lib/gnat gtkada + endif + +-install: install-clean ++install: + ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ + --mode=usage -Psrc/tools/tools.gpr +- cd testgtk; ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ +- --mode=usage --exec-subdir=${exampledir} \ +- -Ptestgtk.gpr -aP ../src + + @echo '-----------------------------------------------------------------------' + @echo '-- GtkAda has now been installed. --' +--- gtkada-gpl-2016-src/src/gtkada.gpr.old 2017-05-31 14:21:35.007965274 +0200 ++++ gtkada-gpl-2016-src/src/gtkada.gpr 2017-05-31 14:23:16.597315577 +0200 +@@ -41,7 +41,13 @@ + for Library_Name use "gtkada"; + for Library_Version use + "lib" & Project'Library_Name & Shared.So_Ext & "." & Version; +- for Library_Options use Shared.Gtk_Libs; ++ ++ case Shared.Library_Kind is ++ when "relocatable" => ++ for Library_Options use Shared.Gtk_Libs; ++ when others => ++ null; ++ end case; + + package Builder renames Shared.Builder; + package Naming renames Shared.Naming; diff --git a/dev-ada/gtkada/files/gtkada-2017-gentoo.patch b/dev-ada/gtkada/files/gtkada-2017-gentoo.patch new file mode 100644 index 000000000000..ec8ebdf8f601 --- /dev/null +++ b/dev-ada/gtkada/files/gtkada-2017-gentoo.patch @@ -0,0 +1,63 @@ +--- gtkada-gpl-2015-src/shared.gpr.in.old 2017-01-05 23:28:35.838073270 +0100 ++++ gtkada-gpl-2015-src/shared.gpr.in 2017-01-05 23:30:17.752255709 +0100 +@@ -44,6 +44,8 @@ + for Switches ("C") use ("-O2"); + end case; + ++ for Driver ("C") use External ("GCC", "gcc"); ++ for PIC_Option ("C") use ("-fPIC"); + for Switches ("C") use Compiler'Switches ("C") & Gtk_Include; + for Switches ("Objective-C") use Compiler'Switches ("Objective-C") & Gtk_Include; + end Compiler; +--- gtkada-gpl-2016-src/Makefile.in.old 2017-01-21 22:42:18.319969095 +0100 ++++ gtkada-gpl-2016-src/Makefile.in 2017-01-21 22:42:33.989700236 +0100 +@@ -60,30 +60,33 @@ + LIBRARY_TYPE_FOR_TOOLS=static + endif + +-all: tools tests ++all: tools + static: build_library_type/static + relocatable: build_library_type/relocatable + + tools: + @echo "====== Building tools =====" +- ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) -Psrc/tools/tools.gpr ++ ${GPRBUILD_FULL} -v -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ ++ -Psrc/tools/tools.gpr -cargs:Ada $(ADAFLAGS) + + build_library_type/%: src/gtkada-intl.adb + @echo "====== Building $(@F) libraries =====" +- ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/gtkada.gpr ++ ${GPRBUILD_FULL} -v -XLIBRARY_TYPE=$(@F) -Psrc/gtkada.gpr \ ++ -cargs:Ada $(ADAFLAGS) -cargs:C $(CFLAGS) + ifeq (${HAVE_OPENGL}, True) + ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(@F) -Psrc/opengl/gtkada_gl.gpr + endif + + src/gtkada-intl.adb: src/gtkada-intl.gpb Makefile +- gnatprep -DGETTEXT_INTL=$(GETTEXT_INTL) -DHAVE_GETTEXT=$(HAVE_GETTEXT) src/gtkada-intl.gpb $@ ++ $(GNATPREP) -DGETTEXT_INTL=$(GETTEXT_INTL) -DHAVE_GETTEXT=$(HAVE_GETTEXT) src/gtkada-intl.gpb $@ + + testgtk/opengl/view_gl.adb: testgtk/opengl/view_gl.gpb Makefile +- gnatprep -r -c -DHAVE_GL=${HAVE_OPENGL} -DWIN32=False testgtk/opengl/view_gl.gpb $@ ++ $(GNATPREP) -r -c -DHAVE_GL=${HAVE_OPENGL} -DWIN32=False testgtk/opengl/view_gl.gpb $@ + + tests: testgtk/opengl/view_gl.adb + @echo "====== Building tests =====" +- cd testgtk; ${GPRBUILD_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) -Ptestgtk.gpr -aP ../src ++ cd testgtk; ${GPRBUILD_FULL} -v -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ ++ -Ptestgtk.gpr -aP ../src -cargs:Ada $(ADAFLAGS) + + install/%: force + ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(@F) --build-name=$(@F) \ +@@ -121,9 +121,6 @@ + install: install-clean + ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ + --mode=usage -Psrc/tools/tools.gpr +- cd testgtk; ${GPRINSTALL_FULL} -XLIBRARY_TYPE=$(LIBRARY_TYPE_FOR_TOOLS) \ +- --mode=usage --exec-subdir=${DESTDIR}${exampledir} \ +- -Ptestgtk.gpr -aP ../src + + @echo '-----------------------------------------------------------------------' + @echo '-- GtkAda has now been installed. --' diff --git a/dev-ada/gtkada/gtkada-2016.ebuild b/dev-ada/gtkada/gtkada-2016.ebuild new file mode 100644 index 000000000000..6ca105eb3655 --- /dev/null +++ b/dev-ada/gtkada/gtkada-2016.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multiprocessing + +MYP=${PN}-gpl-${PV} + +DESCRIPTION="A complete Ada graphical toolkit" +HOMEPAGE="http://libre.adacore.com//tools/gtkada/" +SRC_URI="http://mirrors.cdn.adacore.com/art/5739985fc7a447658e0affae + -> ${MYP}-src.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnat_2016 gnat_2017 +shared static" + +RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) + gnat_2017? ( dev-lang/gnat-gpl:6.3.0 ) + dev-libs/atk + dev-libs/glib:2 + media-libs/fontconfig + media-libs/freetype + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/pango" +DEPEND="${RDEPEND} + dev-ada/gprbuild[gnat_2016=,gnat_2017=]" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + default + mv configure.{in,ac} + eautoreconf +} + +src_configure() { + if use gnat_2016; then + GCC_PV=4.9.4 + else + GCC_PV=6.3.0 + fi + GCC=${CHOST}-gcc-${GCC_PV} + econf \ + --prefix="${D}/usr" \ + $(use_enable static) \ + $(use_enable shared) \ + --without-GL +} + +src_compile() { + GNATPREP=${CHOST}-gnatprep-${GCC_PV} + GCC=${GCC} emake -j1 GNATPREP=${GNATPREP} PROCESSORS=$(makeopts_jobs) +} + +src_install() { + emake -j1 install + einstalldocs +} diff --git a/dev-ada/gtkada/gtkada-2017.ebuild b/dev-ada/gtkada/gtkada-2017.ebuild new file mode 100644 index 000000000000..659aacbe7b77 --- /dev/null +++ b/dev-ada/gtkada/gtkada-2017.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools multiprocessing + +MYP=${PN}-gpl-${PV} + +DESCRIPTION="A complete Ada graphical toolkit" +HOMEPAGE="http://libre.adacore.com//tools/gtkada/" +SRC_URI="http://mirrors.cdn.adacore.com/art/591ae7a8c7a4473fcbb154c9 + -> ${MYP}-src.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gnat_2016 gnat_2017 +shared static" + +RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) + gnat_2017? ( dev-lang/gnat-gpl:6.3.0 ) + dev-libs/atk + dev-libs/glib:2 + media-libs/fontconfig + media-libs/freetype + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/pango" +DEPEND="${RDEPEND} + dev-ada/gprbuild[gnat_2016=,gnat_2017=]" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + default + mv configure.{in,ac} + eautoreconf +} + +src_configure() { + if use gnat_2016; then + GCC_PV=4.9.4 + else + GCC_PV=6.3.0 + fi + GCC=${CHOST}-gcc-${GCC_PV} + econf \ + --prefix="${D}/usr" \ + $(use_enable static) \ + $(use_enable shared) \ + --without-GL +} + +src_compile() { + GNATPREP=${CHOST}-gnatprep-${GCC_PV} + GCC=${GCC} emake -j1 GNATPREP=${GNATPREP} PROCESSORS=$(makeopts_jobs) +} + +src_install() { + emake -j1 install + einstalldocs +} diff --git a/dev-ada/gtkada/metadata.xml b/dev-ada/gtkada/metadata.xml new file mode 100644 index 000000000000..ba0f05fc23e8 --- /dev/null +++ b/dev-ada/gtkada/metadata.xml @@ -0,0 +1,17 @@ +<?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 gtkada as shared library</flag> + <flag name="static">Build gtkada as static library</flag> + </use> + <longdescription lang="en"> + GtkAda is an Ada graphical toolkit based on Gtk+, providing the complete set of Gtk+ widgets using the Object-Oriented features of this language. GtkAda supports the latest 3.14 stable releases. + </longdescription> +</pkgmetadata> |