mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
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>
This commit is contained in:
parent
c6f1b6629f
commit
b41b5a6563
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152330
@ -1398,6 +1398,7 @@
|
||||
SUBDIR += py-icalendar
|
||||
SUBDIR += py-ice
|
||||
SUBDIR += py-istring
|
||||
SUBDIR += py-kid
|
||||
SUBDIR += py-kjbuckets
|
||||
SUBDIR += py-kqueue
|
||||
SUBDIR += py-ll-core
|
||||
|
38
devel/py-kid/Makefile
Normal file
38
devel/py-kid/Makefile
Normal file
@ -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>
|
3
devel/py-kid/distinfo
Normal file
3
devel/py-kid/distinfo
Normal file
@ -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
|
33
devel/py-kid/files/patch-setup.py
Normal file
33
devel/py-kid/files/patch-setup.py
Normal file
@ -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',
|
6
devel/py-kid/pkg-descr
Normal file
6
devel/py-kid/pkg-descr
Normal file
@ -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/
|
85
devel/py-kid/pkg-plist
Normal file
85
devel/py-kid/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user