Permalink
Browse files

Added Alien-Nettle example in Richard Simoes' name. I hope he doesn't…

… mind
  • Loading branch information...
1 parent 47de18d commit dc5ac748dd4bd091b592442186befe232bf57012 @jberger jberger committed Mar 9, 2012
Showing with 51 additions and 0 deletions.
  1. +36 −0 examples/Alien-Nettle/Build.PL
  2. +3 −0 examples/Alien-Nettle/MANIFEST
  3. +12 −0 examples/Alien-Nettle/lib/Alien/Nettle.pm
@@ -0,0 +1,36 @@
+use strict;
+use warnings;
+
+use lib '../../lib';
+
+use utf8;
+use Alien::Base::ModuleBuild;
+
+my $builder = Alien::Base::ModuleBuild->new(
+ module_name => 'Alien::Nettle',
+ dist_abstract => 'Build and install the Nettle cryptographic library',
+ license => 'perl',
+ configure_requires => {
+ 'Alien::Base' => 0,
+ },
+ requires => {
+ 'perl' => '5.8.1',
+ 'Alien::Base' => 0,
+ },
+ dist_author => 'Richard Simões <rsimoes AT cpan DOT org>',
+ alien_name => 'nettle',
+ alien_repository => {
+ protocol => 'ftp',
+ host => 'ftp.lysator.liu.se',
+ location => '/pub/security/lsh',
+ pattern => qr/^nettle-([\d\.]+)\.tar\.gz$/,
+ },
+ alien_build_commands => [
+ '%pconfigure --prefix=%s --enable-shared',
+ 'make',
+ 'make install'
+ ],
+);
+$builder->create_build_script;
+
+
@@ -0,0 +1,3 @@
+Build.PL
+lib/Alien/Nettle.pm
+MANIFEST This list of files
@@ -0,0 +1,12 @@
+package Alien::Nettle;
+
+use strict;
+use warnings;
+
+our $VERSION = 0.01;
+$VERSION = eval $VERSION;
+
+use parent 'Alien::Base';
+
+1;
+

0 comments on commit dc5ac74

Please sign in to comment.