Index

This file was automatically generated from http://svn.pugscode.org/pugs/misc/sixpan/JIB/lib/JIB/HOWTO.pod on Thu Jul 12 12:23:24 2007 GMT, revision 16992.

JIB::HOWTO


NAME

    JIB::HOWTO -- short howto on using JIBs

Building a JIB

    ### create a directory with the following lay out:
    ### XXX explain meta.info
        _jib/
            META.info
            [ PREINST.pl    ]
            [ POSTINST.pl   ]
            [ PRERM.pl      ]
            [ POSTRM.pl     ]
        lib/
            Your/
                Module.pm
        bin/
            script.pl

    ### build a source package the source directory
    $src = JIB::Source->new( dir => /path/to/source );

    ### build a package from these sources. This will create
    ### a .jib file ready to be installed. It returns a 
    ### JIB::Package::Source object
    $src_pkg = $src->build( ... );

    ### create an installation object. this represents the directory
    ### you wish to install this package into
    ### XXX this needs to be a _jib-enabled dir for now
    $inst = JIB::Installation->new( dir => /path/to/install );
    
    ### install the package into this installation
    ### returns a JIB::Package::Installed
    $inst_pkg = $src_pkg->install( installation => $inst );