Update of /cvsroot/fink/fink/perlmod/Fink In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv28560
Modified Files: Tag: branch_0_24 ChangeLog VirtPackage.pm Log Message: new virtual package "64bit-cpu" Index: VirtPackage.pm =================================================================== RCS file: /cvsroot/fink/fink/perlmod/Fink/VirtPackage.pm,v retrieving revision 1.68.2.17 retrieving revision 1.68.2.18 diff -u -d -r1.68.2.17 -r1.68.2.18 --- VirtPackage.pm 24 Feb 2006 04:45:10 -0000 1.68.2.17 +++ VirtPackage.pm 20 Jul 2006 02:41:18 -0000 1.68.2.18 @@ -159,6 +159,41 @@ $hash->{compilescript} = &gen_compile_script($hash); $self->{$hash->{package}} = $hash; +=item 64bit-cpu + +The package is present when the CPU is 64bit-capable. + +=cut + +print STDERR "- checking for 64bit-cpu... cpu type is " if ($options{debug}); + my $cpu = `/usr/bin/machine`; + chomp $cpu; + print STDERR "$cpu..." if ($options{debug}); +# possible values seem to be: +# ppc750 (G3, not 64bit capable) +# ppc7450 (G4, not 64bit capable) +# ppc970 (G5, 64bit capable) +# i486 (early intel macs, not 64bit capable) + + $hash = {}; + $hash->{package} = "64bit-cpu"; + if ($cpu eq "ppc970") { + print STDERR "64 bit capable\n" if ($options{debug}); + $hash->{status} = STATUS_PRESENT; + } else { + print STDERR "not 64 bit capable\n" if ($options{debug}); + $hash->{status} = STATUS_ABSENT; + } + $hash->{description} = "[virtual package representing the 64bit capability of the CPU]"; + $hash->{homepage} = "http://fink.sourceforge.net/faq/usage-general.php#virtpackage"; + $hash->{descdetail} = <<END; +The presence of the 64bit-cpu package indicates that the CPU on which we +are running is 64bit capable. +END + $hash->{compilescript} = &gen_compile_script($hash); + $hash->{version} = '0-1'; + $self->{$hash->{package}} = $hash; + =item cups-dev This package represents and existing installation of the CUPS @@ -1250,6 +1285,16 @@ $self->{$hash->{package}} = $hash; } +=item 64bit-cpu + +The package is present when the CPU is 64bit-capable. + +=cut + + print STDERR "- checking for 64bit-cpu... " if ($options{debug}); +my $cpu = chomp(`/usr/bin/machine`); +print STDERR "$cpu\n"; + =back =head1 INTERNAL APIs Index: ChangeLog =================================================================== RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v retrieving revision 1.873.2.108 retrieving revision 1.873.2.109 diff -u -d -r1.873.2.108 -r1.873.2.109 --- ChangeLog 3 Jul 2006 06:55:51 -0000 1.873.2.108 +++ ChangeLog 20 Jul 2006 02:41:17 -0000 1.873.2.109 @@ -1,3 +1,7 @@ +2006-07-19 Dave Morrison <[EMAIL PROTECTED]> + + * VirtPackage.pm: new virtual package "64bit-cpu" + 2006-07-03 Dave Morrison <[EMAIL PROTECTED]> * Config.pm: backport vasi's etc/apt fix from 2006-03-22 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits