Files
haikuports/dev-python/iniparse/iniparse-0.4.recipe
2016-02-26 10:33:51 -05:00

57 lines
1.8 KiB
Bash

SUMMARY="An INI parser for Python"
DESCRIPTION="
iniparse is a INI parser for Python which is:
* Compatiable with ConfigParser: Backward compatible implementations of \
ConfigParser, RawConfigParser, and SafeConfigParser are included that are \
API-compatible with the Python standard library. They pass all the unit tests \
included with Python.
* Preserves structure of INI files: Order of sections & options, indentation, \
comments, and blank lines are preserved as far as possible when data is updated.
* More convenient: Values can be accessed using dotted notation \
(cfg.user.name), or using container syntax (cfg['user']['name']).
* It is very useful for config files that are updated both by users and by \
programs, since it is very disorienting for a user to have her config file \
completely rearranged whenever a program changes it. iniparse also allows \
making the order of entries in a config file significant, which is desirable \
in applications like image galleries."
HOMEPAGE="http://code.google.com/p/iniparse/"
COPYRIGHT="2001-2008 Python Software Foundation
2004-2009 Paramjit Oberoi
2007 Tim Lauridsen"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://iniparse.googlecode.com/files/iniparse-0.4.tar.gz"
CHECKSUM_SHA256="abc1ee12d2cfb2506109072d6c21e40b6c75a3fe90a9c924327d80bc0d99c054"
SOURCE_DIR="iniparse-0.4"
PATCHES="iniparse-0.4.patchset"
ARCHITECTURES="x86 ?x86_gcc2"
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
PROVIDES="
iniparse$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:python$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:python$secondaryArchSuffix
"
BUILD()
{
$portPackageLinksDir/cmd~python/bin/python setup.py build
}
INSTALL()
{
$portPackageLinksDir/cmd~python/bin/python setup.py install \
--prefix=$prefix \
--install-data=$docDir
}