On approximately 11/7/2003 11:34 AM, came the following characters from
the keyboard of Laurent ROCHER:
Hi,
So what are the steps to package Win32::GUI (version 0.0.665) into a PPD
file, so that it can be distributed?
I know others have done it, but I have never made a PPD out of anything...
Pointers to appropriate documentation is fine, if it covers everything
needed, or pointers + specific things for Win32::GUI.
For make a binary package for ppm, you need a ppd file and a tar.gz file.
1) Build Win32GUI.
perl makefile
nmake
2) Tar gzip you blib directory into a Win32-GUI.tar.gz file.
3) Make a ppd file
nmake ppd
Edit this ppd file and replace HREF="" by HREF="Win32-GUI.targ.gz"
4) Distribute ppd and tar.gz in a zip file.
See more at :
http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/ActivePerl-faq2.html#how_to_make_ppm_distribution
Personnaly, i have a bat file doing this (and create html doc) :
del Win32-GUI.ppd
del Win32-GUI.tar
del Win32-GUI.tar.gz
del vc60.pdb
del .\blib\arch\auto\Win32\GUI\GUI.pdb
nmake ppd
call pod2html -htmlroot=. GUI.pm -outfile=GUI.html
call pod2html -htmlroot=. BitmapInline.pm -outfile=BitmapInline.html
call pod2html -htmlroot=. GridLayout.pm -outfile=GridLayout.html
mkdir /s blib\html\lib\Win32\GUI
move GUI.html blib\html\lib\Win32\GUI.html
move GridLayout.html blib\html\lib\Win32\GUI\GridLayout.html
move BitmapInline.html blib\html\lib\Win32\GUI\BitmapInline.html
tar cvf Win32-GUI.tar blib
gzip --best Win32-GUI.tar
perl -p -i.bak -e"s/HREF=\"\"/HREF=\"Win32-GUI.tar.gz\"/g" Win32-GUI.ppd
del Win32-GUI.ppd.bak
del pod2htm*.*
del Win32-GUI.tar
After i Zip Win32-GUI.ppd, Win32-GUI.tar.gz and a small Readme.txt.
If you have a WebSpace, you can setup your own PPM repository.
A PPMServer if you can run perl srcipt or a Simple Web repository.
I personnaly setup up only a web repository.
You copy all you ppd and tar.gz file into a directory.
You replace HREF in all ppd by a full url to your tar.gz file.
After you need to build 3 files using attached perl script.
perl packagelst.pl > package.lst
perl summary.pl > summary.ppm
perl searchsummary.pl > searchsummary.ppm
Send all file in your Web space and only setup PPM to use this repository.
Laurent.
Laurent,
Thanks for the detailed explanation! Just what I need. I'll give this
a whirl, and see what I wind up with as a result.
--
Glenn -- http://nevcal.com/
===========================
Like almost everyone, I receive a lot of spam every day, much of it
offering to help me get out of debt or get rich quick. It's ridiculous.
-- Bill Gates