From 98258eec68d401f69436667e65e012c8c567e4e9 Mon Sep 17 00:00:00 2001 From: ehaupt Date: Tue, 18 Oct 2011 13:07:24 +0000 Subject: - Add LICENSE - Support PORTEXAMPLES - Add WWW PR: 161606 Submitted by: KATO Tsuguru --- textproc/roap/Makefile | 15 ++++++++---- textproc/roap/pkg-descr | 2 ++ textproc/roap/pkg-plist | 62 ++++++++++++++++++++++++------------------------- 3 files changed, 43 insertions(+), 36 deletions(-) (limited to 'textproc/roap') diff --git a/textproc/roap/Makefile b/textproc/roap/Makefile index 62e3740ab1d2..0510378ffee8 100644 --- a/textproc/roap/Makefile +++ b/textproc/roap/Makefile @@ -15,21 +15,26 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Region Oriented Ascii Processor +LICENSE= GPLv2 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= Region_Oriented_Ascii_Processor -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -DOCS= README README.ja USAGE USAGE.ja post-install: ${INSTALL_SCRIPT} ${WRKSRC}/roap ${PREFIX}/bin .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for file in ${DOCS} - ${CP} ${WRKSRC}/${file} ${DOCSDIR} +.for doc in README README.ja USAGE USAGE.ja + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} .endfor +.endif +.if !defined(NOPORTEXAMPLES) @${MKDIR} ${EXAMPLESDIR} - ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.xml ${EXAMPLESDIR} .endif .include diff --git a/textproc/roap/pkg-descr b/textproc/roap/pkg-descr index cf6789570e41..2ef59d5399c3 100644 --- a/textproc/roap/pkg-descr +++ b/textproc/roap/pkg-descr @@ -2,3 +2,5 @@ Roap scans a text file, extracts regions that matches specified patterns from it, and processes them with specified executables sequentially. Each executable reads the region as the stdin, and whole their stdouts are written out as the stdout of Roap. + +WWW: http://sourceforge.net/projects/roap/ diff --git a/textproc/roap/pkg-plist b/textproc/roap/pkg-plist index 63c55a7507d6..5095bf7f78cd 100644 --- a/textproc/roap/pkg-plist +++ b/textproc/roap/pkg-plist @@ -1,32 +1,32 @@ bin/roap -lib/%%PYTHON_VERSION%%/site-packages/roaplib/__init__.py -lib/%%PYTHON_VERSION%%/site-packages/roaplib/__init__.pyc -lib/%%PYTHON_VERSION%%/site-packages/roaplib/__init__.pyo -lib/%%PYTHON_VERSION%%/site-packages/roaplib/datasource.py -lib/%%PYTHON_VERSION%%/site-packages/roaplib/datasource.pyc -lib/%%PYTHON_VERSION%%/site-packages/roaplib/datasource.pyo -lib/%%PYTHON_VERSION%%/site-packages/roaplib/generate.py -lib/%%PYTHON_VERSION%%/site-packages/roaplib/generate.pyc -lib/%%PYTHON_VERSION%%/site-packages/roaplib/generate.pyo -lib/%%PYTHON_VERSION%%/site-packages/roaplib/matchobject.py -lib/%%PYTHON_VERSION%%/site-packages/roaplib/matchobject.pyc -lib/%%PYTHON_VERSION%%/site-packages/roaplib/matchobject.pyo -lib/%%PYTHON_VERSION%%/site-packages/roaplib/roapxml.py -lib/%%PYTHON_VERSION%%/site-packages/roaplib/roapxml.pyc -lib/%%PYTHON_VERSION%%/site-packages/roaplib/roapxml.pyo -@dirrm lib/%%PYTHON_VERSION%%/site-packages/roaplib -%%PORTDOCS%%share/doc/roap/README -%%PORTDOCS%%share/doc/roap/README.ja -%%PORTDOCS%%share/doc/roap/USAGE -%%PORTDOCS%%share/doc/roap/USAGE.ja -%%PORTDOCS%%@dirrm share/doc/roap -%%PORTDOCS%%share/examples/roap/a2h.py -%%PORTDOCS%%share/examples/roap/a2h.xml -%%PORTDOCS%%share/examples/roap/cat.xml -%%PORTDOCS%%share/examples/roap/deflist.py -%%PORTDOCS%%share/examples/roap/header.py -%%PORTDOCS%%share/examples/roap/list.py -%%PORTDOCS%%share/examples/roap/paragraph.py -%%PORTDOCS%%share/examples/roap/preformat.py -%%PORTDOCS%%share/examples/roap/title.py -%%PORTDOCS%%@dirrm share/examples/roap +%%PYTHON_SITELIBDIR%%/roaplib/__init__.py +%%PYTHON_SITELIBDIR%%/roaplib/__init__.pyc +%%PYTHON_SITELIBDIR%%/roaplib/__init__.pyo +%%PYTHON_SITELIBDIR%%/roaplib/datasource.py +%%PYTHON_SITELIBDIR%%/roaplib/datasource.pyc +%%PYTHON_SITELIBDIR%%/roaplib/datasource.pyo +%%PYTHON_SITELIBDIR%%/roaplib/generate.py +%%PYTHON_SITELIBDIR%%/roaplib/generate.pyc +%%PYTHON_SITELIBDIR%%/roaplib/generate.pyo +%%PYTHON_SITELIBDIR%%/roaplib/matchobject.py +%%PYTHON_SITELIBDIR%%/roaplib/matchobject.pyc +%%PYTHON_SITELIBDIR%%/roaplib/matchobject.pyo +%%PYTHON_SITELIBDIR%%/roaplib/roapxml.py +%%PYTHON_SITELIBDIR%%/roaplib/roapxml.pyc +%%PYTHON_SITELIBDIR%%/roaplib/roapxml.pyo +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.ja +%%PORTDOCS%%%%DOCSDIR%%/USAGE +%%PORTDOCS%%%%DOCSDIR%%/USAGE.ja +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/a2h.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/a2h.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cat.xml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/deflist.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/header.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/list.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paragraph.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/preformat.py +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/title.py +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%PYTHON_SITELIBDIR%%/roaplib -- cgit