Version + Arch properties

This commit is contained in:
Alejandro R. Mosteo
2018-03-03 02:35:05 +01:00
parent e7f039156c
commit dfb3191b3a
9 changed files with 137 additions and 122 deletions
+14 -6
View File
@@ -10,22 +10,30 @@ package Alire.Platforms with Preelaborate is
Windows,
Unsupported);
type Distributions is (Debian_Buster,
Ubuntu_Xenial,
Ubuntu_Yakkety,
Ubunty_Zesty,
Ubuntu_Artful,
type Distributions is (Debian,
Ubuntu,
Unsupported);
type Versions is (Debian_Buster,
Ubuntu_Xenial,
Ubuntu_Yakkety,
Ubunty_Zesty,
Ubuntu_Artful,
Unsupported);
-- Known flavors of OSs
-- It turns out that Debian uses no numbers for its non-stable releases, so we'll prefer the codename
-- Not really used very much for now
type Word_Sizes is (Bits_32,
Bits_64,
Unsupported);
type Package_Managers is (Apt,
Unsupported);
function Package_Manager (D : Distributions) return Package_Managers is
(case D is
when Debian_Buster .. Ubuntu_Artful => Apt,
when Debian | Ubuntu => Apt,
when others => Unsupported);
end Alire.Platforms;