[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Porters] "adapting" MakeMaker




On Thu, 9 Dec 1999 schinder@pobox.com wrote:

> On Thu, Dec 09, 1999 at 10:43:38AM -0600, Matthew Langford wrote:
> } 
> } I'd like to automate some pieces of a non-MPW module build process (eg,
> } the test dirs and possibly running tests).  The Makefile.PL seems to come
> } up over and over.  I started rooting around, looking at MakeMaker.pm, and
> } then found MM_MacOS.pm, which seems to be the perfect place to make my
> } changes.
> } 
> } However, MM_MacOS.pm probably works just fine for MPW-ers.  Is there some
> } way to determine if it is running under MPW?  An environment variable,
> } perhaps?  If so, we could switch implementations accordingly.
> 
> Before you get started down this road, you should look at what Chris
> has already done with Makefile.PL processing with cpan-mac.

Thanks for the suggestion.  It looks like cpan-mac _is_ the first part of
what I wanted, in that it converts the targzips, converts the line
endings, and calls MM_MacOS::make and make_install.

Speaking of which, Chris, if you are listening on the partyline, there's a
line in my copy of the installme.plx which looks suspicious:

    my $conv = Mac::Conversions->new(Remove=>1);

I believe that the actual conversion is handled by
MM_MacOS::convert_files, so is that line necessary in main()?

Which brings me to another question, one I've asked before and to my
knowledge haven't received a reply.  There may be no solution right now.

How do I know what version I have of a droplet?

My copy of installme.plx says it was last modified 28 Jul 1999, which
seems old--I've installed a cpan-mac or two after that date.  Maybe
installme.plx didn't need changing.  So I dug up CPAN.pm; it said

     $VERSION = '1.50';

     # $Id: CPAN.pm,v 1.264 1999/05/23 14:26:49 k Exp $

     # only used during development:
     $Revision = "";
     # $Revision = "[".substr(q$Revision: 1.264 $, 10)."]";

Oof!  Would that be v1.50, or 1.264?  Is one of those a cpan-mac rev
number, and one a plain CPAN.pm version?  (I thought I had cpan-mac 0.40
or so.)  Chris Nandor has said several times there is no Mac CPAN.pm, so I
suppose cpan-mac is just a (Mac) Bundle distributed manually.  But is
there a way to determine what cpan-mac version I have?

Could a Mac version of CPAN.pm special-case Bundles, which almost always
don't work for MacPerl?  It could look for Bundles at
www.pudge.net/mmp/cpan-mac/Bundles, for example (in the same naming and
directory format as the "real" CPAN uses, to minimize code changes).




--
MattLangford 


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-porters-request@macperl.org