Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell authored and markuspf committed Aug 26, 2024
1 parent 1162860 commit 99dfd12
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
- master
- stable-4.13
- stable-4.12
- stable-4.11
- stable-4.10
ABI: ['']
include:
- gap-branch: master
Expand Down
15 changes: 8 additions & 7 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,24 @@ PackageDoc := rec(
),

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

AvailabilityTest := function()
if Filename(DirectoriesPackagePrograms("crypting"), "crypting.so") = fail then
return fail;
fi;
return true;
if not IsKernelExtensionAvailable("crypting") then
LogPackageLoadingMessage(PACKAGE_WARNING,
["the kernel module is not compiled, ",
"the package cannot be loaded."]);
return fail;
fi;
return true;
end,

TestFile := "tst/testall.g",

#Keywords := [ "TODO" ],

));


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

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

ReadPackage( "crypting", "gap/crypting.gd");

0 comments on commit 99dfd12

Please sign in to comment.