ports/www/aws/files/patch-src_src.gpr
John Marino fc445b2e3f Ada Framework: Switch to gcc5-aux, upgrade 6 packages at once
The transition from gcc-aux to gcc5-aux in the Ada framework has been
blocked by the inability to build gtkada3 and, once resolved, GPS (due
to tight locking with compiler).

A few days ago, Adacore made their annual release of their main libre
products, include GPS.  However, some products were tightly coupled with
the recent compilers, so in order to upgrade, the compiler had to be
switched and dependencies require many ports to be upgraded at once:

  * lang/asis
  * devel/gnatcoll
  * devel/gps
  * x11-toolkits/gtkada3
  * www/aws
  * www/aws-demos

While the version upgrades were modest in most cases (gps, gtkada3), the
amount of work put into each port was significant.  There are too many
improvements to mention here.  A few include the removal of dynamic
package lists and incorporating gnatcoll into gps to avoid building it
twice.  A private "exp-run" was done all on all 50+ Ada ports to ensure
they still build.

Also, a new argument was added to Uses/ada.mk, "run", that pulls in the
GNAT compiler as a run depends.  This was necessary for GPS that will
not launch correctly without the compiler in place.
2015-06-23 22:20:35 +00:00

63 lines
2.1 KiB
Text

--- src/src.gpr.orig 2015-06-22 10:52:10 UTC
+++ src/src.gpr
@@ -21,13 +21,14 @@ with "../.build/projects/aws_xmlada";
with "../shared";
with "../include/include";
with "../ssl/ssl";
+with "../templates_parser/temparse";
library project Src is
for Languages use ("Ada", "Project file", "Makefile");
for Source_Dirs use
- ("core", "extended", "../templates_parser/src", "../config/src",
+ ("core", "extended", "../config/src",
"../config/ssl", "../" & Shared.Target_Dir & "/setup/src", ".");
-- XMLAda Installed, add xsrc and soap directories
@@ -35,7 +36,7 @@ library project Src is
case Shared.XMLAda is
when "Installed" =>
for Source_Dirs use project'Source_Dirs &
- ("xsrc", "soap", "../templates_parser/xsrc");
+ ("xsrc", "soap");
when "Disabled" =>
null;
end case;
@@ -68,7 +69,7 @@ library project Src is
when "Windows_NT" =>
for Library_Options use ("-lwsock32", "-lws2_32");
when others =>
- null;
+ for Library_Options use ("-R", "-Wl,-R,@ADDITIONAL_RPATH@");
end case;
case Shared.LDAP is
@@ -79,7 +80,7 @@ library project Src is
Project'Library_Options & ("-lwldap32");
when others =>
for Library_Options use
- Project'Library_Options & ("-lldap");
+ Project'Library_Options & ("-L@PREFIX@/lib", "-lldap");
end case;
when "Disabled" =>
@@ -124,17 +125,6 @@ library project Src is
for Implementation_Suffix ("Makefile") use ".txt";
for Implementation_Exceptions ("Makefile") use ("Makefile");
- -- Templates Parser
-
- for Specification ("Templates_Parser.Configuration")
- use "templates_parser-configuration__aws.ads";
-
- for Implementation ("Templates_Parser.Input")
- use "templates_parser-input__aws.adb";
-
- for Implementation ("Templates_Parser_Tasking")
- use "templates_parser_tasking__standard_tasking.adb";
-
-- SOCKLIB
case Shared.SOCKLIB is