From 35a4dd71d574d12e9c8222d14687ffc8768a13bc Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Sun, 18 Apr 2010 06:54:24 +0000 Subject: [PATCH] Add py-coil 0.3.12, a powerful configuration language for Python. PR: ports/145678 Submitted by: ghostonthewire --- devel/Makefile | 1 + devel/py-coil/Makefile | 37 ++++++++++++++++++++++++++++++++++++ devel/py-coil/distinfo | 3 +++ devel/py-coil/pkg-descr | 23 ++++++++++++++++++++++ devel/py-coil/pkg-plist | 42 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 106 insertions(+) create mode 100644 devel/py-coil/Makefile create mode 100644 devel/py-coil/distinfo create mode 100644 devel/py-coil/pkg-descr create mode 100644 devel/py-coil/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 7edd06f8d7e0..50f793213426 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2555,6 +2555,7 @@ SUBDIR += py-cjson SUBDIR += py-cmdln SUBDIR += py-cog + SUBDIR += py-coil SUBDIR += py-configobj SUBDIR += py-construct SUBDIR += py-coverage diff --git a/devel/py-coil/Makefile b/devel/py-coil/Makefile new file mode 100644 index 000000000000..faaaf4e959b3 --- /dev/null +++ b/devel/py-coil/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: py-coil +# Date created: 13 April 2010 +# Whom: ghostonthewire +# +# $FreeBSD$ +# + +PORTNAME= coil +PORTVERSION= 0.3.12 +CATEGORIES= devel python +MASTER_SITES= GOOGLE_CODE +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ghostonthewire@gmail.com +COMMENT= A powerful configuration language for Python + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +PORTDOCS= LICENSE.txt \ + README.txt \ + TODO.txt + +post-install: +# docs +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${PORTDOCS} + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor +.endif + +# permission safeness + @${CHMOD} -R ${SHAREMODE} ${PYTHONPREFIX_SITELIBDIR}/coil/* + @${CHMOD} -R a+X ${PYTHONPREFIX_SITELIBDIR}/coil/* + +.include diff --git a/devel/py-coil/distinfo b/devel/py-coil/distinfo new file mode 100644 index 000000000000..9afe84bdc6cb --- /dev/null +++ b/devel/py-coil/distinfo @@ -0,0 +1,3 @@ +MD5 (coil-0.3.12.tar.gz) = 6100abe4f28fb7af2feb3fd5c6ead022 +SHA256 (coil-0.3.12.tar.gz) = 1e2a4b68cf1691ef6d160f676c5c5c4dab9c1111e412e4db8c0c3a41d60f4960 +SIZE (coil-0.3.12.tar.gz) = 32738 diff --git a/devel/py-coil/pkg-descr b/devel/py-coil/pkg-descr new file mode 100644 index 000000000000..44ab9a190bf8 --- /dev/null +++ b/devel/py-coil/pkg-descr @@ -0,0 +1,23 @@ +[ description from README.txt ] + +Coil: A Configuration Library. + +Introduction +============ + Coil is a configuration file format that is parsed into a tree of + dict like Struct objects. The format supports inheritance, allowing + complicated configurations to be as compact as possible. + +Design Goals +============ + General design/implementation goals, some have been met, others are + still in progress. + + - Support Twisted and non-Twisted reactor driven Python programs. + - Scalable to complex configurations, easily avoiding duplication. + - Orthogonal to code; code should not be required to know about the + config system used, it should be regular Python or Twisted code. + - Minimal boilerplate. + +Author: marineam +WWW: http://code.google.com/p/coil/ diff --git a/devel/py-coil/pkg-plist b/devel/py-coil/pkg-plist new file mode 100644 index 000000000000..cf0e5830bc77 --- /dev/null +++ b/devel/py-coil/pkg-plist @@ -0,0 +1,42 @@ +bin/coildump +%%PYTHON_SITELIBDIR%%/coil/__init__.py +%%PYTHON_SITELIBDIR%%/coil/__init__.pyc +%%PYTHON_SITELIBDIR%%/coil/__init__.pyo +%%PYTHON_SITELIBDIR%%/coil/errors.py +%%PYTHON_SITELIBDIR%%/coil/errors.pyc +%%PYTHON_SITELIBDIR%%/coil/errors.pyo +%%PYTHON_SITELIBDIR%%/coil/parser.py +%%PYTHON_SITELIBDIR%%/coil/parser.pyc +%%PYTHON_SITELIBDIR%%/coil/parser.pyo +%%PYTHON_SITELIBDIR%%/coil/struct.py +%%PYTHON_SITELIBDIR%%/coil/struct.pyc +%%PYTHON_SITELIBDIR%%/coil/struct.pyo +%%PYTHON_SITELIBDIR%%/coil/test/__init__.py +%%PYTHON_SITELIBDIR%%/coil/test/__init__.pyc +%%PYTHON_SITELIBDIR%%/coil/test/__init__.pyo +%%PYTHON_SITELIBDIR%%/coil/test/complex.coil +%%PYTHON_SITELIBDIR%%/coil/test/example.coil +%%PYTHON_SITELIBDIR%%/coil/test/example2.coil +%%PYTHON_SITELIBDIR%%/coil/test/example3.coil +%%PYTHON_SITELIBDIR%%/coil/test/filesubimport.coil +%%PYTHON_SITELIBDIR%%/coil/test/simple.coil +%%PYTHON_SITELIBDIR%%/coil/test/test_parser.py +%%PYTHON_SITELIBDIR%%/coil/test/test_parser.pyc +%%PYTHON_SITELIBDIR%%/coil/test/test_parser.pyo +%%PYTHON_SITELIBDIR%%/coil/test/test_struct.py +%%PYTHON_SITELIBDIR%%/coil/test/test_struct.pyc +%%PYTHON_SITELIBDIR%%/coil/test/test_struct.pyo +%%PYTHON_SITELIBDIR%%/coil/test/test_text.py +%%PYTHON_SITELIBDIR%%/coil/test/test_text.pyc +%%PYTHON_SITELIBDIR%%/coil/test/test_text.pyo +%%PYTHON_SITELIBDIR%%/coil/test/test_tokenizer.py +%%PYTHON_SITELIBDIR%%/coil/test/test_tokenizer.pyc +%%PYTHON_SITELIBDIR%%/coil/test/test_tokenizer.pyo +%%PYTHON_SITELIBDIR%%/coil/text.py +%%PYTHON_SITELIBDIR%%/coil/text.pyc +%%PYTHON_SITELIBDIR%%/coil/text.pyo +%%PYTHON_SITELIBDIR%%/coil/tokenizer.py +%%PYTHON_SITELIBDIR%%/coil/tokenizer.pyc +%%PYTHON_SITELIBDIR%%/coil/tokenizer.pyo +@dirrm %%PYTHON_SITELIBDIR%%/coil/test +@dirrm %%PYTHON_SITELIBDIR%%/coil