Files
haikuports/dev-python/iniparse/iniparse-0.5.recipe
2023-08-12 08:25:43 +00:00

59 lines
1.7 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/
https://github.com/candlepin/python-iniparse"
COPYRIGHT="2001-2008 Python Software Foundation
2004-2009 Paramjit Oberoi
2007 Tim Lauridsen"
LICENSE="MIT
Python"
REVISION="1"
SOURCE_URI="https://github.com/candlepin/python-iniparse/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="3861300307519ee9b87aa8314e610261749b9562ee3fadccfe79e37b9e821109"
SOURCE_DIR="python-iniparse-$portVersion"
ARCHITECTURES="any"
PROVIDES="
iniparse = $portVersion
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python3
setuptools_python310
"
BUILD()
{
python3 setup.py build
}
INSTALL()
{
python3 setup.py install \
--prefix=$prefix
mkdir -p $docDir
cp -r html $docDir
}