diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-03-15 17:16:07 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-03-15 17:16:07 +0000 |
commit | 04870e2f0c9d300159df1ff362f44223c6f039c4 (patch) | |
tree | 23060f1159d14f08d4c2f6c8601ab565de3d5733 /devel/p5-Devel-CheckOS | |
parent | 6ecaf9ad9c1d6e76638c6cf00b7be56eeefefd24 (diff) | |
download | ports-04870e2f0c9d300159df1ff362f44223c6f039c4.tar.gz ports-04870e2f0c9d300159df1ff362f44223c6f039c4.zip |
Notes
Diffstat (limited to 'devel/p5-Devel-CheckOS')
-rw-r--r-- | devel/p5-Devel-CheckOS/Makefile | 80 | ||||
-rw-r--r-- | devel/p5-Devel-CheckOS/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-Devel-CheckOS/files/patch-Makefile.PL | 29 | ||||
-rw-r--r-- | devel/p5-Devel-CheckOS/pkg-descr | 5 | ||||
-rw-r--r-- | devel/p5-Devel-CheckOS/pkg-plist | 68 |
5 files changed, 185 insertions, 0 deletions
diff --git a/devel/p5-Devel-CheckOS/Makefile b/devel/p5-Devel-CheckOS/Makefile new file mode 100644 index 000000000000..bd1e76813ce8 --- /dev/null +++ b/devel/p5-Devel-CheckOS/Makefile @@ -0,0 +1,80 @@ +# New ports collection makefile for: p5-Devel-CheckOS +# Date created: March 8th 2009 +# Whom: Cezary Morga <cm@therek.net> +# +# $FreeBSD$ +# + +PORTNAME= Devel-CheckOS +PORTVERSION= 1.50 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= cm@therek.net +COMMENT= Perl5 module to check currently running OS + +BUILD_DEPENDS= ${SITE_PERL}/File/Find/Rule.pm:${PORTSDIR}/devel/p5-File-Find-Rule +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= YES + +MAN1= use-devel-assertos.1 +MAN3= Devel::AssertOS.3 \ + Devel::AssertOS::AIX.3 \ + Devel::AssertOS::Amiga.3 \ + Devel::AssertOS::Apple.3 \ + Devel::AssertOS::BSDOS.3 \ + Devel::AssertOS::BeOS.3 \ + Devel::AssertOS::Cygwin.3 \ + Devel::AssertOS::DEC.3 \ + Devel::AssertOS::DGUX.3 \ + Devel::AssertOS::DragonflyBSD.3 \ + Devel::AssertOS::Dynix.3 \ + Devel::AssertOS::Extending.3 \ + Devel::AssertOS::FreeBSD.3 \ + Devel::AssertOS::HPUX.3 \ + Devel::AssertOS::Haiku.3 \ + Devel::AssertOS::Interix.3 \ + Devel::AssertOS::Irix.3 \ + Devel::AssertOS::Linux.3 \ + Devel::AssertOS::Linux::v2_6.3 \ + Devel::AssertOS::MPEiX.3 \ + Devel::AssertOS::MSDOS.3 \ + Devel::AssertOS::MSWin32.3 \ + Devel::AssertOS::MacOSX.3 \ + Devel::AssertOS::MacOSX::v10_4.3 \ + Devel::AssertOS::MacOSclassic.3 \ + Devel::AssertOS::MachTen.3 \ + Devel::AssertOS::MicrosoftWindows.3 \ + Devel::AssertOS::MirOSBSD.3 \ + Devel::AssertOS::NeXT.3 \ + Devel::AssertOS::NetBSD.3 \ + Devel::AssertOS::Netware.3 \ + Devel::AssertOS::OS2.3 \ + Devel::AssertOS::OS390.3 \ + Devel::AssertOS::OS400.3 \ + Devel::AssertOS::OSF.3 \ + Devel::AssertOS::OSFeatures::POSIXShellRedirection.3 \ + Devel::AssertOS::OpenBSD.3 \ + Devel::AssertOS::POSIXBC.3 \ + Devel::AssertOS::QNX.3 \ + Devel::AssertOS::QNX::Neutrino.3 \ + Devel::AssertOS::QNX::v4.3 \ + Devel::AssertOS::RISCOS.3 \ + Devel::AssertOS::Realtime.3 \ + Devel::AssertOS::SCO.3 \ + Devel::AssertOS::Solaris.3 \ + Devel::AssertOS::Sun.3 \ + Devel::AssertOS::SunOS.3 \ + Devel::AssertOS::SysVr4.3 \ + Devel::AssertOS::SysVr5.3 \ + Devel::AssertOS::Unicos.3 \ + Devel::AssertOS::Unix.3 \ + Devel::AssertOS::VMESA.3 \ + Devel::AssertOS::VMS.3 \ + Devel::AssertOS::VOS.3 \ + Devel::CheckOS.3 \ + Devel::CheckOS::Families.3 + +.include <bsd.port.mk> diff --git a/devel/p5-Devel-CheckOS/distinfo b/devel/p5-Devel-CheckOS/distinfo new file mode 100644 index 000000000000..6479fc992b83 --- /dev/null +++ b/devel/p5-Devel-CheckOS/distinfo @@ -0,0 +1,3 @@ +MD5 (Devel-CheckOS-1.50.tar.gz) = 78f4fb75af0fef9ae7b974285e03f8a3 +SHA256 (Devel-CheckOS-1.50.tar.gz) = 0c4a461f21e895ec4373325a10ea5df1df734ad7ba4c261f5a3edb47e10dac77 +SIZE (Devel-CheckOS-1.50.tar.gz) = 25326 diff --git a/devel/p5-Devel-CheckOS/files/patch-Makefile.PL b/devel/p5-Devel-CheckOS/files/patch-Makefile.PL new file mode 100644 index 000000000000..b760688c8570 --- /dev/null +++ b/devel/p5-Devel-CheckOS/files/patch-Makefile.PL @@ -0,0 +1,29 @@ +--- Makefile.PL.orig 2009-03-06 18:13:08.180626799 +0000 ++++ Makefile.PL 2009-03-06 18:31:21.460741171 +0000 +@@ -17,10 +17,9 @@ + my @OSes = (); + my @notOSes = (); + +-print "I will now ask you some questions to make sure I've detected your\n"; +-print "system correctly. Most platforms will be detected several times.\n"; +-print "This is deliberate. To see an explanation of some of the more\n"; +-print "obscure options, hit the question mark key.\n\n"; ++print "To make this process automatic answer 'Yes' will be assumed to\n"; ++print "all the following questions. If this is not correct break the\n"; ++print "process and contact port maintainer.\n\n"; + + findOSes(File::Spec->catdir(qw(lib Devel AssertOS))); + +@@ -44,10 +43,8 @@ + } + next if($@); + my $hasexpn = $classname->can('expn') ? '/?' : ''; +- ASK: my $answer = prompt( +- "Are you using $prompt_modname? [Y/n$hasexpn]", +- "Y" +- ); ++ ASK: my $answer = 'yes'; ++ print "Are you using $prompt_modname? [Y/n$hasexpn] Y\n"; + if($answer =~ /^y/i) { + push @OSes, $prompt_modname; + } elsif($answer =~ /^\?/) { diff --git a/devel/p5-Devel-CheckOS/pkg-descr b/devel/p5-Devel-CheckOS/pkg-descr new file mode 100644 index 000000000000..f97a62147159 --- /dev/null +++ b/devel/p5-Devel-CheckOS/pkg-descr @@ -0,0 +1,5 @@ +Devel::CheckOS provides a more friendly interface to $^O, and also lets you +check for various OS "families" such as "Unix", which includes things like +Linux, Solaris, AIX etc. + +WWW: http://search.cpan.org/dist/Devel-CheckOS/ diff --git a/devel/p5-Devel-CheckOS/pkg-plist b/devel/p5-Devel-CheckOS/pkg-plist new file mode 100644 index 000000000000..dc43a21e1b7d --- /dev/null +++ b/devel/p5-Devel-CheckOS/pkg-plist @@ -0,0 +1,68 @@ +bin/use-devel-assertos +%%SITE_PERL%%/Devel/AssertOS.pm +%%SITE_PERL%%/Devel/AssertOS/AIX.pm +%%SITE_PERL%%/Devel/AssertOS/Amiga.pm +%%SITE_PERL%%/Devel/AssertOS/Apple.pm +%%SITE_PERL%%/Devel/AssertOS/BSDOS.pm +%%SITE_PERL%%/Devel/AssertOS/BeOS.pm +%%SITE_PERL%%/Devel/AssertOS/Cygwin.pm +%%SITE_PERL%%/Devel/AssertOS/DEC.pm +%%SITE_PERL%%/Devel/AssertOS/DGUX.pm +%%SITE_PERL%%/Devel/AssertOS/DragonflyBSD.pm +%%SITE_PERL%%/Devel/AssertOS/Dynix.pm +%%SITE_PERL%%/Devel/AssertOS/Extending.pod +%%SITE_PERL%%/Devel/AssertOS/FreeBSD.pm +%%SITE_PERL%%/Devel/AssertOS/HPUX.pm +%%SITE_PERL%%/Devel/AssertOS/Haiku.pm +%%SITE_PERL%%/Devel/AssertOS/Interix.pm +%%SITE_PERL%%/Devel/AssertOS/Irix.pm +%%SITE_PERL%%/Devel/AssertOS/Linux.pm +%%SITE_PERL%%/Devel/AssertOS/Linux/v2_6.pm +%%SITE_PERL%%/Devel/AssertOS/MPEiX.pm +%%SITE_PERL%%/Devel/AssertOS/MSDOS.pm +%%SITE_PERL%%/Devel/AssertOS/MSWin32.pm +%%SITE_PERL%%/Devel/AssertOS/MacOSX.pm +%%SITE_PERL%%/Devel/AssertOS/MacOSX/v10_4.pm +%%SITE_PERL%%/Devel/AssertOS/MacOSclassic.pm +%%SITE_PERL%%/Devel/AssertOS/MachTen.pm +%%SITE_PERL%%/Devel/AssertOS/MicrosoftWindows.pm +%%SITE_PERL%%/Devel/AssertOS/MirOSBSD.pm +%%SITE_PERL%%/Devel/AssertOS/NeXT.pm +%%SITE_PERL%%/Devel/AssertOS/NetBSD.pm +%%SITE_PERL%%/Devel/AssertOS/Netware.pm +%%SITE_PERL%%/Devel/AssertOS/OS2.pm +%%SITE_PERL%%/Devel/AssertOS/OS390.pm +%%SITE_PERL%%/Devel/AssertOS/OS400.pm +%%SITE_PERL%%/Devel/AssertOS/OSF.pm +%%SITE_PERL%%/Devel/AssertOS/OSFeatures/POSIXShellRedirection.pm +%%SITE_PERL%%/Devel/AssertOS/OpenBSD.pm +%%SITE_PERL%%/Devel/AssertOS/POSIXBC.pm +%%SITE_PERL%%/Devel/AssertOS/QNX.pm +%%SITE_PERL%%/Devel/AssertOS/QNX/Neutrino.pm +%%SITE_PERL%%/Devel/AssertOS/QNX/v4.pm +%%SITE_PERL%%/Devel/AssertOS/RISCOS.pm +%%SITE_PERL%%/Devel/AssertOS/Realtime.pm +%%SITE_PERL%%/Devel/AssertOS/SCO.pm +%%SITE_PERL%%/Devel/AssertOS/Solaris.pm +%%SITE_PERL%%/Devel/AssertOS/Sun.pm +%%SITE_PERL%%/Devel/AssertOS/SunOS.pm +%%SITE_PERL%%/Devel/AssertOS/SysVr4.pm +%%SITE_PERL%%/Devel/AssertOS/SysVr5.pm +%%SITE_PERL%%/Devel/AssertOS/Unicos.pm +%%SITE_PERL%%/Devel/AssertOS/Unix.pm +%%SITE_PERL%%/Devel/AssertOS/VMESA.pm +%%SITE_PERL%%/Devel/AssertOS/VMS.pm +%%SITE_PERL%%/Devel/AssertOS/VOS.pm +%%SITE_PERL%%/Devel/CheckOS.pm +%%SITE_PERL%%/Devel/CheckOS/Families.pod +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Devel/CheckOS/.packlist +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Devel/CheckOS +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Devel +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto +@dirrmtry %%SITE_PERL%%/Devel/CheckOS +@dirrmtry %%SITE_PERL%%/Devel/AssertOS/QNX +@dirrmtry %%SITE_PERL%%/Devel/AssertOS/OSFeatures +@dirrmtry %%SITE_PERL%%/Devel/AssertOS/MacOSX +@dirrmtry %%SITE_PERL%%/Devel/AssertOS/Linux +@dirrmtry %%SITE_PERL%%/Devel/AssertOS +@dirrmtry %%SITE_PERL%%/Devel |