develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r34503 - in branches/pdd30install_stage3: config/auto config/gen/makefiles t/steps

From:
rurban
Date:
December 28, 2008 09:48
Subject:
[svn:parrot] r34503 - in branches/pdd30install_stage3: config/auto config/gen/makefiles t/steps
Message ID:
20081228174759.221A8CB9FA@x12.develooper.com
Author: rurban
Date: Sun Dec 28 09:47:58 2008
New Revision: 34503

Added:
   branches/pdd30install_stage3/config/auto/pod2man.pm
   branches/pdd30install_stage3/t/steps/auto_pod2man-01.t   (contents, props changed)
Modified:
   branches/pdd30install_stage3/config/gen/makefiles/languages.in

Log:
[cage] add missing pod2man configure files

Added: branches/pdd30install_stage3/config/auto/pod2man.pm
==============================================================================
--- (empty file)
+++ branches/pdd30install_stage3/config/auto/pod2man.pm	Sun Dec 28 09:47:58 2008
@@ -0,0 +1,77 @@
+# Copyright (C) 2008, The Perl Foundation.
+# $Id: pod2man.pm 30367 2008-08-20 02:21:59Z rurban $
+
+=head1 NAME
+
+config/auto/pod2man - Check whether pod2man works
+
+=head1 DESCRIPTION
+
+Determines whether F<pod2man> exists on the system and where.
+
+More specifically, we look for the F<pod2man> associated with the
+instance of F<perl> with which F<Configure.pl> was invoked.
+
+=cut
+
+package auto::pod2man;
+
+use strict;
+use warnings;
+
+use base qw(Parrot::Configure::Step);
+use Parrot::Configure::Utils ':auto';
+
+
+sub _init {
+    my $self = shift;
+    my %data;
+    $data{description} = q{Is pod2man installed};
+    $data{result}      = q{};
+    return \%data;
+}
+
+sub runstep {
+    my ( $self, $conf ) = @_;
+
+    my $cmd = $conf->data->get_p5('scriptdirexp') . q{/pod2man};
+    my $content = capture_output("$cmd docs/parrot.pod") || undef;
+
+    return 1 unless defined( $self->_initial_content_check($conf, $content) );
+    $conf->data->set(
+        has_pod2man => 1,
+        pod2man => $cmd
+    );
+    return 1;
+}
+
+sub _initial_content_check {
+    my $self = shift;
+    my ($conf, $content) = @_;
+    if (! defined $content) {
+        $conf->data->set(
+            has_pod2man => 0,
+        );
+        $self->set_result('no');
+        return;
+    }
+    else {
+        $self->set_result('yes');
+        return 1;
+    }
+}
+
+sub _handle_no_pod2man {
+    my $self = shift;
+    $self->set_result('failed');
+    return 0;
+}
+
+1;
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:

Modified: branches/pdd30install_stage3/config/gen/makefiles/languages.in
==============================================================================
--- branches/pdd30install_stage3/config/gen/makefiles/languages.in	(original)
+++ branches/pdd30install_stage3/config/gen/makefiles/languages.in	Sun Dec 28 09:47:58 2008
@@ -40,6 +40,8 @@
 	@echo "  all:           Make a lot of language implementations."
 	@echo "                 This is the default."
 	@echo ""
+	@echo "  reallyall:     Make all for all languages"
+	@echo ""
 	@echo "  test:          Same as test-unified."
 	@echo ""
 	@echo "  test-unified:  Unified test suite for a lot of languages."
@@ -81,6 +83,25 @@
 Makefile: ../config/gen/makefiles/languages.in
 	cd $(BUILD_DIR) && $(RECONFIGURE) --step=gen::languages --languages=""
 
+reallyall: all \
+    abc.all APL.all \
+    befunge.all bf.all \
+    c99.all cardinal.all chitchat.all cola.all \
+    dotnet.all \
+    eclectus.all ecmascript.all \
+    forth.all \
+    hq9plus.all \
+    jako.all json.all \
+    lazy-k.all lisp.all lolcode.all lua.all \
+    m4.all \
+    ook.all \
+    parrot_compiler.all perl6.all pheme.all PIR.all pipp.all punie.all pynie.all \
+    regex.all \
+    scheme.all squaak.all \
+    urm.all unlambda.all \
+    WMLScript.all \
+    Zcode.all
+
 test:   test-unified
 
 test-unified: all
@@ -215,10 +236,13 @@
 #
 
 # The *.dummy targets are a replacement for the target .PHONY in 'GNU make'
+# and are really make build targets
 
 abc : abc.dummy
 abc.dummy:
 	- $(MAKE) abc
+abc.all:
+	- $(MAKE) abc all
 abc.test:
 	- $(MAKE) abc test
 abc.installable:
@@ -235,6 +259,8 @@
 APL : APL.dummy
 APL.dummy:
 	- $(MAKE) APL
+APL.all:
+	- $(MAKE) APL all
 APL.test:
 	- $(MAKE) APL test
 APL.installable:
@@ -251,6 +277,8 @@
 BASIC : BASIC.dummy
 BASIC.dummy:
 # don't know how to build BASIC
+BASIC.all:
+# Don't know how to test BASIC
 BASIC.test:
 # Don't know how to test BASIC
 BASIC.installable:
@@ -265,6 +293,8 @@
 befunge : befunge.dummy
 befunge.dummy:
 	- $(MAKE) befunge
+befunge.all:
+	- $(MAKE) befunge all
 befunge.test:
 	- $(MAKE) befunge test
 befunge.installable:
@@ -281,6 +311,8 @@
 bf : bf.dummy
 bf.dummy:
 	- $(MAKE) bf
+bf.all:
+	- $(MAKE) bf all
 bf.test:
 	- $(MAKE) bf test
 bf.installable:
@@ -297,6 +329,8 @@
 c99 : c99.dummy
 c99.dummy:
 	- $(MAKE) c99
+c99.all:
+	- $(MAKE) c99 all
 c99.test:
 	- $(MAKE) c99 test
 c99.installable:
@@ -313,6 +347,8 @@
 cardinal : cardinal.dummy
 cardinal.dummy:
 	- $(MAKE) cardinal
+cardinal.all:
+	- $(MAKE) cardinal all
 cardinal.test:
 	- $(MAKE) cardinal test
 cardinal.installable:
@@ -329,6 +365,8 @@
 chitchat : chitchat.dummy
 chitchat.dummy:
 	- $(MAKE) chitchat
+chitchat.all:
+	- $(MAKE) chitchat all
 chitchat.test:
 	- $(MAKE) chitchat test
 chitchat.installable:
@@ -345,6 +383,8 @@
 cola : cola.dummy
 cola.dummy:
 	- $(MAKE) cola
+cola.all:
+	- $(MAKE) cola all
 cola.test:
 	- $(MAKE) cola test
 cola.installable:
@@ -362,6 +402,9 @@
 dotnet.dummy:
 	cd dotnet && $(PERL) Configure.pl
 	- $(MAKE) dotnet
+dotnet.all:
+	cd dotnet && $(PERL) Configure.pl
+	- $(MAKE) dotnet all
 dotnet.test:
 	- $(MAKE) dotnet test
 dotnet.installable:
@@ -380,6 +423,8 @@
 	- $(MAKE) eclectus
 eclectus.test :
 	- $(MAKE) eclectus test
+eclectus.all :
+	- $(MAKE) eclectus all
 eclectus.installable:
 	- $(MAKE) eclectus installable
 eclectus.test-installable:
@@ -394,6 +439,8 @@
 ecmascript : ecmascript.dummy
 ecmascript.dummy:
 	- $(MAKE) ecmascript
+ecmascript.all:
+	- $(MAKE) ecmascript all
 ecmascript.test:
 	- $(MAKE) ecmascript test
 ecmascript.installable:
@@ -410,6 +457,8 @@
 forth : forth.dummy
 forth.dummy:
 	- $(MAKE) forth
+forth.all:
+	- $(MAKE) forth all
 forth.test:
 	- $(MAKE) forth test
 forth.installable:
@@ -426,6 +475,8 @@
 hq9plus: hq9plus.dummy
 hq9plus.dummy:
 	- $(MAKE) hq9plus
+hq9plus.all:
+	- $(MAKE) hq9plus all
 hq9plus.test:
 	- $(MAKE) hq9plus test
 hq9plus.installable:
@@ -442,6 +493,8 @@
 jako: jako.dummy
 jako.dummy:
 	- $(MAKE) jako
+jako.all:
+	- $(MAKE) jako all
 jako.test:
 	- $(MAKE) jako test
 jako.installable:
@@ -458,6 +511,8 @@
 json: json.dummy
 json.dummy:
 	- $(MAKE) json
+json.all:
+	- $(MAKE) json all
 json.test:
 	- $(MAKE) json test
 json.installable:
@@ -474,6 +529,8 @@
 lazy-k: lazy-k.dummy
 lazy-k.dummy:
 	- $(MAKE) lazy-k
+lazy-k.all:
+	- $(MAKE) lazy-k all
 lazy-k.test:
 	- $(MAKE) lazy-k test
 lazy-k.installable:
@@ -490,6 +547,8 @@
 lisp: lisp.dummy
 lisp.dummy:
 	- $(MAKE) lisp
+lisp.all:
+	- $(MAKE) lisp all
 lisp.test:
 	- $(MAKE) lisp test
 lisp.installable:
@@ -506,6 +565,8 @@
 lolcode: lolcode.dummy
 lolcode.dummy:
 	- $(MAKE) lolcode
+lolcode.all:
+	- $(MAKE) lolcode all
 lolcode.test:
 	- $(MAKE) lolcode test
 lolcode.installable:
@@ -522,6 +583,8 @@
 lua: lua.dummy
 lua.dummy:
 	- $(MAKE) lua
+lua.all:
+	- $(MAKE) lua all
 lua.test:
 	- $(MAKE) lua test
 lua.installable:
@@ -538,6 +601,8 @@
 m4: m4.dummy
 m4.dummy:
 	- $(MAKE) m4
+m4.all:
+	- $(MAKE) m4 all
 m4.test:
 	- $(MAKE) m4 test
 m4.installable:
@@ -554,6 +619,8 @@
 markdown: markdown.dummy
 markdown.dummy:
 	- $(MAKE) markdown
+markdown.all:
+	- $(MAKE) markdown all
 markdown.test:
 	- $(MAKE) markdown test
 markdown.clean:
@@ -564,6 +631,8 @@
 ook : ook.dummy
 ook.dummy:
 	- $(MAKE) ook
+ook.all:
+	- $(MAKE) ook all
 ook.test:
 	- $(MAKE) ook test
 ook.installable:
@@ -580,6 +649,8 @@
 parrot_compiler: parrot_compiler.dummy
 parrot_compiler.dummy:
 	- $(MAKE) parrot_compiler
+parrot_compiler.all:
+	- $(MAKE) parrot_compiler all
 parrot_compiler.test:
 	- $(MAKE) parrot_compiler test
 parrot_compiler.installable:
@@ -596,6 +667,8 @@
 perl6 : perl6.dummy
 perl6.dummy:
 	- $(MAKE) perl6
+perl6.all:
+	- $(MAKE) perl6 all
 perl6.test:
 	- $(MAKE) perl6 test
 perl6.installable:
@@ -612,6 +685,8 @@
 pheme : pheme.dummy
 pheme.dummy:
 	- $(MAKE) pheme
+pheme.all:
+	- $(MAKE) pheme all
 pheme.test:
 	- $(MAKE) pheme test
 pheme.installable:
@@ -628,6 +703,8 @@
 pipp : pipp.dummy
 pipp.dummy:
 	- $(MAKE) pipp
+pipp.all:
+	- $(MAKE) pipp all
 pipp.test:
 	- $(MAKE) pipp test
 pipp.installable:
@@ -644,6 +721,8 @@
 PIR: PIR.dummy
 PIR.dummy:
 	- $(MAKE) PIR
+PIR.all:
+	- $(MAKE) PIR all
 PIR.test:
 	- $(MAKE) PIR test
 PIR.installable:
@@ -660,6 +739,8 @@
 punie : punie.dummy
 punie.dummy:
 	- $(MAKE) punie
+punie.all:
+	- $(MAKE) punie all
 punie.test:
 	- $(MAKE) punie test
 punie.installable:
@@ -676,6 +757,8 @@
 pynie : pynie.dummy
 pynie.dummy:
 	- $(MAKE) pynie
+pynie.all:
+	- $(MAKE) pynie all
 pynie.test:
 	- $(MAKE) pynie test
 pynie.installable:
@@ -692,6 +775,8 @@
 regex: regex.dummy
 regex.dummy:
 	- $(MAKE) regex
+regex.all:
+	- $(MAKE) regex all
 regex.test :
 	- $(MAKE) regex test
 regex.installable:
@@ -708,6 +793,8 @@
 scheme: scheme.dummy
 scheme.dummy:
 	@echo "SKIPPED: scheme: (nothing to make, but should not default to make test)"
+scheme.all:
+	- $(MAKE) scheme all
 scheme.test :
 	- $(MAKE) scheme test
 scheme.installable:
@@ -724,6 +811,8 @@
 squaak: squaak.dummy
 squaak.dummy:
 	- $(MAKE) squaak
+squaak.all:
+	- $(MAKE) squaak all
 squaak.test:
 	- $(MAKE) squaak test
 squaak.installable:
@@ -740,6 +829,8 @@
 unlambda: unlambda.dummy
 unlambda.dummy:
 	- $(MAKE) unlambda
+unlambda.all:
+	- $(MAKE) unlambda all
 unlambda.test :
 	- $(MAKE) unlambda test
 unlambda.installable:
@@ -756,6 +847,8 @@
 urm: urm.dummy
 urm.dummy:
 	- $(MAKE) urm
+urm.all:
+	- $(MAKE) urm all
 urm.test:
 	- $(MAKE) urm test
 urm.installable:
@@ -772,6 +865,8 @@
 WMLScript: WMLScript.dummy
 WMLScript.dummy:
 	- $(MAKE) WMLScript
+WMLScript.all:
+	- $(MAKE) WMLScript all
 WMLScript.test:
 	- $(MAKE) WMLScript test
 WMLScript.installable:
@@ -786,16 +881,19 @@
 	- $(MAKE) WMLScript realclean
 
 Zcode : Zcode.dummy
-Zcode.dummy:
 # Do nothing. make Zcode requires an Inform compiler
+Zcode.dummy:
+	- $(MAKE) Zcode
+Zcode.all:
+	- $(MAKE) Zcode all
 Zcode.test:
 	- $(MAKE) Zcode test
 Zcode.installable:
-# Do nothing. make Zcode requires an Inform compiler
+	- $(MAKE) Zcode installable
 Zcode.test-installable:
-# Do nothing. make Zcode requires an Inform compiler
+	- $(MAKE) Zcode test-installable
 Zcode.install:
-# Do nothing. make Zcode requires an Inform compiler
+	- $(MAKE) Zcode install
 Zcode.clean:
 	- $(MAKE) Zcode clean
 Zcode.realclean:

Added: branches/pdd30install_stage3/t/steps/auto_pod2man-01.t
==============================================================================
--- (empty file)
+++ branches/pdd30install_stage3/t/steps/auto_pod2man-01.t	Sun Dec 28 09:47:58 2008
@@ -0,0 +1,91 @@
+#! perl
+# Copyright (C) 2007, The Perl Foundation.
+# $Id: auto_pod2man-01.t 30640 2008-08-29 23:09:28Z jkeenan $
+# auto_pod2man-01.t
+
+use strict;
+use warnings;
+use Test::More tests => 7;
+use Carp;
+use lib qw( lib t/configure/testlib );
+use_ok('config::init::defaults');
+use_ok('config::auto::pod2man');
+use Parrot::BuildUtil;
+use Parrot::Configure;
+use Parrot::Configure::Options qw( process_options );
+use Parrot::Configure::Test qw(
+    test_step_thru_runstep
+    rerun_defaults_for_testing
+    test_step_constructor_and_description
+);
+use IO::CaptureOutput qw| capture |;
+
+########## regular ##########
+
+my ($args, $step_list_ref) = process_options( {
+    argv            => [],
+    mode            => q{configure},
+} );
+
+my $conf = Parrot::Configure->new();
+
+test_step_thru_runstep($conf, q{init::defaults}, $args);
+
+my $pkg = q{auto::pod2man};
+
+$conf->add_steps($pkg);
+
+my $serialized = $conf->pcfreeze();
+
+$conf->options->set(%{$args});
+my $step = test_step_constructor_and_description($conf);
+ok($step->runstep($conf), "runstep() completed successfully");
+ok(defined($step->result), "Result was defined");
+my $has = $conf->data->get('has_pod2man');
+ok( ( ($has == 1) or ($has == 0) ),
+    "Got an acceptable value for 'has_pod2man'");
+
+$conf->replenish($serialized);
+
+########## _initial_content_check() ##########
+
+my $content = undef;
+my $rv = $step->_initial_content_check($conf, $content);
+ok(! defined $rv, "Got expected return value when content was undefined");
+is($step->result(),
+    q{no}, "Got expected result when content was undefined");
+
+pass("Completed all tests in $0");
+
+################### DOCUMENTATION ###################
+
+=head1 NAME
+
+auto_pod2man-01.t - test auto::pod2man
+
+=head1 SYNOPSIS
+
+    % prove t/steps/auto_pod2man-01.t
+
+=head1 DESCRIPTION
+
+The files in this directory test functionality used by F<Configure.pl>.
+
+The tests in this file test auto::pod2man.
+
+=head1 AUTHOR
+
+Reini Urban
+
+=head1 SEE ALSO
+
+config::auto::pod2man, F<Configure.pl>.
+
+=cut
+
+# Local Variables:
+#   mode: cperl
+#   cperl-indent-level: 4
+#   fill-column: 100
+# End:
+# vim: expandtab shiftwidth=4:



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About