mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-11 06:10:06 +02:00
Add python iniparse recipe
This commit is contained in:
66
dev-python/iniparse/iniparse-0.4.recipe
Normal file
66
dev-python/iniparse/iniparse-0.4.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="iniparse is a 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/"
|
||||
SRC_URI="http://iniparse.googlecode.com/files/iniparse-0.4.tar.gz"
|
||||
CHECKSUM_MD5="5e573e9e9733d97623881ce9bbe5eca6"
|
||||
COPYRIGHT="2001-2008 Python Software Foundation
|
||||
2004-2009 Paramjit Oberoi
|
||||
2007 Tim Lauridsen"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 ?x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
|
||||
|
||||
SOURCE_DIR="iniparse-0.4"
|
||||
|
||||
PROVIDES="
|
||||
iniparse$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
cmd:python$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:python$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCHES="iniparse-0.4.patchset"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python/bin/python setup.py build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
$portPackageLinksDir/cmd~python/bin/python setup.py install \
|
||||
--prefix=$prefix \
|
||||
--install-data=$docDir
|
||||
}
|
||||
22
dev-python/iniparse/patches/iniparse-0.4.patchset
Normal file
22
dev-python/iniparse/patches/iniparse-0.4.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 3ad56bb195c2eb428f11302ca7aff21d20d27944 Mon Sep 17 00:00:00 2001
|
||||
From: Chris Roberts <cpr420@gmail.com>
|
||||
Date: Thu, 21 Nov 2013 00:51:59 -0700
|
||||
Subject: Remove hardcoded share path
|
||||
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 736cfa1..3ac886c 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -31,7 +31,7 @@ use.''',
|
||||
],
|
||||
packages = ['iniparse'],
|
||||
data_files = [
|
||||
- ('share/doc/iniparse-%s' % VERSION, ['README', 'LICENSE-PSF',
|
||||
+ ('', ['README', 'LICENSE-PSF',
|
||||
'LICENSE', 'Changelog',
|
||||
'html/index.html',
|
||||
'html/style.css',
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
Reference in New Issue
Block a user