Skip to content

Commit

Permalink
draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Dec 27, 2022
1 parent 6b0a392 commit 81cec7d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Changes
@@ -1,7 +1,9 @@
Revision history for Perl extension Net::mbedTLS:

0.02
- Added changelog
- Fixed IO::Async module not to require AnyEvent.
- Fixed compatiblity with older perls (“current_sub” is no longer used).
- Added changelog.

0.01 Wed Dec 21 2022
- Initial release
18 changes: 18 additions & 0 deletions Makefile.PL
Expand Up @@ -111,6 +111,19 @@ sub _determine_defines {
my @defines;

my @checks = (

# A hack to detect nonavailability of mbedTLS:
{
label => 'mbedTLS availability',
required => 1,
c => q[
#include <mbedtls/pk.h>
int main() {
return 0;
}
],
},

{
label => 'public net_socket.fd',
define => 'NET_CONTEXT_FD_IS_PUBLIC',
Expand Down Expand Up @@ -222,6 +235,11 @@ sub _determine_defines {
);
};

if ($check_hr->{'required'}) {
die "DEPENDENCY FAILED\n" if !$obj_file;
next;
}

if ($obj_file) {
push @defines, $check_hr->{'define'};
}
Expand Down
1 change: 0 additions & 1 deletion cpanfile
Expand Up @@ -4,7 +4,6 @@ configure_requires 'autodie';
configure_requires 'ExtUtils::CBuilder';
configure_requires 'ExtUtils::MakeMaker::CPANfile';

test_requires 'Test::DescribeMe';
test_requires 'Test::FailWarnings';
test_requires 'Mozilla::CA';

Expand Down
2 changes: 1 addition & 1 deletion lib/Net/mbedTLS.pm
Expand Up @@ -8,7 +8,7 @@ our $VERSION;
use XSLoader ();

BEGIN {
$VERSION = '0.01';
$VERSION = '0.01_90';
XSLoader::load( __PACKAGE__, $VERSION );
}

Expand Down

0 comments on commit 81cec7d

Please sign in to comment.