summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/py-empy/DESCR10
-rw-r--r--textproc/py-empy/Makefile47
-rw-r--r--textproc/py-empy/PLIST62
-rw-r--r--textproc/py-empy/distinfo5
4 files changed, 124 insertions, 0 deletions
diff --git a/textproc/py-empy/DESCR b/textproc/py-empy/DESCR
new file mode 100644
index 00000000000..0a50e3b5e5c
--- /dev/null
+++ b/textproc/py-empy/DESCR
@@ -0,0 +1,10 @@
+EmPy is a system for embedding Python expressions and statements in template
+text; it takes an EmPy source file, processes it, and produces output. This is
+accomplished via expansions, which are special signals to the EmPy system and
+are set off by a special prefix (by default the at sign, @). EmPy can expand
+arbitrary Python expressions and statements in this way, as well as a variety
+of special forms. Textual data not explicitly delimited in this way is sent
+unaffected to the output, allowing Python to be used in effect as a markup
+language. Also supported are callbacks via hooks, recording and playback via
+diversions, and dynamic, chainable filters. The system is highly configurable
+via command line options and embedded commands.
diff --git a/textproc/py-empy/Makefile b/textproc/py-empy/Makefile
new file mode 100644
index 00000000000..c3fe17763fc
--- /dev/null
+++ b/textproc/py-empy/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1 2012/07/14 21:59:32 wiz Exp $
+#
+
+DISTNAME= empy-3.3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= http://www.alcyone.com/software/empy/
+
+MAINTAINER= anthony.mallet@laas.fr
+HOMEPAGE= http://www.alcyone.com/software/empy/
+COMMENT= Powerful and robust templating system for Python
+LICENSE= gnu-lgpl-v2.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS= bin share/doc
+REPLACE_PYTHON+= em.py
+
+USE_TOOLS+= pax
+PYDISTUTILSPKG= # yes
+PLIST_SUBST+= PYVERSSUFFIX="${PYVERSSUFFIX}"
+
+# Fix html path in documentation
+SUBST_CLASSES+= doc
+SUBST_STAGE.doc= post-configure
+SUBST_FILES.doc= doc/index.html
+SUBST_FILES.doc+= doc/home/max/projects/empy/doc/em.html
+SUBST_SED.doc= -e "s|home/max/projects/empy/doc/||g"
+SUBST_SED.doc+= -e "s|../../../../../||g"
+SUBST_MESSAGE.doc= Fixing paths in documentation
+
+post-install: install-wrapper install-doc
+
+.PHONY: install-wrapper
+install-wrapper:
+ ${INSTALL_SCRIPT} ${WRKSRC}/em.py \
+ ${DESTDIR}${PREFIX}/bin/empy-${PYVERSSUFFIX}
+ cd ${DESTDIR}${PREFIX}/bin && ${LN} -sf empy-${PYVERSSUFFIX} empy
+
+.PHONY: install-doc
+install-doc:
+ cd ${WRKSRC}/doc/home/max/projects/empy/doc/ && \
+ ${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/empy
+ ${CP} ${WRKSRC}/doc/index.html ${DESTDIR}${PREFIX}/share/doc/empy/
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-empy/PLIST b/textproc/py-empy/PLIST
new file mode 100644
index 00000000000..710714c02c8
--- /dev/null
+++ b/textproc/py-empy/PLIST
@@ -0,0 +1,62 @@
+@comment $NetBSD: PLIST,v 1.1 2012/07/14 21:59:32 wiz Exp $
+bin/empy
+bin/empy-${PYVERSSUFFIX}
+${PYSITELIB}/em.py
+${PYSITELIB}/em.pyc
+${PYSITELIB}/em.pyo
+share/doc/empy/em.html
+share/doc/empy/em/AbstractFile.html
+share/doc/empy/em/BreakFlow.html
+share/doc/empy/em/BufferedFilter.html
+share/doc/empy/em/CommentToken.html
+share/doc/empy/em/Context.html
+share/doc/empy/em/ContextLineToken.html
+share/doc/empy/em/ContextNameToken.html
+share/doc/empy/em/ContinueFlow.html
+share/doc/empy/em/ControlToken.html
+share/doc/empy/em/CustomToken.html
+share/doc/empy/em/Diversion.html
+share/doc/empy/em/DiversionError.html
+share/doc/empy/em/Document.html
+share/doc/empy/em/Error.html
+share/doc/empy/em/EscapeToken.html
+share/doc/empy/em/ExpansionToken.html
+share/doc/empy/em/ExpressionToken.html
+share/doc/empy/em/Filter.html
+share/doc/empy/em/FilterError.html
+share/doc/empy/em/FlowError.html
+share/doc/empy/em/FunctionFilter.html
+share/doc/empy/em/Hook.html
+share/doc/empy/em/HookError.html
+share/doc/empy/em/InPlaceToken.html
+share/doc/empy/em/Interpreter.html
+share/doc/empy/em/LineBufferedFilter.html
+share/doc/empy/em/LiteralToken.html
+share/doc/empy/em/MaximallyBufferedFilter.html
+share/doc/empy/em/MetaError.html
+share/doc/empy/em/NullFile.html
+share/doc/empy/em/NullFilter.html
+share/doc/empy/em/NullToken.html
+share/doc/empy/em/ParseError.html
+share/doc/empy/em/PrefixToken.html
+share/doc/empy/em/Processor.html
+share/doc/empy/em/ProxyFile.html
+share/doc/empy/em/ReprToken.html
+share/doc/empy/em/Scanner.html
+share/doc/empy/em/SignificatorToken.html
+share/doc/empy/em/SimpleExpressionToken.html
+share/doc/empy/em/SizeBufferedFilter.html
+share/doc/empy/em/Stack.html
+share/doc/empy/em/StackUnderflowError.html
+share/doc/empy/em/StatementToken.html
+share/doc/empy/em/Stream.html
+share/doc/empy/em/StringFilter.html
+share/doc/empy/em/StringLiteralToken.html
+share/doc/empy/em/Subsystem.html
+share/doc/empy/em/SubsystemError.html
+share/doc/empy/em/Token.html
+share/doc/empy/em/TransientParseError.html
+share/doc/empy/em/UncloseableFile.html
+share/doc/empy/em/VerboseHook.html
+share/doc/empy/em/WhitespaceToken.html
+share/doc/empy/index.html
diff --git a/textproc/py-empy/distinfo b/textproc/py-empy/distinfo
new file mode 100644
index 00000000000..866574dcadc
--- /dev/null
+++ b/textproc/py-empy/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2012/07/14 21:59:32 wiz Exp $
+
+SHA1 (empy-3.3.tar.gz) = dfc82202231143b9aabc81bd735c6f8a559b5109
+RMD160 (empy-3.3.tar.gz) = 0a9ef8d8c25a4784769a0de283108fe0ddca1289
+Size (empy-3.3.tar.gz) = 137144 bytes