From 601155b54ee94525278aaba8ba807ce1cef125cf Mon Sep 17 00:00:00 2001 From: Alejandro R Mosteo Date: Thu, 8 Mar 2018 17:17:26 +0100 Subject: [PATCH] + adacurses, gtkada, eagle lander, steamsky --- deps/semver | 2 +- index/alire-index-adacurses.ads | 46 ++++++++++++++++++++++++++ index/alire-index-eagle_lander.ads | 32 ++++++++++++++++++ index/alire-index-steamsky.ads | 43 ++++++++++++++++++++++++ index/native/alire-index-adacurses.ads | 27 --------------- index/native/alire-index-gtkada.ads | 17 ++++++++++ 6 files changed, 139 insertions(+), 28 deletions(-) create mode 100644 index/alire-index-adacurses.ads create mode 100644 index/alire-index-eagle_lander.ads create mode 100644 index/alire-index-steamsky.ads delete mode 100644 index/native/alire-index-adacurses.ads create mode 100644 index/native/alire-index-gtkada.ads diff --git a/deps/semver b/deps/semver index 09774d80..81a1fddd 160000 --- a/deps/semver +++ b/deps/semver @@ -1 +1 @@ -Subproject commit 09774d80fac62ea3a09d46b22d4807da530387e2 +Subproject commit 81a1fddd0164cb5a82e0f2f97afe4511b2d8efbf diff --git a/index/alire-index-adacurses.ads b/index/alire-index-adacurses.ads new file mode 100644 index 00000000..7161d2e4 --- /dev/null +++ b/index/alire-index-adacurses.ads @@ -0,0 +1,46 @@ +with Alire.Index.NcursesAda; + +package Alire.Index.Adacurses is + + Name : constant String := "adacurses"; + Desc : constant String := "Wrapper on different packagings of NcursesAda"; + Repo : constant String := "https://github.com/alire-project/adacurses-wrapper.git"; + + Comments : constant Conditional.Properties := + Comment ("AdaCurses is the project name used by upstream, thus adacurses.gpr") and + Comment ("However, some distros (e.g., Debian family) use ncursesada.gpr") and + Comment ("This package wraps these differences so clients can always safely use adacurses"); + + V_6 : constant Release := + Register (Name, + V ("6.0+20170708-2"), + Desc, + Git (Repo, "4ccb20409becb50c0b5fd29effb676b650608326"), + + Dependencies => + On_Condition + (Distribution_Is (Debian) or Distribution_Is (Ubuntu), + When_True => When_Available (Within_Major (NcursesAda.V_5)), + When_False => Unavailable), + + Properties => + Comments + ); + + V_5_9 : constant Release := + Register (Name, + V ("5.9+20140726-1build1"), + Desc, + Git (Repo, "4ccb20409becb50c0b5fd29effb676b650608326"), + + Dependencies => + On_Condition + (Distribution_Is (Debian) or Distribution_Is (Ubuntu), + When_True => When_Available (Within_Major (NcursesAda.V_3)), + When_False => Unavailable), + + Properties => + Comments + ); + +end Alire.Index.Adacurses; diff --git a/index/alire-index-eagle_lander.ads b/index/alire-index-eagle_lander.ads new file mode 100644 index 00000000..8f0e7b2b --- /dev/null +++ b/index/alire-index-eagle_lander.ads @@ -0,0 +1,32 @@ +with Alire.Index.GtkAda; + +package Alire.Index.Eagle_Lander is + + Prj_Name : constant Project_Name := "eagle_lander"; + Prj_Desc : constant Project_Description := "Apollo 11 lunar lander simulator (Ada/Gtk/Cairo)"; + Prj_Repo : constant URL := "https://github.com/alire-project/eagle-lander.git"; + + Prj_Author : constant String := "Fabien Chouteau"; + Prj_Website : constant URL := "https://blog.adacore.com/make-with-ada-the-eagle-has-landed"; + + V_1_0 : constant Release := + Register (Prj_Name, + V ("1.0"), + Prj_Desc, + Git (Prj_Repo, "5a3bcc61eff4d60d2b741add7841410ce539d0b8"), + + Dependencies => + Within_Major (Alire.Index.GtkAda.V_16_1), + + Properties => + Project_File ("lunar_lander.gpr") and + + Author (Prj_Author) and + Website (Prj_Website) and + License (GPL_3_0), + + Private_Properties => + GPR_File ("lunar_lander.gpr") + ); + +end Alire.Index.Eagle_Lander; diff --git a/index/alire-index-steamsky.ads b/index/alire-index-steamsky.ads new file mode 100644 index 00000000..4847478a --- /dev/null +++ b/index/alire-index-steamsky.ads @@ -0,0 +1,43 @@ +with Alire.Index.Adacurses; +with Alire.Index.GtkAda; + +package Alire.Index.Steamsky is + + Prj_Name : constant Project_Name := "steamsky"; + Prj_Desc : constant Project_Description := "Roguelike in sky with steampunk theme"; + Prj_Repo : constant URL := "https://github.com/thindil/steamsky.git"; + + Prj_Author : constant String := "Bartek Jasicki"; + Prj_Website : constant URL := "https://thindil.github.io/steamsky/"; + + V_2_1_Dev : constant Release := + Register (Prj_Name, + V ("2.1-dev"), + Prj_Desc, + Git (Prj_Repo, "faee42a72506f2522d3db9c714d0b0a001c0032d"), + + Dependencies => + Within_Major (Alire.Index.GtkAda.V_16_1), + + Properties => + Author (Prj_Author) and + Website (Prj_Website) and + License (GPL_3_0) + ); + + V_2_0_2 : constant Release := + Register (Prj_Name, + V ("2.0.2"), + Prj_Desc, + Git (Prj_Repo, "8b4dd319c3199f4b770e39de13f9ef3d9020266f"), + + Dependencies => + Within_Major (Alire.Index.Adacurses.V_6), + + Properties => + Author (Prj_Author) and + Website (Prj_Website) and + License (GPL_3_0) + ); + +end Alire.Index.Steamsky; diff --git a/index/native/alire-index-adacurses.ads b/index/native/alire-index-adacurses.ads deleted file mode 100644 index dbb114ec..00000000 --- a/index/native/alire-index-adacurses.ads +++ /dev/null @@ -1,27 +0,0 @@ -with Alire.Index.NcursesAda; - -package Alire.Index.Adacurses is - - Name : constant String := "adacurses"; - Desc : constant String := "Wrapper on different packagings of NcursesAda"; - Repo : constant String := "https://github.com/alire-project/adacurses-wrapper.git"; - - V_6 : constant Release := - Register (Name, - V ("6.0+20170708-2"), - Desc, - Git (Repo, "4ccb20409becb50c0b5fd29effb676b650608326"), - - Dependencies => - On_Condition - (Distribution_Is (Debian) or Distribution_Is (Ubuntu), - When_True => When_Available (Within_Major (NcursesAda.V_5)), - When_False => Unavailable), - - Properties => - Comment ("AdaCurses is the project name used by upstream, thus adacurses.gpr") and - Comment ("However, some distros (e.g., Debian family) use ncursesada.gpr") and - Comment ("This package wraps these differences so clients can always safely use adacurses") - ); - -end Alire.Index.Adacurses; diff --git a/index/native/alire-index-gtkada.ads b/index/native/alire-index-gtkada.ads new file mode 100644 index 00000000..98c3a614 --- /dev/null +++ b/index/native/alire-index-gtkada.ads @@ -0,0 +1,17 @@ +package Alire.Index.GtkAda is + + Name : constant String := "gtkada"; + Desc : constant String := "Ada binding for the GTK+ GUI"; + + V_16_1 : constant Release := + Register (Name, + V ("16.1"), + Desc, + Native ((Debian | Ubuntu => Packaged_As ("libgtkada16.1.0-dev"), + others => Unavailable)), + + Available_When => Compiler_Is_Native + -- Unfortunately packaged libs can't be used with non-platform compilers due to .ali clashes + ); + +end Alire.Index.GtkAda;