Skip to content

Commit fd668f3

Browse files
committed
update Availability function of the package & bump version to 2019.12.08
1 parent 0a1bcfb commit fd668f3

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

PackageInfo.g

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SetPackageInfo( rec(
1010

1111
PackageName := "CddInterface",
1212
Subtitle := "Gap interface to Cdd package",
13-
Version := "2019.12.07",
13+
Version := "2019.12.08",
1414
Date := ~.Version{[ 1 .. 10 ]},
1515
Date := Concatenation( ~.Date{[ 9, 10 ]}, "/", ~.Date{[ 6, 7 ]}, "/", ~.Date{[ 1 .. 4 ]} ),
1616
License := "GPL-2.0-or-later",
@@ -80,9 +80,30 @@ Dependencies := rec(
8080
ExternalConditions := [ ],
8181
),
8282

83-
AvailabilityTest := function()
84-
return true;
85-
end,
83+
AvailabilityTest :=
84+
function()
85+
local path, file;
86+
87+
path:= DirectoriesPackagePrograms( "CddInterface" );
88+
89+
file := Filename( path, "CddInterface.so" );
90+
91+
if file = fail then
92+
93+
LogPackageLoadingMessage( PACKAGE_WARNING,
94+
[
95+
"The library `libcdd' is not yet installed on the system,",
96+
" or it is not correctly compiled!,",
97+
"Please, see the installation instructions in README.md."
98+
] );
99+
100+
return fail;
101+
102+
fi;
103+
104+
return true;
105+
106+
end,
86107

87108
TestFile := "tst/testall.g",
88109

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The GAP 4 package `CddInterface'
66

77
# Version
88

9-
Current version: 2019.12.07
9+
Current version: 2019.12.08
1010

1111
# Why CddInterface
1212

0 commit comments

Comments
 (0)