Skip to content

Commit

Permalink
Merge pull request #43 from reiniscirpons/master
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalsaleh committed Aug 27, 2024
2 parents 6e58713 + d97e840 commit 64b02cd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 27 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ jobs:
matrix:
gap-branch:
- master
- stable-4.13
- stable-4.12
- stable-4.11
- stable-4.10
- stable-4.9

steps:
- uses: actions/checkout@v3
Expand Down
29 changes: 9 additions & 20 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -74,35 +74,24 @@ PackageDoc := rec(
),

Dependencies := rec(
GAP := ">= 4.9",
GAP := ">= 4.12",
NeededOtherPackages := [ [ "GAPDoc", ">= 1.5" ] ],
SuggestedOtherPackages := [ ],
ExternalConditions := [ ],
),

AvailabilityTest :=
AvailabilityTest :=
function()
local path, file;

path:= DirectoriesPackagePrograms( "CddInterface" );

file := Filename( path, "CddInterface.so" );

if file = fail then

LogPackageLoadingMessage( PACKAGE_WARNING,
[
"The library `libcdd' is not yet installed on the system,",
" or it is not correctly compiled!,",
"Please, see the installation instructions in README.md."
] );

if not IsKernelExtensionAvailable("CddInterface") then
LogPackageLoadingMessage(PACKAGE_WARNING, [
"The library `libcdd' is not yet installed on the system,",
" or it is not correctly compiled!,",
"Please, see the installation instructions in README.md."
]);
return fail;

fi;

return true;

end,

TestFile := "tst/testall.g",
Expand Down
7 changes: 3 additions & 4 deletions init.g
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#
# Reading the declaration part of the package.
#
_PATH_SO:=Filename(DirectoriesPackagePrograms("CddInterface"), "CddInterface.so");
if _PATH_SO <> fail then
LoadDynamicModule(_PATH_SO);

if not LoadKernelExtension("CddInterface") then
Error("failed to load the CddInterface package kernel extension");
fi;
Unbind(_PATH_SO);

ReadPackage( "CddInterface", "gap/polyhedra.gd");
ReadPackage( "CddInterface", "gap/tools.gd");
Expand Down

0 comments on commit 64b02cd

Please sign in to comment.