From 89c6c06b8c42107dd231687a1012354e7d3039fc Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 26 Nov 2017 11:42:28 +0000 Subject: gentoo resync : 26.11.2017 --- dev-ada/gps/Manifest | 5 + dev-ada/gps/files/gps-2017-gentoo.patch | 296 ++++++++++++++++++++++++++++++++ dev-ada/gps/gps-2017.ebuild | 69 ++++++++ dev-ada/gps/metadata.xml | 13 ++ 4 files changed, 383 insertions(+) create mode 100644 dev-ada/gps/Manifest create mode 100644 dev-ada/gps/files/gps-2017-gentoo.patch create mode 100644 dev-ada/gps/gps-2017.ebuild create mode 100644 dev-ada/gps/metadata.xml (limited to 'dev-ada/gps') diff --git a/dev-ada/gps/Manifest b/dev-ada/gps/Manifest new file mode 100644 index 000000000000..8fadaae1fe14 --- /dev/null +++ b/dev-ada/gps/Manifest @@ -0,0 +1,5 @@ +AUX gps-2017-gentoo.patch 11521 BLAKE2B d036d5b495cf3d08718347f5f2dba6c327cd97aec437b9b82df7808fc6de5ed24100cdfafec0a54bc162e64b17f9ffa868239582c69b57e218ae5efd5c8da4fa SHA512 950f9b27f50b18d30c29babcc212d52577b20ef17acae8ea4d5a1973b18ab6d01a2ba8d70b5693ea03ad0f50e06011aab6ee54f9399e1c58d61793f4f33794bd +DIST gnat-gpl-2017-x86_64-linux-bin.tar.gz 496338280 BLAKE2B b3eee6d311fb9c20bc8fa7217c0731ca1e91ced38700df1d63d91a16c3fa28dfd44c7c8e867c3a857b88e4f0c8b2a7200fb6a8a630b8403538c4784f8914d1a5 SHA512 01a8f3be9b7b7e83cc5bd4a45137b1d35c6448bc22a88bcaf5d312cd63e11081b6b2fe9f09ad2a27d8f0b6471fc5c1a99573bf3bcee1589329054074eaeef04f +DIST gps-gpl-2017-src.tar.gz 41216830 BLAKE2B 51ca89c38fa81888a9cf1831cf97f7e0ad72c444328a29063249a4fe72bbdc8357552d470872e9fbbeaf349ef0427b59fa41a0efb56200a07a9426343c731a57 SHA512 101ecef7f183de1da0c2b09d77f284a5e8c5ae56f34a897c8d471e79fe9a2832742608ff5251197ba2a52b5d9dfee6c6937fc22cd55f6d8f38359b070393cb64 +EBUILD gps-2017.ebuild 1629 BLAKE2B f03738019a930d22c4b7e23cc75b670de32a611a9c93fe770641df68461354a2ca8a4c9b34ba1cd7dc372527e2bda6e157fd7b02fe699d751d95edfb3827e74e SHA512 6b1a443e067c071c2116689e5f0f522d9ced9c4cb8de94a78129ef92593a1eb150ee3263e98841f496876139313b0b89159721b4be37a609eed0d89eadafa8b5 +MISC metadata.xml 438 BLAKE2B 105849097d35788d4178db05bd3c9ab5b17eb94bee320d0dfc2914889a3764824f53950f674a4d1488b649a344729e03bb8eacda9896636a632b1288a0abf07c SHA512 2bf4e76aab6f461c501b34fee6fbf719715af34e2af827daee3a145de31b96b5568009a21daaa4269a19386b0be45dd419710e926505bda7763312c809864aae diff --git a/dev-ada/gps/files/gps-2017-gentoo.patch b/dev-ada/gps/files/gps-2017-gentoo.patch new file mode 100644 index 000000000000..e6ff1453189d --- /dev/null +++ b/dev-ada/gps/files/gps-2017-gentoo.patch @@ -0,0 +1,296 @@ +--- gps-9999/aclocal.m4.old 2017-05-13 21:59:20.129039064 +0200 ++++ gps-9999/aclocal.m4 2017-05-13 22:02:12.637234659 +0200 +@@ -37,7 +37,7 @@ + HAVE_GNAT_PROJECT_$1=yes + else + # Try with "gnatls", in case gprls was not available +- if AC_TRY_COMMAND([gnat ls -Pconftest.gpr system.ads > /dev/null 2>conftest.out]) ++ if AC_TRY_COMMAND([@GNAT@ ls -Pconftest.gpr system.ads > /dev/null 2>conftest.out]) + then + HAVE_GNAT_PROJECT_$1=yes + else +@@ -156,7 +156,7 @@ + + AC_DEFUN(AM_PATH_GNAT, + [ +- AC_PATH_PROG(GNATMAKE, gnatmake, no) ++ AC_PATH_PROG(GNATMAKE, @GNATMAKE@, no) + + if test x$GNATMAKE = xno ; then + AC_MSG_ERROR(I could not find gnatmake. See the file 'INSTALL' for more details.) +@@ -279,7 +279,7 @@ + AC_MSG_RESULT($GTK_PREFIX $GLIB_PREFIX $ATK_PREFIX $PANGO_PREFIX $CAIRO_PREFIX) + fi + +- AC_PATH_PROG(GNATDRV, gnat, no) ++ AC_PATH_PROG(GNATDRV, @GNAT@, no) + min_gtk_version=ifelse([$1], ,2.0.0,$1) + AC_MSG_CHECKING(for GtkAda - version >= $min_gtk_version) + GTKADA_PRJ=`$GNATDRV ls -vP1 -Pgtkada 2>&1 | grep gtkada.gpr | grep Parsing | cut -d'"' -f2 | head -1` +--- gps-gps-17.0/templates_parser/templates_parser.gpr.old 2017-05-18 21:34:42.892039427 +0200 ++++ gps-gps-17.0/templates_parser/templates_parser.gpr 2017-05-18 21:35:16.661512990 +0200 +@@ -55,7 +55,7 @@ + + end Naming; + +- Common_Options := ("-gnat05"); ++ Common_Options := ("-gnat05", "-fPIC"); + -- Common options used for the Debug and Release modes + + Debug_Options := +--- gps-gps-17.0/shared.gpr.in.old 2017-05-18 21:35:56.475892075 +0200 ++++ gps-gps-17.0/shared.gpr.in 2017-05-18 21:36:24.972447550 +0200 +@@ -24,7 +24,7 @@ + end IDE; + + package Compiler is +- Common := ("-g", "-gnat12"); ++ Common := ("-g", "-gnat12", "-fPIC"); + Optimize := (); + + case OS is +@@ -83,6 +83,7 @@ + when "false" => + null; + end case; ++ for Driver use External ("CC", "gcc"); + end Linker; + + end Shared; +--- gps-gps-17.0/common/common_with_xmlada.gpr.in.old 2017-05-18 21:37:25.302506085 +0200 ++++ gps-gps-17.0/common/common_with_xmlada.gpr.in 2017-05-18 21:37:58.472988222 +0200 +@@ -13,7 +13,7 @@ + for Switches ("Ada") use Shared.Compiler'Switches ("Ada"); + for Switches ("C") use Shared.Compiler'Switches ("C"); + for Switches ("test_htables.adb") use ("-g", "-O2", "-gnatwue"); +- for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg"); ++ for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg", "-fPIC"); + + No_Checks := ("-g", "-O2", "-gnat2012", "-gnatpn"); + +--- gps-gps-17.0/common/common_no_xmlada.gpr.in.old 2017-05-18 21:37:31.406410812 +0200 ++++ gps-gps-17.0/common/common_no_xmlada.gpr.in 2017-05-18 21:38:14.796733359 +0200 +@@ -12,7 +12,7 @@ + for Switches ("Ada") use Shared.Compiler'Switches ("Ada"); + for Switches ("C") use Shared.Compiler'Switches ("C"); + for Switches ("test_htables.adb") use ("-g", "-O2", "-gnatwue"); +- for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg"); ++ for Switches ("s-memory.adb") use ("-g", "-O2", "-gnatpg", "-fPIC"); + + No_Checks := ("-g", "-O2", "-gnat2012", "-gnatpn"); + +--- gps-gps-17.0/widgets/widgets.gpr.old 2017-05-18 22:26:05.117847006 +0200 ++++ gps-gps-17.0/widgets/widgets.gpr 2017-05-18 22:21:01.646368091 +0200 +@@ -12,6 +12,7 @@ + package Compiler extends Shared.Compiler is + for Switches ("C") use + Shared.Compiler'Switches ("C") & GnatColl_Gtk.Gtk_Include; ++ for Driver ("C") use External ("CC", "gcc"); + end Compiler; + + package IDE renames Shared.IDE; +--- gps-gps-17.0/cli/Makefile.old 2017-05-19 08:07:44.591042479 +0200 ++++ gps-gps-17.0/cli/Makefile 2017-05-19 08:08:50.086991123 +0200 +@@ -1,8 +1,9 @@ + GPRBUILD=gprbuild + GPRCLEAN=gprclean ++GPRBUILD_FLAGS=0 + + all default: +- $(GPRBUILD) -p -Pcli ++ $(GPRBUILD) $(GPRBUILD_FLAGS) -p -Pcli + + clean: + $(GPRCLEAN) -q -r -Pcli +--- gps-gps-17.0/gps/gps.gpr.old 2017-05-19 09:24:19.438123599 +0200 ++++ gps-gps-17.0/gps/gps.gpr 2017-05-19 09:24:58.639492518 +0200 +@@ -75,7 +75,7 @@ + end case; + for Switches ("Ada") use Linker'Switches ("Ada") + & Shared.Linker'Switches ("Ada"); +- ++ for Driver use External ("CC", "gcc"); + -- for Switches ("Ada") use ("-lgmem"); + -- for Switches ("Ada") use ("-pg"); + end Linker; +--- gps-gps-17.0/testsuite/Makefile.old 2017-05-19 11:08:48.966913663 +0200 ++++ gps-gps-17.0/testsuite/Makefile 2017-05-19 11:06:17.245366714 +0200 +@@ -1,5 +1,6 @@ + GPRBUILD=gprbuild + GPRCLEAN=gprclean ++GPRBUILD_FLAGS= + + SYS := $(shell gcc -dumpmachine) + ifeq ($(OS),Windows_NT) +@@ -14,7 +14,7 @@ + endif + + all default: package +- $(GPRBUILD) -P testsuite_drivers.gpr -m -XOS=${OS} -j0 -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable ++ $(GPRBUILD) $(GPRBUILD_FLAGS) -P testsuite_drivers.gpr -m -XOS=${OS} -j0 -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable + + package: + mkdir -p share/doc +--- gps-gps-17.0/testsuite/testsuite_drivers.gpr.old 2017-05-19 11:21:20.645705481 +0200 ++++ gps-gps-17.0/testsuite/testsuite_drivers.gpr 2017-05-19 11:15:42.163206405 +0200 +@@ -10,6 +10,10 @@ + for Object_Dir use "obj"; + for Exec_Dir use "bin"; + ++ package Compiler is ++ for Switches ("Ada") use ("-fPIC"); ++ end Compiler; ++ + package Builder is + for Switches ("Ada") use ("-gnat12", "-ws", "-g", "-j0", "-m", "-gnaty"); + end Builder; +--- gps-gps-17.0/Makefile.in.old 2017-05-19 11:49:47.172018411 +0200 ++++ gps-gps-17.0/Makefile.in 2017-05-19 11:50:24.653412280 +0200 +@@ -10,7 +10,7 @@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + INSTALL_DATA = @INSTALL_DATA@ + GNATCOLL_INSTALL = @GNATCOLL_INSTALL@ +-prefix = @prefix@ ++prefix = $(DESTDIR)@prefix@ + bindir = $(prefix)/bin + sharedir = $(prefix)/share + examplesdir = $(prefix)/share/examples/gps +--- gps-gps-17.0/docs/Makefile.in.old 2017-05-19 11:54:52.805076624 +0200 ++++ gps-gps-17.0/docs/Makefile.in 2017-05-19 11:55:24.332566945 +0200 +@@ -1,4 +1,4 @@ +-prefix = @prefix@ ++prefix = $(DESTDIR)@prefix@ + docdir = $(prefix)/share/doc/gps + sharedir = $(prefix)/share/gps + +--- gps-gpl-2017-src/share/support/core/gnat_help_menus.py.old 2017-11-23 21:41:11.897912345 +0100 ++++ gps-gpl-2017-src/share/support/core/gnat_help_menus.py 2017-11-23 21:44:53.019038030 +0100 +@@ -25,7 +25,7 @@ + # GPRbuild + 'gprbuild': {"GPR Tools User's Guide": + ('gprbuild/html/gprbuild_ug.html', 'GPR/')}, +- 'gnatls': { ++ '@GNATLS@': { + # Ada RMs + "Ada 2005 Reference Manual": ('gnat/html/arm05.html', 'Ada/'), + "Ada 2012 Reference Manual": ('gnat/html/arm12.html', 'Ada/'), +@@ -86,8 +86,8 @@ + + for exec_name in _DOC_ENTRIES.keys(): + executable = exec_name +- if exec_name == 'gnatls' and GPS.get_target(): +- executable = '{}-gnatls'.format(GPS.get_target()) ++ if exec_name == '@GNATLS@' and GPS.get_target(): ++ executable = '{}-@GNATLS@'.format(GPS.get_target()) + ex = os_utils.locate_exec_on_path(executable) + if ex: + for descr, tup in _DOC_ENTRIES[exec_name].iteritems(): +--- gps-gpl-2017-src/share/support/core/toolchains.py.old 2017-11-23 21:46:11.969652447 +0100 ++++ gps-gpl-2017-src/share/support/core/toolchains.py 2017-11-23 21:47:21.723427305 +0100 +@@ -16,11 +16,11 @@ + nullified by using an empty value in the corresponding tag + --> + +- gnat +- gnatls ++ @GNAT@ ++ @GNATLS@ + gdb + c++filt +- gnatmake ++ @GNATMAKE@ + gcc + g++ + gcc +--- gps-gpl-2017-src/share/support/core/projects.py.old 2017-11-23 21:49:13.477462632 +0100 ++++ gps-gpl-2017-src/share/support/core/projects.py 2017-11-23 21:51:53.774640693 +0100 +@@ -143,7 +143,7 @@ + + + +- gnatmake ++ @GNATMAKE@ + + + +@@ -163,7 +163,7 @@ + description="The gnatls command used to find where the Ada run time files are installed (including optional arguments, e.g. gnatls --RTS=sjlj)." + hide_in="all" + label="Gnatls"> +- gnatls ++ @GNATLS@ + + + +@@ -175,7 +175,7 @@ + description="The gnat driver used to run the various commands associated with the GNAT toolchain." + hide_in="all" + label="Gnat"> +- gnat ++ @GNAT@ + + + +--- gps-gpl-2017-src/cli/src/gps-cli_utils.adb.old 2017-11-23 22:00:22.716652753 +0100 ++++ gps-gpl-2017-src/cli/src/gps-cli_utils.adb 2017-11-23 22:01:19.885640611 +0100 +@@ -166,7 +166,7 @@ + + -- Set GNAT version + Kernel.Registry.Environment.Set_Path_From_Gnatls +- ("gnatls", GNAT_Version); ++ ("@GNATLS@", GNAT_Version); + end Create_Kernel_Context; + + ---------------------------- +--- gps-gpl-2017-src/toolchains_editor/core/src/toolchains.adb.old 2017-11-23 22:02:52.819994229 +0100 ++++ gps-gpl-2017-src/toolchains_editor/core/src/toolchains.adb 2017-11-23 22:07:20.326248295 +0100 +@@ -309,12 +309,12 @@ + else + Set_Command + (Tc, GNAT_Driver, +- To_String (Full_Path) & "gnat", ++ To_String (Full_Path) & "@GNAT@", + From_Default, + Is_Default_Path); + Set_Command + (Tc, GNAT_List, +- To_String (Full_Path) & "gnatls", ++ To_String (Full_Path) & "@GNATLS@", + From_Default, + Is_Default_Path); + Set_Command +@@ -728,10 +728,10 @@ + begin + case Name is + when GNAT_List => +- return "gnatls"; ++ return "@GNATLS@"; + + when GNAT_Driver => +- return "gnat"; ++ return "@GNAT@"; + + when Debugger => + return "gdb"; +@@ -2000,15 +2000,18 @@ + Manager => Toolchain_Manager (Manager), + Refs => 0); + +- Set_Command (Native_Toolchain, GNAT_Driver, "gnat", From_Default, True); +- Set_Command (Native_Toolchain, GNAT_List, "gnatls", From_Default, True); ++ Set_Command (Native_Toolchain, GNAT_Driver, "@GNAT@", From_Default, ++ True); ++ Set_Command (Native_Toolchain, GNAT_List, "@GNATLS@", From_Default, ++ True); + Set_Command (Native_Toolchain, Debugger, "gdb", From_Default, True); + Set_Command (Native_Toolchain, CPP_Filt, "c++filt", From_Default, True); + + Compute_Predefined_Paths (Native_Toolchain); + + if Get_Compiler (Native_Toolchain, "Ada") = No_Compiler then +- Add_Compiler (Native_Toolchain, "Ada", "gnatmake", From_Default); ++ Add_Compiler (Native_Toolchain, "Ada", "@GNATMAKE@", ++ From_Default); + end if; + + if Get_Compiler (Native_Toolchain, "C") = No_Compiler then diff --git a/dev-ada/gps/gps-2017.ebuild b/dev-ada/gps/gps-2017.ebuild new file mode 100644 index 000000000000..209c3305c697 --- /dev/null +++ b/dev-ada/gps/gps-2017.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) +inherit python-single-r1 autotools + +MYP=${PN}-gpl-${PV}-src + +DESCRIPTION="The GNAT Programming Studio" +HOMEPAGE="http://libre.adacore.com/tools/gps/" +SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed03b + -> ${MYP}.tar.gz + doc? ( http://mirrors.cdn.adacore.com/art/591c6d80c7a447af2deed1d7 + -> gnat-gpl-2017-x86_64-linux-bin.tar.gz )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +RDEPEND="${PYTHON_DEPS} + >=dev-ada/gnatcoll-2017[gtk,iconv,projects,pygobject,shared,sqlite,tools] + >=dev-ada/gtkada-2017 + dev-ada/libadalang + dev-libs/gobject-introspection + dev-libs/libffi + sys-devel/llvm:= + sys-devel/clang:= + x11-themes/adwaita-icon-theme + x11-themes/hicolor-icon-theme + dev-python/pep8[${PYTHON_USEDEP}] + dev-python/jedi[${PYTHON_USEDEP}]" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}"/${MYP} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_prepare() { + default + GCC_PV=6.3.0 + mv configure.{in,ac} || die + sed -i \ + -e "s:@GNATMAKE@:gnatmake-${GCC_PV}:g" \ + -e "s:@GNAT@:gnat-${GCC_PV}:g" \ + -e "s:@GNATLS@:gnatls-${GCC_PV}:g" \ + aclocal.m4 \ + share/support/core/gnat_help_menus.py \ + share/support/core/toolchains.py \ + share/support/core/projects.py \ + cli/src/gps-cli_utils.adb \ + toolchains_editor/core/src/toolchains.adb \ + || die + eautoreconf +} + +src_compile() { + emake GPRBUILD_FLAGS="-v ${MAKEOPTS}" +} + +src_install() { + default + if use doc; then + insinto /usr/share/doc + doins -r "${WORKDIR}"/gnat-gpl-2017-x86_64-linux-bin/share/doc/gnat + fi +} diff --git a/dev-ada/gps/metadata.xml b/dev-ada/gps/metadata.xml new file mode 100644 index 000000000000..eb9ac43cfff3 --- /dev/null +++ b/dev-ada/gps/metadata.xml @@ -0,0 +1,13 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + GPS is a lightweight, extensible IDE, intended to develop + high-integrity software in Ada and SPARK, with support for C and C++ + as well. + + -- cgit v1.2.3