Html issue with Module::Build (Win32 ActiveState Perl)

Discussion in 'Perl Misc' started by Dilbert, Dec 20, 2009.

  1. Dilbert

    Dilbert Guest

    I have an issue with the Html that is generated with Module::Build. I
    am using Win32 ActiveState Perl 5.10.1.

    To install new modules from CPAN, I used to do ExtUtils::MakeMaker /
    perl Makefile.PL / nmake / nmake test / nmake install. ==> everything
    works fine and the new Html documentation integrates seamlessly into
    the existing documentation.

    Now I want to use Module::Build to install modules, so I do perl
    Build.PL / Build / Build test / Build install. ==> the module itself
    installs ok, but the Html is created differently. In fact the header
    in the Html file with Module::Build is much smaller than it is in the
    Html file with ExtUtils::MakeMaker.

    How can I configure Module::Build to produce Html that is *identical*
    to what is produced by MakeMaker ?

    Here is the diff between the Html files produced by
    ExtUtils::MakeMaker and by Module::Build
    (the "DTD HTML 4.0 Transitional" is created by ExtUtils::MakeMaker
    and the "DTD XHTML 1.0 Strict" is created by Module::Build)

    ==================

    2,3c2,3
    < <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    < <html>
    ---
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    > <html xmlns="http://www.w3.org/1999/xhtml">

    5,10c5
    < <!-- saved from url=(0017)http://localhost/ -->
    < <script language="JavaScript" src="../../../displayToc.js"></script>
    < <script language="JavaScript" src="../../../tocParas.js"></script>
    < <script language="JavaScript" src="../../../tocTab.js"></script>
    < <link rel="stylesheet" type="text/css" href="../../../
    scineplex.css">
    < <title>MyTest::program - My test for a program</title>
    ---
    > <title>MyTest::program</title>

    16a12,16
    > <table border="0" width="100%" cellspacing="0" cellpadding="3">
    > <tr><td class="block" valign="middle">
    > <big><strong><span class="block">&nbsp;MyTest::program</span></strong></big>
    > </td></tr>
    > </table>

    21,22d20
    < <script>writelinks('__top__',3);</script>
    < <h1><a>MyTest::program - My test for a program</a></h1>
    89a87
    > <a href="#__index__"><small>Back to Top</small></a>

    101a100
    > <a href="#__index__"><small>Back to Top</small></a>

    263a263
    > <a href="#__index__"><small>Back to Top</small></a>

    571a572
    > <a href="#__index__"><small>Back to Top</small></a>

    576a578
    > <a href="#__index__"><small>Back to Top</small></a>
     
    Dilbert, Dec 20, 2009
    #1
    1. Advertisements

  2. Dilbert

    Dilbert Guest

    On 20 déc, 19:08, Dilbert <> wrote:
    > I have an issue with the Html that is generated with Module::Build. I
    > am using Win32 ActiveState Perl 5.10.1.


    After some investigation, I found the following code in
    http://cpansearch.perl.org/src/DAGOLDEN/Module-Build-0.35/lib/Module/Build/Base.pm
    ==============
    {
    my $Is_ActivePerl = eval {require ActivePerl::DocTools};
    __PACKAGE__->add_property(html_css => $Is_ActivePerl ?
    'Active.css' : '');
    }
    ==============

    Knowing that "ActivePerl::DocTools" does *not* exist in ActiveState
    Perl, *** only "ActivePerl::DocTools::pod" does ***, would that code
    not better be written as:

    ==============
    {
    my $Is_ActivePerl = eval {require ActivePerl::DocTools::pod}; # <<==
    *** note the "::pod" ***
    __PACKAGE__->add_property(html_css => $Is_ActivePerl ?
    'Active.css' : '');
    }
    ==============
     
    Dilbert, Dec 20, 2009
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Martin 'Kingpin' Thurn

    how to get https pages with ActiveState build 806

    Martin 'Kingpin' Thurn, Jul 13, 2003, in forum: Perl
    Replies:
    2
    Views:
    2,452
    Martin 'Kingpin' Thurn
    Jul 28, 2003
  2. Nicolas Lehuen
    Replies:
    3
    Views:
    940
    Nicolas Lehuen
    Jan 28, 2004
  3. Vittorio

    Boxed Perl or ActiveState Perl?

    Vittorio, Apr 1, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    370
    GreenLight
    Apr 2, 2004
  4. Jake Wiley
    Replies:
    14
    Views:
    515
  5. doolittle
    Replies:
    3
    Views:
    207
    Brian Helterline
    Oct 27, 2006
  6. Bond
    Replies:
    4
    Views:
    438
    Dr.Ruud
    Aug 25, 2007
  7. Dilbert
    Replies:
    1
    Views:
    733
    sisyphus
    Mar 9, 2010
  8. Dilbert
    Replies:
    0
    Views:
    1,076
    Dilbert
    Nov 10, 2011
Loading...