From ff1e1381cdba10b86ba2d9e24798c276735ca18c Mon Sep 17 00:00:00 2001 From: Anton Berezin Date: Wed, 10 Jul 2013 13:42:41 +0000 Subject: [PATCH] Make it package correctly on clang-only boxes. PR: 180220 Submitted by: Dave Hayes --- net-mgmt/p5-NetAddr-IP/Makefile | 1 + .../p5-NetAddr-IP/files/patch-Lite-Util-Makefile.PL | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 net-mgmt/p5-NetAddr-IP/files/patch-Lite-Util-Makefile.PL diff --git a/net-mgmt/p5-NetAddr-IP/Makefile b/net-mgmt/p5-NetAddr-IP/Makefile index 8a6997aff309..46b4c7d6efd0 100644 --- a/net-mgmt/p5-NetAddr-IP/Makefile +++ b/net-mgmt/p5-NetAddr-IP/Makefile @@ -3,6 +3,7 @@ PORTNAME= NetAddr-IP PORTVERSION= 4.069 +PORTREVISION= 1 CATEGORIES= net-mgmt perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- diff --git a/net-mgmt/p5-NetAddr-IP/files/patch-Lite-Util-Makefile.PL b/net-mgmt/p5-NetAddr-IP/files/patch-Lite-Util-Makefile.PL new file mode 100644 index 000000000000..1a8f900e3d28 --- /dev/null +++ b/net-mgmt/p5-NetAddr-IP/files/patch-Lite-Util-Makefile.PL @@ -0,0 +1,11 @@ +--- ./Lite/Util/Makefile.PL.orig 2013-07-10 15:38:50.000000000 +0200 ++++ ./Lite/Util/Makefile.PL 2013-07-10 15:38:55.000000000 +0200 +@@ -205,7 +205,7 @@ sub test_cc { + return; + } + +- my $CC = $ENV{CC} || $Config{ccname}; ++ my $CC = $ENV{CC} || $Config{cc}; + my $command = qq|$CC compile.c -o compile.output|; + + print F <<'EOF';