Skip to content

Commit 3a4650d

Browse files
committed
Require Alien::libudev on Linux
Fixes #2.
1 parent 6728fe5 commit 3a4650d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

alienfile

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ share {
4040
if ($^O eq 'linux') {
4141
requires 'Alien::libudev' => '0.1';
4242
eval "use Alien::libudev"; die $@ if $@;
43-
$cppflags = Alien::libudev->cflags;
44-
$ldflags = Alien::libudev->libs;
43+
$cppflags = Alien::libudev->cflags // '';
44+
$ldflags = Alien::libudev->libs // '';
4545

4646
meta->after_hook(gather_share => sub {
4747
my($build) = @_;

dist.ini

100755100644
+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ copyright_holder = Ahmad Fatoum
55
copyright_year = 2017
66

77
[AutoPrereqs]
8+
[OSPrereqs / linux]
9+
Alien::libudev = 0.14
810

911
[@Starter]
1012

@@ -29,3 +31,9 @@ user = athreef
2931
[Git::NextVersion]
3032
first_version = 0.2
3133
[ChangelogFromGit]
34+
35+
;[Git::CommitBuild]
36+
[MinimumPerl]
37+
[Test::MinimumVersion]
38+
max_target_perl = 5.8
39+
[Test::Compile]

0 commit comments

Comments
 (0)