mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
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/ PR: ports/132406 Submitted by: Cezary Morga <cm at therek.net>
This commit is contained in:
parent
6ecaf9ad9c
commit
04870e2f0c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230141
@ -1255,6 +1255,7 @@
|
||||
SUBDIR += p5-Devel-Arena
|
||||
SUBDIR += p5-Devel-Caller
|
||||
SUBDIR += p5-Devel-Callsite
|
||||
SUBDIR += p5-Devel-CheckOS
|
||||
SUBDIR += p5-Devel-Constants
|
||||
SUBDIR += p5-Devel-CoreStack
|
||||
SUBDIR += p5-Devel-Cover
|
||||
|
80
devel/p5-Devel-CheckOS/Makefile
Normal file
80
devel/p5-Devel-CheckOS/Makefile
Normal file
@ -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>
|
3
devel/p5-Devel-CheckOS/distinfo
Normal file
3
devel/p5-Devel-CheckOS/distinfo
Normal file
@ -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
|
29
devel/p5-Devel-CheckOS/files/patch-Makefile.PL
Normal file
29
devel/p5-Devel-CheckOS/files/patch-Makefile.PL
Normal file
@ -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 =~ /^\?/) {
|
5
devel/p5-Devel-CheckOS/pkg-descr
Normal file
5
devel/p5-Devel-CheckOS/pkg-descr
Normal file
@ -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/
|
68
devel/p5-Devel-CheckOS/pkg-plist
Normal file
68
devel/p5-Devel-CheckOS/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user