aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-kid
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2005-12-29 13:25:46 +0800
committeredwin <edwin@FreeBSD.org>2005-12-29 13:25:46 +0800
commit9915a3b8bde0912c01df0b6bbe1e75cbaeecdab2 (patch)
tree7cfbb2402bae8f2f5cd18da0654a83a2d5def5f0 /devel/py-kid
parent69233da4e7fcd412219639d6ade0bcfaf7edb2dc (diff)
downloadfreebsd-ports-gnome-9915a3b8bde0912c01df0b6bbe1e75cbaeecdab2.tar.gz
freebsd-ports-gnome-9915a3b8bde0912c01df0b6bbe1e75cbaeecdab2.tar.zst
freebsd-ports-gnome-9915a3b8bde0912c01df0b6bbe1e75cbaeecdab2.zip
NEW PORT: devel/py-kid template language for XML based written in Python
Kid is a simple template language for XML based vocabularies written in Python. It was spawned as a result of a kinky love triangle between XSLT, TAL, and PHP. We believe many of the best features of these languages live on in Kid with much of the limitations and complexity stamped out. PR: ports/90909 Submitted by: "Choe, Cheng-Dae" <whitekid@gmail.com>
Diffstat (limited to 'devel/py-kid')
-rw-r--r--devel/py-kid/Makefile38
-rw-r--r--devel/py-kid/distinfo3
-rw-r--r--devel/py-kid/files/patch-setup.py33
-rw-r--r--devel/py-kid/pkg-descr6
-rw-r--r--devel/py-kid/pkg-plist85
5 files changed, 165 insertions, 0 deletions
diff --git a/devel/py-kid/Makefile b/devel/py-kid/Makefile
new file mode 100644
index 000000000000..eabfda8a9023
--- /dev/null
+++ b/devel/py-kid/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: py-kid
+# Date created: 2005-11-02
+# Whom: Choe, Cheng-Dae
+#
+# $FreeBSD$
+#
+
+PORTNAME= kid
+PORTVERSION= 0.8
+CATEGORIES= devel python
+MASTER_SITES= http://lesscode.org/dist/kid/${PORTVERSION}/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= whitekid@gmail.com
+COMMENT= A simple template language for XML based written in Python
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/elementtree/__init__.py:${PORTSDIR}/devel/py-elementtree
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+
+DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
+EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
+
+PORTDOCS= *
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} ; ${CP} README HISTORY COPYING misc/* ${DOCSDIR}
+ ${CP} -r ${WRKSRC}/doc/* ${DOCSDIR}
+
+ ${MKDIR} ${EXAMPLESDIR}
+ ${CP} -r ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/py-kid/distinfo b/devel/py-kid/distinfo
new file mode 100644
index 000000000000..57a331a4d6c0
--- /dev/null
+++ b/devel/py-kid/distinfo
@@ -0,0 +1,3 @@
+MD5 (kid-0.8.tar.gz) = 3ebc1df08ceb636fb5102fc3a1f6448e
+SHA256 (kid-0.8.tar.gz) = f00fdbb5abde5649e2e097a9426f49b224b0e2567fa7bef08593f585d3766e56
+SIZE (kid-0.8.tar.gz) = 172307
diff --git a/devel/py-kid/files/patch-setup.py b/devel/py-kid/files/patch-setup.py
new file mode 100644
index 000000000000..186313f30630
--- /dev/null
+++ b/devel/py-kid/files/patch-setup.py
@@ -0,0 +1,33 @@
+
+$FreeBSD$
+
+--- setup.py.orig
++++ setup.py
+@@ -1,6 +1,6 @@
+ # bootstrap setuptools if necessary
+-from ez_setup import use_setuptools
+-use_setuptools()
++#from ez_setup import use_setuptools
++#use_setuptools()
+
+ import kid as package
+
+@@ -8,7 +8,8 @@
+ package_version = package.__version__
+ doc_parts = package.__doc__.strip().splitlines()
+
+-from setuptools import setup
++#from setuptools import setup
++from distutils.core import setup
+ setup(
+ name=package_name,
+ version=package_version,
+@@ -25,7 +26,7 @@
+ py_modules=[],
+ packages=[package_name,
+ package_name + '.test'],
+- install_requires=['elementtree'],
++ #install_requires=['elementtree'],
+ classifiers = [
+ 'Development Status :: 4 - Beta',
+ 'Environment :: Console',
diff --git a/devel/py-kid/pkg-descr b/devel/py-kid/pkg-descr
new file mode 100644
index 000000000000..609550169ab1
--- /dev/null
+++ b/devel/py-kid/pkg-descr
@@ -0,0 +1,6 @@
+Kid is a simple template language for XML based vocabularies written in Python.
+It was spawned as a result of a kinky love triangle between XSLT, TAL, and PHP.
+We believe many of the best features of these languages live on in Kid with
+much of the limitations and complexity stamped out.
+
+WWW: http://kid.lesscode.org/
diff --git a/devel/py-kid/pkg-plist b/devel/py-kid/pkg-plist
new file mode 100644
index 000000000000..1ed4555a695f
--- /dev/null
+++ b/devel/py-kid/pkg-plist
@@ -0,0 +1,85 @@
+@comment $FreeBSD$
+bin/kidc
+bin/kid
+%%PYTHON_SITELIBDIR%%/kid/__init__.py
+%%PYTHON_SITELIBDIR%%/kid/compiler.py
+%%PYTHON_SITELIBDIR%%/kid/et.py
+%%PYTHON_SITELIBDIR%%/kid/filter.py
+%%PYTHON_SITELIBDIR%%/kid/importer.py
+%%PYTHON_SITELIBDIR%%/kid/namespace.py
+%%PYTHON_SITELIBDIR%%/kid/parser.py
+%%PYTHON_SITELIBDIR%%/kid/pull.py
+%%PYTHON_SITELIBDIR%%/kid/serialization.py
+%%PYTHON_SITELIBDIR%%/kid/server.py
+%%PYTHON_SITELIBDIR%%/kid/template_util.py
+%%PYTHON_SITELIBDIR%%/kid/util.py
+%%PYTHON_SITELIBDIR%%/kid/test/__init__.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_comment.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_compiler.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_kid.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_kid_lang.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_namespace.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_parser.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_pull.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_serialization.py
+%%PYTHON_SITELIBDIR%%/kid/test/test_suffixes.py
+%%PYTHON_SITELIBDIR%%/kid/test/util.py
+%%PYTHON_SITELIBDIR%%/kid/test/__init__.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_comment.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_compiler.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_kid.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_kid_lang.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_namespace.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_parser.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_pull.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_serialization.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/test_suffixes.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/util.pyc
+%%PYTHON_SITELIBDIR%%/kid/test/__init__.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_comment.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_compiler.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_kid.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_kid_lang.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_namespace.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_parser.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_pull.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_serialization.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/test_suffixes.pyo
+%%PYTHON_SITELIBDIR%%/kid/test/util.pyo
+%%PYTHON_SITELIBDIR%%/kid/__init__.pyc
+%%PYTHON_SITELIBDIR%%/kid/compiler.pyc
+%%PYTHON_SITELIBDIR%%/kid/et.pyc
+%%PYTHON_SITELIBDIR%%/kid/filter.pyc
+%%PYTHON_SITELIBDIR%%/kid/importer.pyc
+%%PYTHON_SITELIBDIR%%/kid/namespace.pyc
+%%PYTHON_SITELIBDIR%%/kid/parser.pyc
+%%PYTHON_SITELIBDIR%%/kid/pull.pyc
+%%PYTHON_SITELIBDIR%%/kid/serialization.pyc
+%%PYTHON_SITELIBDIR%%/kid/server.pyc
+%%PYTHON_SITELIBDIR%%/kid/template_util.pyc
+%%PYTHON_SITELIBDIR%%/kid/util.pyc
+%%PYTHON_SITELIBDIR%%/kid/__init__.pyo
+%%PYTHON_SITELIBDIR%%/kid/compiler.pyo
+%%PYTHON_SITELIBDIR%%/kid/et.pyo
+%%PYTHON_SITELIBDIR%%/kid/filter.pyo
+%%PYTHON_SITELIBDIR%%/kid/importer.pyo
+%%PYTHON_SITELIBDIR%%/kid/namespace.pyo
+%%PYTHON_SITELIBDIR%%/kid/parser.pyo
+%%PYTHON_SITELIBDIR%%/kid/pull.pyo
+%%PYTHON_SITELIBDIR%%/kid/serialization.pyo
+%%PYTHON_SITELIBDIR%%/kid/server.pyo
+%%PYTHON_SITELIBDIR%%/kid/template_util.pyo
+%%PYTHON_SITELIBDIR%%/kid/util.pyo
+%%PORTDOCS%%%%EXAMPLESDIR%%/cgi/kid_handler.cgi
+%%PORTDOCS%%%%EXAMPLESDIR%%/cgi/README
+%%PORTDOCS%%%%EXAMPLESDIR%%/cgi/sysinfo.kid
+%%PORTDOCS%%%%EXAMPLESDIR%%/basic/README
+%%PORTDOCS%%%%EXAMPLESDIR%%/basic/self.kid
+%%PORTDOCS%%%%EXAMPLESDIR%%/basic/sysinfo.kid
+%%PORTDOCS%%%%EXAMPLESDIR%%/basic/tutorial.kid
+%%PORTDOCS%%%%EXAMPLESDIR%%/basic/tutorial2.kid
+%%PORTDOCS%%@unexec rmdir %D/%%EXAMPLESDIR%%/cgi 2>/dev/null || true
+%%PORTDOCS%%@unexec rmdir %D/%%EXAMPLESDIR%%/basic 2>/dev/null || true
+%%PORTDOCS%%@unexec rmdir %D/%%EXAMPLESDIR%% 2>/dev/null || true
+@unexec rmdir %D/%%PYTHON_SITELIBDIR%%/kid/test 2>/dev/null || true
+@unexec rmdir %D/%%PYTHON_SITELIBDIR%%/kid 2>/dev/null || true