diff options
author | adrianp <adrianp> | 2007-11-24 16:17:46 +0000 |
---|---|---|
committer | adrianp <adrianp> | 2007-11-24 16:17:46 +0000 |
commit | f31816e1b279d2a84d5cdbe3e9a2cfaf2e5015aa (patch) | |
tree | 050b26d847735ba312e4ce8c0905fcb037e20468 | |
parent | d7bed2b351ec55c513f5aea32e583950ed900050 (diff) | |
download | pkgsrc-f31816e1b279d2a84d5cdbe3e9a2cfaf2e5015aa.tar.gz |
As Darwin can be installed on a case-sensitive file system don't assume
that just because the OS is Darwin we don't want aliases.
This adds an options.mk so that if users want to they can install the
aliases on Darwin.
No change in the defaults
-rw-r--r-- | www/p5-libwww/Makefile | 9 | ||||
-rw-r--r-- | www/p5-libwww/distinfo | 4 | ||||
-rw-r--r-- | www/p5-libwww/patches/patch-aa | 4 |
3 files changed, 8 insertions, 9 deletions
diff --git a/www/p5-libwww/Makefile b/www/p5-libwww/Makefile index 3ae39f47518..a0bf24dc7fd 100644 --- a/www/p5-libwww/Makefile +++ b/www/p5-libwww/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.54 2007/11/23 08:46:32 tron Exp $ +# $NetBSD: Makefile,v 1.55 2007/11/24 16:17:46 adrianp Exp $ DISTNAME= libwww-perl-5.808 PKGNAME= p5-${DISTNAME:S/-perl-/-/} @@ -24,13 +24,12 @@ DEPENDS+= p5-URI>=1.10:../../www/p5-URI DEPENDS+= p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5 PERL5_PACKLIST= auto/LWP/.packlist -MAKE_ENV+= OPSYS=${OPSYS:Q} PERL_MM_USE_DEFAULT=1 +MAKE_ENV+= INSTALL_ALIASES=${ALIASES} PERL_MM_USE_DEFAULT=1 .include "../../mk/bsd.prefs.mk" +.include "options.mk" -.if ${OPSYS} == "Darwin" -# Mac OS X uses an case-insensitive filesystem where "HEAD" can be -# confused with "head". +.if ${ALIASES} == "no" post-install: ${RM} -f ${PREFIX}/bin/HEAD .endif diff --git a/www/p5-libwww/distinfo b/www/p5-libwww/distinfo index 2b86f58da9d..0c7f1d8c638 100644 --- a/www/p5-libwww/distinfo +++ b/www/p5-libwww/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.18 2007/11/23 08:46:32 tron Exp $ +$NetBSD: distinfo,v 1.19 2007/11/24 16:17:46 adrianp Exp $ SHA1 (libwww-perl-5.808.tar.gz) = 9eeb0a88a4f08006ba4a798effd74b139867f3ab RMD160 (libwww-perl-5.808.tar.gz) = 4ccc1c06cde162cc2a43e14554c9d4ad7103e51a Size (libwww-perl-5.808.tar.gz) = 240305 bytes -SHA1 (patch-aa) = 2dddc75cecaea37ffed94ded0760289775c6ee80 +SHA1 (patch-aa) = f0fdaf60af8c16a6b362024f38db956211fce175 diff --git a/www/p5-libwww/patches/patch-aa b/www/p5-libwww/patches/patch-aa index 8ea37ae6809..020480bb63d 100644 --- a/www/p5-libwww/patches/patch-aa +++ b/www/p5-libwww/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.4 2007/11/23 08:46:32 tron Exp $ +$NetBSD: patch-aa,v 1.5 2007/11/24 16:17:47 adrianp Exp $ --- Makefile.PL.orig 2007-07-19 21:45:32.000000000 +0100 +++ Makefile.PL 2007-11-23 08:42:49.000000000 +0000 @@ -30,7 +30,7 @@ $NetBSD: patch-aa,v 1.4 2007/11/23 08:46:32 tron Exp $ for my $alias (@request_aliases) { - my $default = "n"; + my $default = "y"; -+ if ($ENV{"OPSYS"} eq "Darwin") { ++ if ($ENV{"INSTALL_ALIASES"} eq "no") { + $default = "n"; + } if (prompt("Do you want to install the $alias alias?", $default) =~ /^y/) { |