summaryrefslogtreecommitdiff
path: root/textproc/py-iniparse
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-01-03 03:49:00 +0000
committerrodent <rodent@pkgsrc.org>2014-01-03 03:49:00 +0000
commit0d855dda17f6bdf83c35fd2da70bf7e01bdddda5 (patch)
tree4d0154ea3a062585737294532fdd289738218c0a /textproc/py-iniparse
parent325a4817f2d360d24ae0906bff27a6a414cd22cd (diff)
downloadpkgsrc-0d855dda17f6bdf83c35fd2da70bf7e01bdddda5.tar.gz
Import py27-iniparse-0.4 as textproc/py-iniparse.
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.
Diffstat (limited to 'textproc/py-iniparse')
-rw-r--r--textproc/py-iniparse/DESCR19
-rw-r--r--textproc/py-iniparse/Makefile19
-rw-r--r--textproc/py-iniparse/PLIST23
-rw-r--r--textproc/py-iniparse/distinfo5
4 files changed, 66 insertions, 0 deletions
diff --git a/textproc/py-iniparse/DESCR b/textproc/py-iniparse/DESCR
new file mode 100644
index 00000000000..80f04d9e319
--- /dev/null
+++ b/textproc/py-iniparse/DESCR
@@ -0,0 +1,19 @@
+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.
diff --git a/textproc/py-iniparse/Makefile b/textproc/py-iniparse/Makefile
new file mode 100644
index 00000000000..f8ba8a83094
--- /dev/null
+++ b/textproc/py-iniparse/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2014/01/03 03:49:00 rodent Exp $
+
+DISTNAME= iniparse-0.4
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc
+MASTER_SITES= http://iniparse.googlecode.com/files/
+
+MAINTAINER= rodent@NetBSD.org
+HOMEPAGE= http://code.google.com/p/iniparse/
+COMMENT= Better INI parser for Python
+LICENSE= mit AND python-software-foundation
+
+USE_LANGUAGES= # none
+
+post-install:
+ ${CHMOD} -x ${DESTDIR}${PREFIX}/share/doc/iniparse-0.4/index.html
+
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-iniparse/PLIST b/textproc/py-iniparse/PLIST
new file mode 100644
index 00000000000..6a8b5f79b10
--- /dev/null
+++ b/textproc/py-iniparse/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1 2014/01/03 03:49:00 rodent Exp $
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/iniparse/__init__.py
+${PYSITELIB}/iniparse/__init__.pyc
+${PYSITELIB}/iniparse/__init__.pyo
+${PYSITELIB}/iniparse/compat.py
+${PYSITELIB}/iniparse/compat.pyc
+${PYSITELIB}/iniparse/compat.pyo
+${PYSITELIB}/iniparse/config.py
+${PYSITELIB}/iniparse/config.pyc
+${PYSITELIB}/iniparse/config.pyo
+${PYSITELIB}/iniparse/ini.py
+${PYSITELIB}/iniparse/ini.pyc
+${PYSITELIB}/iniparse/ini.pyo
+${PYSITELIB}/iniparse/utils.py
+${PYSITELIB}/iniparse/utils.pyc
+${PYSITELIB}/iniparse/utils.pyo
+share/doc/iniparse-${PKGVERSION}/Changelog
+share/doc/iniparse-${PKGVERSION}/LICENSE
+share/doc/iniparse-${PKGVERSION}/LICENSE-PSF
+share/doc/iniparse-${PKGVERSION}/README
+share/doc/iniparse-${PKGVERSION}/index.html
+share/doc/iniparse-${PKGVERSION}/style.css
diff --git a/textproc/py-iniparse/distinfo b/textproc/py-iniparse/distinfo
new file mode 100644
index 00000000000..7767c067457
--- /dev/null
+++ b/textproc/py-iniparse/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/01/03 03:49:00 rodent Exp $
+
+SHA1 (iniparse-0.4.tar.gz) = 2b2af8a19f3e5c212c27d7c524cd748fa0b38650
+RMD160 (iniparse-0.4.tar.gz) = f4cb5edc035e787acea428a7d21343d986f85f5c
+Size (iniparse-0.4.tar.gz) = 31278 bytes