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

Re: [MacPerl] Creating MacPerl Module Requirements



At 6:06 PM -0500 3/14/00, Chris Nandor wrote:
>At 15.51 -0700 2000.03.14, Joseph A. DiVerdi wrote:
>>I am working on creating a Perl module for exclusive use with Macintosh
>>hardware. Is it necessary or useful to create a Makefile.pl file in the
>>distribution? If so, what purpose does it serve and what 
>>functionality does it
>>provide?
>
>Yes, the Makefile.PL is parsed when the distribution is dropped on 
>installme, so installme knows what to do with it.
>
>The basic Makefile.PL will look like this:
>
>use ExtUtils::MakeMaker;
># See lib/ExtUtils/MakeMaker.pm for details of how to influence
># the contents of the Makefile that is written.
>WriteMakefile(
>    NAME			=> 'MP3::Info',
>    VERSION_FROM	=> 'Info.pm', # finds $VERSION
>);
>
>
>It has the name of the module, and the file that contains $VERSION 
>(which is also added to the list of files to install).
>
>Something else important for your module is that Mac files, ones 
>with resource forks that need to be maintained, need to be 
>MacBinarized. The best way to package the distribution once the data 
>is ready is to drop it on tarzipme, and then manually decide which 
>files get to remain as text (plain font), regular unchanged binary 
>(italic font), and which are MacBinary (bold font).  The module file 
>with the XCMDs or XFCNs should be MacBinarized, with the bold font.
>
>That's about it, I think.

Thanks, Chris. I understand your remarks but am now a little confused.

To date, when I have installed modules for MacPerl I have either put 
the expanded distribution into the 'MacPerl:site_perl' folder or used 
an alias to provide access to the distribution. I have never used 
'installme' nor have I heard of it until now. Am I missing out on 
something important or useful?

Also can you provide a reference for the 'tarzipme' program?

--
Joseph A. DiVerdi, Ph.D., M.B.A.
<diverdi@XTRsystems.com>                    970.221.3982 (voice)
<http://www.XTRsystems.com>                 970.224.3723 (fax)
%PGPKey=('D50A9E33',[1024,'D790 3F87 2944 1E65 3286 1AD4 1A10 C5E1 D50A 9E33'])
--

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