Alien-Build

 view release on metacpan or  search on metacpan

LICENSE  view on Meta::CPAN

MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

                     END OF TERMS AND CONDITIONS

        Appendix: How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it

corpus/cmake-libpalindrome/LICENSE  view on Meta::CPAN

MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.

  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

                     END OF TERMS AND CONDITIONS

        Appendix: How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to humanity, the best way to achieve this is to make it

corpus/lib/Alien/Foo1/ConfigData.pm  view on Meta::CPAN

package Alien::Foo1::ConfigData;
use strict;
my $arrayref = eval do {local $/; <DATA>}
  or die "Couldn't load ConfigData data: $@";
close DATA;
my ($config, $features, $auto_features) = @$arrayref;

sub config { $config->{$_[1]} }

sub set_config { $config->{$_[1]} = $_[2] }
sub set_feature { $features->{$_[1]} = 0+!!$_[2] }  # Constrain to 1 or 0

sub auto_feature_names { grep !exists $features->{$_}, keys %$auto_features }

sub feature_names {

corpus/lib/Alien/Foo1/ConfigData.pm  view on Meta::CPAN


  # Can't use Module::Build::Dumper here because M::B is only a
  # build-time prereq of this module
  require Data::Dumper;

  my $mode_orig = (stat $me)[2] & 07777;
  chmod($mode_orig | 0222, $me); # Make it writeable
  open(my $fh, '+<', $me) or die "Can't rewrite $me: $!";
  seek($fh, 0, 0);
  while (<$fh>) {
    last if /^__DATA__$/;
  }
  die "Couldn't find __DATA__ token in $me" if eof($fh);

  seek($fh, tell($fh), 0);
  my $data = [$config, $features, $auto_features];
  print($fh 'do{ my '
	      . Data::Dumper->new([$data],['x'])->Purity(1)->Dump()
	      . '$x; }' );
  truncate($fh, tell($fh));
  close $fh;

  chmod($mode_orig, $me)

corpus/lib/Alien/Foo1/ConfigData.pm  view on Meta::CPAN

    while (my ($modname, $spec) = each %p) {
      my $status = Module::Build->check_installed_status($modname, $spec);
      if ((!$status->{ok}) xor ($type =~ /conflicts$/)) { return 0; }
      if ( ! eval "require $modname; 1" ) { return 0; }
    }
  }
  return 1;
}


__DATA__
do{ my $x = [
       {
         'ffi_name' => undef,
         'finished_installing' => 0,
         'inline_auto_include' => [],
         'install_type' => 'system',
         'name' => 'libfoo1',
         'system_provides' => {},
         'version' => '3.99999
'

corpus/lib/Alien/Foo2/ConfigData.pm  view on Meta::CPAN

package Alien::Foo2::ConfigData;
use strict;
my $arrayref = eval do {local $/; <DATA>}
  or die "Couldn't load ConfigData data: $@";
close DATA;
my ($config, $features, $auto_features) = @$arrayref;

sub config { $config->{$_[1]} }

sub set_config { $config->{$_[1]} = $_[2] }
sub set_feature { $features->{$_[1]} = 0+!!$_[2] }  # Constrain to 1 or 0

sub auto_feature_names { grep !exists $features->{$_}, keys %$auto_features }

sub feature_names {

corpus/lib/Alien/Foo2/ConfigData.pm  view on Meta::CPAN


  # Can't use Module::Build::Dumper here because M::B is only a
  # build-time prereq of this module
  require Data::Dumper;

  my $mode_orig = (stat $me)[2] & 07777;
  chmod($mode_orig | 0222, $me); # Make it writeable
  open(my $fh, '+<', $me) or die "Can't rewrite $me: $!";
  seek($fh, 0, 0);
  while (<$fh>) {
    last if /^__DATA__$/;
  }
  die "Couldn't find __DATA__ token in $me" if eof($fh);

  seek($fh, tell($fh), 0);
  my $data = [$config, $features, $auto_features];
  print($fh 'do{ my '
	      . Data::Dumper->new([$data],['x'])->Purity(1)->Dump()
	      . '$x; }' );
  truncate($fh, tell($fh));
  close $fh;

  chmod($mode_orig, $me)

corpus/lib/Alien/Foo2/ConfigData.pm  view on Meta::CPAN

    my %p = %$prereqs;  # Ditto here.
    while (my ($modname, $spec) = each %p) {
      my $status = Module::Build->check_installed_status($modname, $spec);
      if ((!$status->{ok}) xor ($type =~ /conflicts$/)) { return 0; }
      if ( ! eval "require $modname; 1" ) { return 0; }
    }
  }
  return 1;
}

__DATA__
do{ my $x = [
       {
         'alien_version' => undef,
         'ffi_name' => undef,
         'finished_installing' => 1,
         'inline_auto_include' => [],
         'install_type' => 'share',
         'msys' => 0,
         'name' => 'libfoo2',
         'original_prefix' => '/home/user/.cpanm/work/1456299506.4021/Alien-Foo2-0.12/blib/lib/auto/share/dist/Alien-Foo2',

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/debug/html/man3/OCSP_ONEREQ_new.html
x64-windows/debug/html/man3/OCSP_REQINFO_free.html
x64-windows/debug/html/man3/OCSP_REQINFO_new.html
x64-windows/debug/html/man3/OCSP_REQUEST_free.html
x64-windows/debug/html/man3/OCSP_REQUEST_new.html
x64-windows/debug/html/man3/OCSP_REQ_CTX_add1_header.html
x64-windows/debug/html/man3/OCSP_REQ_CTX_free.html
x64-windows/debug/html/man3/OCSP_REQ_CTX_set1_req.html
x64-windows/debug/html/man3/OCSP_RESPBYTES_free.html
x64-windows/debug/html/man3/OCSP_RESPBYTES_new.html
x64-windows/debug/html/man3/OCSP_RESPDATA_free.html
x64-windows/debug/html/man3/OCSP_RESPDATA_new.html
x64-windows/debug/html/man3/OCSP_RESPID_free.html
x64-windows/debug/html/man3/OCSP_RESPID_match.html
x64-windows/debug/html/man3/OCSP_RESPID_new.html
x64-windows/debug/html/man3/OCSP_RESPID_set_by_key.html
x64-windows/debug/html/man3/OCSP_RESPID_set_by_name.html
x64-windows/debug/html/man3/OCSP_RESPONSE_free.html
x64-windows/debug/html/man3/OCSP_RESPONSE_new.html
x64-windows/debug/html/man3/OCSP_REVOKEDINFO_free.html
x64-windows/debug/html/man3/OCSP_REVOKEDINFO_new.html
x64-windows/debug/html/man3/OCSP_SERVICELOC_free.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/debug/html/man3/PEM_write_bio_RSAPublicKey.html
x64-windows/debug/html/man3/PEM_write_bio_RSA_PUBKEY.html
x64-windows/debug/html/man3/PEM_write_bio_SSL_SESSION.html
x64-windows/debug/html/man3/PEM_write_bio_X509.html
x64-windows/debug/html/man3/PEM_write_bio_X509_AUX.html
x64-windows/debug/html/man3/PEM_write_bio_X509_CRL.html
x64-windows/debug/html/man3/PEM_write_bio_X509_REQ.html
x64-windows/debug/html/man3/PEM_write_bio_X509_REQ_NEW.html
x64-windows/debug/html/man3/PKCS12_BAGS_free.html
x64-windows/debug/html/man3/PKCS12_BAGS_new.html
x64-windows/debug/html/man3/PKCS12_MAC_DATA_free.html
x64-windows/debug/html/man3/PKCS12_MAC_DATA_new.html
x64-windows/debug/html/man3/PKCS12_SAFEBAG_free.html
x64-windows/debug/html/man3/PKCS12_SAFEBAG_new.html
x64-windows/debug/html/man3/PKCS12_create.html
x64-windows/debug/html/man3/PKCS12_free.html
x64-windows/debug/html/man3/PKCS12_new.html
x64-windows/debug/html/man3/PKCS12_newpass.html
x64-windows/debug/html/man3/PKCS12_parse.html
x64-windows/debug/html/man3/PKCS5_PBKDF2_HMAC.html
x64-windows/debug/html/man3/PKCS5_PBKDF2_HMAC_SHA1.html
x64-windows/debug/html/man3/PKCS7_DIGEST_free.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/debug/html/man3/d2i_NETSCAPE_SPKI.html
x64-windows/debug/html/man3/d2i_NOTICEREF.html
x64-windows/debug/html/man3/d2i_OCSP_BASICRESP.html
x64-windows/debug/html/man3/d2i_OCSP_CERTID.html
x64-windows/debug/html/man3/d2i_OCSP_CERTSTATUS.html
x64-windows/debug/html/man3/d2i_OCSP_CRLID.html
x64-windows/debug/html/man3/d2i_OCSP_ONEREQ.html
x64-windows/debug/html/man3/d2i_OCSP_REQINFO.html
x64-windows/debug/html/man3/d2i_OCSP_REQUEST.html
x64-windows/debug/html/man3/d2i_OCSP_RESPBYTES.html
x64-windows/debug/html/man3/d2i_OCSP_RESPDATA.html
x64-windows/debug/html/man3/d2i_OCSP_RESPID.html
x64-windows/debug/html/man3/d2i_OCSP_RESPONSE.html
x64-windows/debug/html/man3/d2i_OCSP_REVOKEDINFO.html
x64-windows/debug/html/man3/d2i_OCSP_SERVICELOC.html
x64-windows/debug/html/man3/d2i_OCSP_SIGNATURE.html
x64-windows/debug/html/man3/d2i_OCSP_SINGLERESP.html
x64-windows/debug/html/man3/d2i_OTHERNAME.html
x64-windows/debug/html/man3/d2i_PBE2PARAM.html
x64-windows/debug/html/man3/d2i_PBEPARAM.html
x64-windows/debug/html/man3/d2i_PBKDF2PARAM.html
x64-windows/debug/html/man3/d2i_PKCS12.html
x64-windows/debug/html/man3/d2i_PKCS12_BAGS.html
x64-windows/debug/html/man3/d2i_PKCS12_MAC_DATA.html
x64-windows/debug/html/man3/d2i_PKCS12_SAFEBAG.html
x64-windows/debug/html/man3/d2i_PKCS12_bio.html
x64-windows/debug/html/man3/d2i_PKCS12_fp.html
x64-windows/debug/html/man3/d2i_PKCS7.html
x64-windows/debug/html/man3/d2i_PKCS7_DIGEST.html
x64-windows/debug/html/man3/d2i_PKCS7_ENCRYPT.html
x64-windows/debug/html/man3/d2i_PKCS7_ENC_CONTENT.html
x64-windows/debug/html/man3/d2i_PKCS7_ENVELOPE.html
x64-windows/debug/html/man3/d2i_PKCS7_ISSUER_AND_SERIAL.html
x64-windows/debug/html/man3/d2i_PKCS7_RECIP_INFO.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/debug/html/man3/i2d_NETSCAPE_SPKI.html
x64-windows/debug/html/man3/i2d_NOTICEREF.html
x64-windows/debug/html/man3/i2d_OCSP_BASICRESP.html
x64-windows/debug/html/man3/i2d_OCSP_CERTID.html
x64-windows/debug/html/man3/i2d_OCSP_CERTSTATUS.html
x64-windows/debug/html/man3/i2d_OCSP_CRLID.html
x64-windows/debug/html/man3/i2d_OCSP_ONEREQ.html
x64-windows/debug/html/man3/i2d_OCSP_REQINFO.html
x64-windows/debug/html/man3/i2d_OCSP_REQUEST.html
x64-windows/debug/html/man3/i2d_OCSP_RESPBYTES.html
x64-windows/debug/html/man3/i2d_OCSP_RESPDATA.html
x64-windows/debug/html/man3/i2d_OCSP_RESPID.html
x64-windows/debug/html/man3/i2d_OCSP_RESPONSE.html
x64-windows/debug/html/man3/i2d_OCSP_REVOKEDINFO.html
x64-windows/debug/html/man3/i2d_OCSP_SERVICELOC.html
x64-windows/debug/html/man3/i2d_OCSP_SIGNATURE.html
x64-windows/debug/html/man3/i2d_OCSP_SINGLERESP.html
x64-windows/debug/html/man3/i2d_OTHERNAME.html
x64-windows/debug/html/man3/i2d_PBE2PARAM.html
x64-windows/debug/html/man3/i2d_PBEPARAM.html
x64-windows/debug/html/man3/i2d_PBKDF2PARAM.html
x64-windows/debug/html/man3/i2d_PKCS12.html
x64-windows/debug/html/man3/i2d_PKCS12_BAGS.html
x64-windows/debug/html/man3/i2d_PKCS12_MAC_DATA.html
x64-windows/debug/html/man3/i2d_PKCS12_SAFEBAG.html
x64-windows/debug/html/man3/i2d_PKCS12_bio.html
x64-windows/debug/html/man3/i2d_PKCS12_fp.html
x64-windows/debug/html/man3/i2d_PKCS7.html
x64-windows/debug/html/man3/i2d_PKCS7_DIGEST.html
x64-windows/debug/html/man3/i2d_PKCS7_ENCRYPT.html
x64-windows/debug/html/man3/i2d_PKCS7_ENC_CONTENT.html
x64-windows/debug/html/man3/i2d_PKCS7_ENVELOPE.html
x64-windows/debug/html/man3/i2d_PKCS7_ISSUER_AND_SERIAL.html
x64-windows/debug/html/man3/i2d_PKCS7_NDEF.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/html/man3/OCSP_ONEREQ_new.html
x64-windows/html/man3/OCSP_REQINFO_free.html
x64-windows/html/man3/OCSP_REQINFO_new.html
x64-windows/html/man3/OCSP_REQUEST_free.html
x64-windows/html/man3/OCSP_REQUEST_new.html
x64-windows/html/man3/OCSP_REQ_CTX_add1_header.html
x64-windows/html/man3/OCSP_REQ_CTX_free.html
x64-windows/html/man3/OCSP_REQ_CTX_set1_req.html
x64-windows/html/man3/OCSP_RESPBYTES_free.html
x64-windows/html/man3/OCSP_RESPBYTES_new.html
x64-windows/html/man3/OCSP_RESPDATA_free.html
x64-windows/html/man3/OCSP_RESPDATA_new.html
x64-windows/html/man3/OCSP_RESPID_free.html
x64-windows/html/man3/OCSP_RESPID_match.html
x64-windows/html/man3/OCSP_RESPID_new.html
x64-windows/html/man3/OCSP_RESPID_set_by_key.html
x64-windows/html/man3/OCSP_RESPID_set_by_name.html
x64-windows/html/man3/OCSP_RESPONSE_free.html
x64-windows/html/man3/OCSP_RESPONSE_new.html
x64-windows/html/man3/OCSP_REVOKEDINFO_free.html
x64-windows/html/man3/OCSP_REVOKEDINFO_new.html
x64-windows/html/man3/OCSP_SERVICELOC_free.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/html/man3/PEM_write_bio_RSAPublicKey.html
x64-windows/html/man3/PEM_write_bio_RSA_PUBKEY.html
x64-windows/html/man3/PEM_write_bio_SSL_SESSION.html
x64-windows/html/man3/PEM_write_bio_X509.html
x64-windows/html/man3/PEM_write_bio_X509_AUX.html
x64-windows/html/man3/PEM_write_bio_X509_CRL.html
x64-windows/html/man3/PEM_write_bio_X509_REQ.html
x64-windows/html/man3/PEM_write_bio_X509_REQ_NEW.html
x64-windows/html/man3/PKCS12_BAGS_free.html
x64-windows/html/man3/PKCS12_BAGS_new.html
x64-windows/html/man3/PKCS12_MAC_DATA_free.html
x64-windows/html/man3/PKCS12_MAC_DATA_new.html
x64-windows/html/man3/PKCS12_SAFEBAG_free.html
x64-windows/html/man3/PKCS12_SAFEBAG_new.html
x64-windows/html/man3/PKCS12_create.html
x64-windows/html/man3/PKCS12_free.html
x64-windows/html/man3/PKCS12_new.html
x64-windows/html/man3/PKCS12_newpass.html
x64-windows/html/man3/PKCS12_parse.html
x64-windows/html/man3/PKCS5_PBKDF2_HMAC.html
x64-windows/html/man3/PKCS5_PBKDF2_HMAC_SHA1.html
x64-windows/html/man3/PKCS7_DIGEST_free.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/html/man3/d2i_NETSCAPE_SPKI.html
x64-windows/html/man3/d2i_NOTICEREF.html
x64-windows/html/man3/d2i_OCSP_BASICRESP.html
x64-windows/html/man3/d2i_OCSP_CERTID.html
x64-windows/html/man3/d2i_OCSP_CERTSTATUS.html
x64-windows/html/man3/d2i_OCSP_CRLID.html
x64-windows/html/man3/d2i_OCSP_ONEREQ.html
x64-windows/html/man3/d2i_OCSP_REQINFO.html
x64-windows/html/man3/d2i_OCSP_REQUEST.html
x64-windows/html/man3/d2i_OCSP_RESPBYTES.html
x64-windows/html/man3/d2i_OCSP_RESPDATA.html
x64-windows/html/man3/d2i_OCSP_RESPID.html
x64-windows/html/man3/d2i_OCSP_RESPONSE.html
x64-windows/html/man3/d2i_OCSP_REVOKEDINFO.html
x64-windows/html/man3/d2i_OCSP_SERVICELOC.html
x64-windows/html/man3/d2i_OCSP_SIGNATURE.html
x64-windows/html/man3/d2i_OCSP_SINGLERESP.html
x64-windows/html/man3/d2i_OTHERNAME.html
x64-windows/html/man3/d2i_PBE2PARAM.html
x64-windows/html/man3/d2i_PBEPARAM.html
x64-windows/html/man3/d2i_PBKDF2PARAM.html
x64-windows/html/man3/d2i_PKCS12.html
x64-windows/html/man3/d2i_PKCS12_BAGS.html
x64-windows/html/man3/d2i_PKCS12_MAC_DATA.html
x64-windows/html/man3/d2i_PKCS12_SAFEBAG.html
x64-windows/html/man3/d2i_PKCS12_bio.html
x64-windows/html/man3/d2i_PKCS12_fp.html
x64-windows/html/man3/d2i_PKCS7.html
x64-windows/html/man3/d2i_PKCS7_DIGEST.html
x64-windows/html/man3/d2i_PKCS7_ENCRYPT.html
x64-windows/html/man3/d2i_PKCS7_ENC_CONTENT.html
x64-windows/html/man3/d2i_PKCS7_ENVELOPE.html
x64-windows/html/man3/d2i_PKCS7_ISSUER_AND_SERIAL.html
x64-windows/html/man3/d2i_PKCS7_RECIP_INFO.html

corpus/vcpkg/r2/installed/vcpkg/info/openssl-windows_1.1.1d-1_x64-windows.list  view on Meta::CPAN

x64-windows/html/man3/i2d_NETSCAPE_SPKI.html
x64-windows/html/man3/i2d_NOTICEREF.html
x64-windows/html/man3/i2d_OCSP_BASICRESP.html
x64-windows/html/man3/i2d_OCSP_CERTID.html
x64-windows/html/man3/i2d_OCSP_CERTSTATUS.html
x64-windows/html/man3/i2d_OCSP_CRLID.html
x64-windows/html/man3/i2d_OCSP_ONEREQ.html
x64-windows/html/man3/i2d_OCSP_REQINFO.html
x64-windows/html/man3/i2d_OCSP_REQUEST.html
x64-windows/html/man3/i2d_OCSP_RESPBYTES.html
x64-windows/html/man3/i2d_OCSP_RESPDATA.html
x64-windows/html/man3/i2d_OCSP_RESPID.html
x64-windows/html/man3/i2d_OCSP_RESPONSE.html
x64-windows/html/man3/i2d_OCSP_REVOKEDINFO.html
x64-windows/html/man3/i2d_OCSP_SERVICELOC.html
x64-windows/html/man3/i2d_OCSP_SIGNATURE.html
x64-windows/html/man3/i2d_OCSP_SINGLERESP.html
x64-windows/html/man3/i2d_OTHERNAME.html
x64-windows/html/man3/i2d_PBE2PARAM.html
x64-windows/html/man3/i2d_PBEPARAM.html
x64-windows/html/man3/i2d_PBKDF2PARAM.html
x64-windows/html/man3/i2d_PKCS12.html
x64-windows/html/man3/i2d_PKCS12_BAGS.html
x64-windows/html/man3/i2d_PKCS12_MAC_DATA.html
x64-windows/html/man3/i2d_PKCS12_SAFEBAG.html
x64-windows/html/man3/i2d_PKCS12_bio.html
x64-windows/html/man3/i2d_PKCS12_fp.html
x64-windows/html/man3/i2d_PKCS7.html
x64-windows/html/man3/i2d_PKCS7_DIGEST.html
x64-windows/html/man3/i2d_PKCS7_ENCRYPT.html
x64-windows/html/man3/i2d_PKCS7_ENC_CONTENT.html
x64-windows/html/man3/i2d_PKCS7_ENVELOPE.html
x64-windows/html/man3/i2d_PKCS7_ISSUER_AND_SERIAL.html
x64-windows/html/man3/i2d_PKCS7_NDEF.html

lib/Alien/Base.pm  view on Meta::CPAN

 my $type = $build->is_share_install;

Returns true if the alien is a share install type.  

=head2 config

 my $value = Alien::MyLibrary->config($key);

Returns the configuration data as determined during the install
of C<Alien::MyLibrary>.  For the appropriate config keys, see
L<Alien::Base::ModuleBuild::API/"CONFIG DATA">.

This is not typically used by L<Alien::Base> and L<alienfile>,
but a compatible interface will be provided.

=head2 dynamic_libs

 my @dlls = Alien::MyLibrary->dynamic_libs;
 my($dll) = Alien::MyLibrary->dynamic_libs;

Returns a list of the dynamic library or shared object files for the

lib/Alien/Build/Manual/AlienAuthor.pod  view on Meta::CPAN


You should write a test using L<Test::Alien> to make sure that your
alien will work with any XS modules that are going to use it:

 use Test2::V0;
 use Test::Alien;
 use Alien::Libfoo;
 
 alien_ok 'Alien::Libfoo';
 
 xs_ok do { local $/; <DATA> }, with_subtest {
   is Foo::something(), 1, 'Foo::something() returns 1';
 };
 
 done_testing;
 
 __DATA__
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
 #include <foo.h>
 
 MODULE = Foo PACKAGE = Foo
 
 int something()

You can also use L<Test::Alien> to test tools instead of libraries:

lib/Alien/Build/Plugin/Extract/CommandLine.pm  view on Meta::CPAN

my %tars;

sub _tar_can
{
  my($self, $ext) = @_;

  unless(%tars)
  {
    my $name = '';
    local $_; # to avoid dynamically scoped read-only $_ from upper scopes
    while(my $line = <DATA>)
    {
      if($line =~ /^\[ (.*) \]$/)
      {
        $name = $1;
      }
      else
      {
        $tars{$name} .= $line;
      }
    }

lib/Alien/Build/Plugin/Extract/CommandLine.pm  view on Meta::CPAN


=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2011-2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut

__DATA__

[ xx.tar ]
M>'@N='AT````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M`````````````#`P,#8T-"``,#`P-S8U(``P,#`P,C0@`#`P,#`P,#`P,#`S
M(#$S-#,U,#0S-#(R(#`Q,C<P,P`@,```````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````!U<W1A<@`P,&]L;&ES
M9P``````````````````````````````````<W1A9F8`````````````````
M```````````````````P,#`P,#`@`#`P,#`P,"``````````````````````

lib/Test/Alien.pm  view on Meta::CPAN

 
 done_testing;

Test that your library works with C<XS>:

 use Test2::V0;
 use Test::Alien;
 use Alien::Editline;
 
 alien_ok 'Alien::Editline';
 my $xs = do { local $/; <DATA> };
 xs_ok $xs, with_subtest {
   my($module) = @_;
   ok $module->version;
 };
 
 done_testing;
 
 __DATA__
 
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
 #include <editline/readline.h>
 
 const char *
 version(const char *class)
 {
   return rl_library_version;

lib/Test/Alien/Synthetic.pm  view on Meta::CPAN

 
 my $real = Alien::Libarchive->new;
 my $alien = synthetic {
   cflags       => scalar $real->cflags,
   libs         => scalar $real->libs,
   dynamic_libs => [$real->dlls],
 };
 
 alien_ok $alien;
 
 xs_ok do { local $/; <DATA> }, with_subtest {
   my($module) = @_;
   my $ptr = $module->archive_read_new;
   like $ptr, qr{^[0-9]+$};
   $module->archive_read_free($ptr);
 };
 
 ffi_ok { symbols => [qw( archive_read_new )] }, with_subtest {
   my($ffi) = @_;
   my $new  = $ffi->function(archive_read_new => [] => 'opaque');
   my $free = $ffi->function(archive_read_close => ['opaque'] => 'void');
   my $ptr = $new->();
   like $ptr, qr{^[0-9]+$};
   $free->($ptr);
 };
 
 done_testing;
 
 __DATA__
 
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
 #include <archive.h>
 
 MODULE = TA_MODULE PACKAGE = TA_MODULE
 
 void *archive_read_new(class);
     const char *class;

t/alien_build_plugin_build_cmake.t  view on Meta::CPAN

eval { require Alien::cmake3 };
skip_all 'test requires Alien::cmake3' if $@;

# To see the actual commands being executed
$ENV{VERBOSE} = 1;

$Alien::Build::Plugin::Fetch::LocalDir::VERSION        ||= '0.99';
$Alien::Build::Plugin::Build::CMake::VERSION           ||= '0.99';
$Alien::Build::Plugin::Gather::IsolateDynamic::VERSION ||= '0.99';

my $xs = do { local $/; <DATA> };

foreach my $type (qw( basic out-of-source ))
{

  subtest $type => sub {

    # This test uses extract directory, which is unsupported by check_digest.
    # It uses local corpus data and does not connect to internet.
    local $ENV{ALIEN_DOWNLOAD_RULE} = 'warn';

t/alien_build_plugin_build_cmake.t  view on Meta::CPAN


    run_ok(['palx', 'racecar'])
      ->note
      ->success;

  };
};

done_testing

__DATA__
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <libpalindrome.h>

MODULE = TA_MODULE PACKAGE = TA_MODULE

int
is_palindrome(klass, word)
    const char *klass

t/alien_build_plugin_extract_commandline__tar_can.t  view on Meta::CPAN

  my $build = alienfile filename => 'corpus/blank/alienfile';
  my $meta = $build->meta;

  my $plugin = Alien::Build::Plugin::Extract::CommandLine->new;

  Readonly::Scalar($_ => 'a');
  $plugin->init($meta);

  ok lives {
    $plugin->_tar_can('.tar.gz');
  }, 'can read from <DATA> with readonly $_' or note($@);
};

done_testing;



( run in 0.700 second using v1.01-cache-2.11-cpan-140bd7fdf52 )