LCFG::Build::Utils::OSXPkg - LCFG software building utilities
This documentation refers to LCFG::Build::Utils::OSXPkg version 0.9.18
This module provides a suite of utilities to help in building MacOSX packages from LCFG projects, particularly LCFG components. The methods are mostly used by tools which implement the LCFG::Build::Tool base class (e.g. LCFG::Build::Tool::OSXPkg) but typically they are designed to be generic enough to be used elsewhere.
There is one public method you can call on this class.
This method assumes that $tarfile contains sources that cmake can build and install. pkgbuild is then called to create the package.
$tarfile
cmake
pkgbuild
Absolute path to the directory where the package will be created.
Absolute path to the tarfile to unpack, build and package.
The full name of the package you want to generate, e.g. lcfg-foo-1.2.3-4. .pkg will be appended to this for you.
lcfg-foo-1.2.3-4
.pkg
The version of the package, e.g. 1.2.3.4.
1.2.3.4
A package identifier to pass to pkgbuild, e.g. org.lcfg.
org.lcfg
A reference to an array of filter expressions to pass to pkgbuild.
Absolute path to a directory of scripts to pass to pkgbuild. There is no filtering of the files in this directory and pkgbuild will copy all its contents into the package.
A boolean that flags whether the package should be created with or without a payload.
For building packages you will need CMake and pkgbuild.
This is the list of platforms on which we have tested this software. We expect this software to work on any Unix-like platform which is supported by Perl.
Mac OS X 10.7
There are no known bugs in this application. Please report any problems to bugs@lcfg.org, feedback and patches are also always very welcome.
Kenneth MacDonald <Kenneth.MacDonald@ed.ac.uk> Stephen Quinney <squinney@inf.ed.ac.uk>
Copyright (C) 2008-2012 University of Edinburgh. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.
To install LCFG::Build::Tools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LCFG::Build::Tools
CPAN shell
perl -MCPAN -e shell install LCFG::Build::Tools
For more information on module installation, please visit the detailed CPAN module installation guide.