Description: allow the user to select each soversion separately
 The default behaviour should not have changed.I have tried to respect
 upstream workflow: all External values are read in
 GnatColl_Shared.gpr.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: no

--- a/gnatcoll_shared.gpr.in
+++ b/gnatcoll_shared.gpr.in
@@ -26,6 +26,15 @@
    Postgres_Has_PQprepare : Yes_No :=
       External ("HAS_PQPREPARE", "@HAS_PQPREPARE@");
 
+   Gnatcoll_Gmp_Version      := External ("GNATCOLL_GMP_VERSION",       Version);
+   Gnatcoll_Gtk_Version      := External ("GNATCOLL_GTK_VERSION",       Version);
+   Gnatcoll_Iconv_Version    := External ("GNATCOLL_ICONV_VERSION" ,    Version);
+   Gnatcoll_Postgres_Version := External ("GNATCOLL_POSTGRES_VERSION",  Version);
+   Gnatcoll_Python_Version   := External ("GNATCOLL_PYTHON_VERSION",    Version);
+   Gnatcoll_Readline_Version := External ("GNATCOLL_READLINE_VERSION" , Version);
+   Gnatcoll_Sqlite_Version   := External ("GNATCOLL_SQLITE_VERSION",    Version);
+   Gnatcoll_Version          := External ("GNATCOLL_VERSION",           Version);
+
    So_Ext := "@SO_EXT@";
 
    type Library_Type_Type is ("relocatable", "static");
--- a/src/gnatcoll__copy.gpr
+++ b/src/gnatcoll__copy.gpr
@@ -11,7 +11,7 @@
    for Library_Name    use GnatColl_Shared.Name;
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Version;
    for Library_Options use GnatColl_Shared.Rss_Libs;
 
    case Gnatcoll_Shared.Projects is
--- a/src/gnatcoll__gnat_util.gpr
+++ b/src/gnatcoll__gnat_util.gpr
@@ -12,7 +12,7 @@
    for Library_Name    use GnatColl_Shared.Name;
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Version;
    for Library_Options use GnatColl_Shared.Rss_Libs;
 
    case Gnatcoll_Shared.Projects is
--- a/src/gnatcoll_gmp.gpr.in
+++ b/src/gnatcoll_gmp.gpr.in
@@ -12,7 +12,7 @@
          for Library_Name    use GnatColl_Shared.Name & "_gmp";
          for Library_Version use
             "lib" & Project'Library_Name
-            & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+            & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Gmp_Version;
 
          --  When linking a shared library (see Linker_Options below)
          for Library_Options use (@GMP_LIBS_GPR@);
--- a/src/gnatcoll_gtk.gpr
+++ b/src/gnatcoll_gtk.gpr
@@ -14,7 +14,7 @@
    for Library_Name    use GnatColl_Shared.Name & "_gtk";
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Gtk_Version;
 
    for Languages use ("Ada", "C");
 
--- a/src/gnatcoll_iconv.gpr
+++ b/src/gnatcoll_iconv.gpr
@@ -13,7 +13,7 @@
    for Library_Name    use GnatColl_Shared.Name & "_" & Name;
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Iconv_Version;
 
    case GnatColl_Shared.Iconv is
       when "no" =>
--- a/src/gnatcoll_postgres.gpr
+++ b/src/gnatcoll_postgres.gpr
@@ -12,7 +12,7 @@
    for Library_Name    use GnatColl_Shared.Name & "_postgres";
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Postgres_Version;
 
    case GnatColl_Shared.Postgres is
       when "no" =>
--- a/src/gnatcoll_python.gpr.in
+++ b/src/gnatcoll_python.gpr.in
@@ -8,7 +8,7 @@
    for Library_Name    use GnatColl_Shared.Name & "_python";
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Python_Version;
 
    --  When linking a shared library (see Linker_Options below in addition)
    for Library_Options use GnatColl_Shared.Python_Libs;
--- a/src/gnatcoll_readline.gpr.in
+++ b/src/gnatcoll_readline.gpr.in
@@ -18,7 +18,7 @@
    for Library_Name    use GnatColl_Shared.Name & "_readline";
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Readline_Version;
 
    package Builder renames GnatColl_Shared.Builder;
    package Compiler renames GnatColl_Shared.Compiler;
--- a/src/gnatcoll_sqlite.gpr
+++ b/src/gnatcoll_sqlite.gpr
@@ -13,7 +13,7 @@
    for Library_Name    use GnatColl_Shared.Name & "_sqlite";
    for Library_Version use
       "lib" & Project'Library_Name
-      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Version;
+      & GnatColl_Shared.So_Ext & "." & GnatColl_Shared.Gnatcoll_Sqlite_Version;
 
    Thread_Lib := ();
 
