From 30e1d623fa2f49abc0ebddba8b56edcbf1809f6a Mon Sep 17 00:00:00 2001 From: TAKATSU Tomonari Date: Sat, 26 Apr 2014 21:02:58 +0000 Subject: [PATCH] - Remove indefinite article from COMMENT - Fix LICENSE section - Use PYDISTUTILS_AUTOPLIST * Remove pkg-plist, accordingly - Make use of UNIQUENAM - Support STAGEDIR * Make DOCS and EXAMPLES unconditional to stage - Add DOCS and EXAMPLES to OPTIONS_DEFINE to fix default options - Unmute INSTALL_DATA and COPYTREE_SHARE in post-install target - Use single space after WWW: in pkg-descr PR: ports/188883 (based on) Submitted by: Bartek Rutkowski --- graphics/py-aafigure/Makefile | 28 +++++++++++++--------------- graphics/py-aafigure/pkg-descr | 2 +- graphics/py-aafigure/pkg-plist | 29 ----------------------------- 3 files changed, 14 insertions(+), 45 deletions(-) delete mode 100644 graphics/py-aafigure/pkg-plist diff --git a/graphics/py-aafigure/Makefile b/graphics/py-aafigure/Makefile index 57f4e800d6ba..74aa06341faa 100644 --- a/graphics/py-aafigure/Makefile +++ b/graphics/py-aafigure/Makefile @@ -3,37 +3,35 @@ PORTNAME= aafigure PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= graphics python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= tota@FreeBSD.org -COMMENT= An ASCII art to image converter written in Python +COMMENT= ASCII art to image converter written in Python + +LICENSE= BSD2CLAUSE RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \ ${PYTHON_SITELIBDIR}/reportlab/__init__.py:${PORTSDIR}/print/py-reportlab2 -LICENSE= BSD -LICENSE_FILE= ${WRKSRC}/LICENSE.txt - USE_PYTHON= yes USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes -DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} -EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +DOCSDIR= ${PREFIX}/share/doc/${UNIQUENAME} +EXAMPLESDIR= ${PREFIX}/share/examples/${UNIQUENAME} PORTDOCS= README.txt PORTEXAMPLES= * -NO_STAGE= yes +OPTIONS_DEFINE= DOCS EXAMPLES + post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR} -.endif -.if !defined(NOPORTEXAMPLES) - ${MKDIR} ${EXAMPLESDIR} - cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/graphics/py-aafigure/pkg-descr b/graphics/py-aafigure/pkg-descr index e3f85621b56c..d2f75b8cd4f0 100644 --- a/graphics/py-aafigure/pkg-descr +++ b/graphics/py-aafigure/pkg-descr @@ -4,4 +4,4 @@ ASCII art figures can be parsed and output as SVG, PNG, JPEG, PDF and more. This project provides a Python package, a command line script as well as Docutils and MoinMoin plugins. -WWW: https://launchpad.net/aafigure/ +WWW: https://launchpad.net/aafigure/ diff --git a/graphics/py-aafigure/pkg-plist b/graphics/py-aafigure/pkg-plist deleted file mode 100644 index f52596b5d297..000000000000 --- a/graphics/py-aafigure/pkg-plist +++ /dev/null @@ -1,29 +0,0 @@ -bin/aafigure -%%PYTHON_SITELIBDIR%%/aafigure/PILhelper.py -%%PYTHON_SITELIBDIR%%/aafigure/PILhelper.pyc -%%PYTHON_SITELIBDIR%%/aafigure/PILhelper.pyo -%%PYTHON_SITELIBDIR%%/aafigure/__init__.py -%%PYTHON_SITELIBDIR%%/aafigure/__init__.pyc -%%PYTHON_SITELIBDIR%%/aafigure/__init__.pyo -%%PYTHON_SITELIBDIR%%/aafigure/aa.py -%%PYTHON_SITELIBDIR%%/aafigure/aa.pyc -%%PYTHON_SITELIBDIR%%/aafigure/aa.pyo -%%PYTHON_SITELIBDIR%%/aafigure/aafigure.py -%%PYTHON_SITELIBDIR%%/aafigure/aafigure.pyc -%%PYTHON_SITELIBDIR%%/aafigure/aafigure.pyo -%%PYTHON_SITELIBDIR%%/aafigure/error.py -%%PYTHON_SITELIBDIR%%/aafigure/error.pyc -%%PYTHON_SITELIBDIR%%/aafigure/error.pyo -%%PYTHON_SITELIBDIR%%/aafigure/pdf.py -%%PYTHON_SITELIBDIR%%/aafigure/pdf.pyc -%%PYTHON_SITELIBDIR%%/aafigure/pdf.pyo -%%PYTHON_SITELIBDIR%%/aafigure/pil.py -%%PYTHON_SITELIBDIR%%/aafigure/pil.pyc -%%PYTHON_SITELIBDIR%%/aafigure/pil.pyo -%%PYTHON_SITELIBDIR%%/aafigure/shapes.py -%%PYTHON_SITELIBDIR%%/aafigure/shapes.pyc -%%PYTHON_SITELIBDIR%%/aafigure/shapes.pyo -%%PYTHON_SITELIBDIR%%/aafigure/svg.py -%%PYTHON_SITELIBDIR%%/aafigure/svg.pyc -%%PYTHON_SITELIBDIR%%/aafigure/svg.pyo -@dirrm %%PYTHON_SITELIBDIR%%/aafigure