aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-12-27 18:39:19 +0800
committerwg <wg@FreeBSD.org>2013-12-27 18:39:19 +0800
commit4639744512611fa7569e4b4c66626244ef5dcb3c (patch)
tree469cb57eab35267b0272b944156954c2456ffcb4 /devel
parent00599d00435ab7f96292451c6aaedb0642d825f3 (diff)
downloadfreebsd-ports-gnome-4639744512611fa7569e4b4c66626244ef5dcb3c.tar.gz
freebsd-ports-gnome-4639744512611fa7569e4b4c66626244ef5dcb3c.tar.zst
freebsd-ports-gnome-4639744512611fa7569e4b4c66626244ef5dcb3c.zip
devel/py-optik: support staging
- Support staging - Fix docs and examples - Use python auto plist - Remove leading article from COMMENT
Diffstat (limited to 'devel')
-rw-r--r--devel/py-optik/Makefile26
-rw-r--r--devel/py-optik/pkg-plist47
2 files changed, 12 insertions, 61 deletions
diff --git a/devel/py-optik/Makefile b/devel/py-optik/Makefile
index 252d9e6ae734..8ce90bc54629 100644
--- a/devel/py-optik/Makefile
+++ b/devel/py-optik/Makefile
@@ -8,24 +8,22 @@ MASTER_SITES= SF
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
-COMMENT= A command-line parsing library for Python
+COMMENT= Command-line parsing library for Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-NO_STAGE= yes
+PYDISTUTILS_AUTOPLIST= yes
-.if !defined(NOPORTDOCS)
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-PLIST_SUB+= DOCSDIR=${DOCSDIR:S@^${PREFIX}/@@}
-post-install::
- @${MKDIR} ${DOCSDIR}/test
- ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/test/* ${DOCSDIR}/test
-.endif
-EXAMPLES= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
-PLIST_SUB+= EXAMPLES=${EXAMPLES:S@^${PREFIX}/@@}
-post-install::
- @${MKDIR} ${EXAMPLES}
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLES}
+EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
+PORTDOCS= *
+PORTEXAMPLES= *
+
+post-install:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/test
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/test/* ${STAGEDIR}${DOCSDIR}/test
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/devel/py-optik/pkg-plist b/devel/py-optik/pkg-plist
deleted file mode 100644
index dcc3efd9cac1..000000000000
--- a/devel/py-optik/pkg-plist
+++ /dev/null
@@ -1,47 +0,0 @@
-%%PYTHON_SITELIBDIR%%/optparse.py
-%%PYTHON_SITELIBDIR%%/optparse.pyc
-%%PYTHON_SITELIBDIR%%/optparse.pyo
-%%PYTHON_SITELIBDIR%%/optik/__init__.py
-%%PYTHON_SITELIBDIR%%/optik/__init__.pyc
-%%PYTHON_SITELIBDIR%%/optik/__init__.pyo
-%%PYTHON_SITELIBDIR%%/optik/errors.py
-%%PYTHON_SITELIBDIR%%/optik/errors.pyc
-%%PYTHON_SITELIBDIR%%/optik/errors.pyo
-%%PYTHON_SITELIBDIR%%/optik/help.py
-%%PYTHON_SITELIBDIR%%/optik/help.pyc
-%%PYTHON_SITELIBDIR%%/optik/help.pyo
-%%PYTHON_SITELIBDIR%%/optik/option.py
-%%PYTHON_SITELIBDIR%%/optik/option.pyc
-%%PYTHON_SITELIBDIR%%/optik/option.pyo
-%%PYTHON_SITELIBDIR%%/optik/option_parser.py
-%%PYTHON_SITELIBDIR%%/optik/option_parser.pyc
-%%PYTHON_SITELIBDIR%%/optik/option_parser.pyo
-%%PYTHON_SITELIBDIR%%/optik/textwrap.py
-%%PYTHON_SITELIBDIR%%/optik/textwrap.pyc
-%%PYTHON_SITELIBDIR%%/optik/textwrap.pyo
-%%EXAMPLES%%/caseless.py
-%%EXAMPLES%%/custom_source.py
-%%EXAMPLES%%/custom_type.py
-%%EXAMPLES%%/help_groups.py
-%%EXAMPLES%%/i18n.py
-%%EXAMPLES%%/no_help.py
-%%EXAMPLES%%/optional_arg_1.py
-%%EXAMPLES%%/optional_arg_2.py
-%%EXAMPLES%%/pass_through.py
-%%EXAMPLES%%/required_1.py
-%%EXAMPLES%%/required_2.py
-%%PORTDOCS%%%%DOCSDIR%%/callbacks.html
-%%PORTDOCS%%%%DOCSDIR%%/callbacks.txt
-%%PORTDOCS%%%%DOCSDIR%%/extending.html
-%%PORTDOCS%%%%DOCSDIR%%/extending.txt
-%%PORTDOCS%%%%DOCSDIR%%/reference.html
-%%PORTDOCS%%%%DOCSDIR%%/reference.txt
-%%PORTDOCS%%%%DOCSDIR%%/tao.html
-%%PORTDOCS%%%%DOCSDIR%%/tao.txt
-%%PORTDOCS%%%%DOCSDIR%%/test/test_optik.py
-%%PORTDOCS%%%%DOCSDIR%%/tutorial.html
-%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt
-@dirrm %%PYTHON_SITELIBDIR%%/optik
-@dirrm %%EXAMPLES%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/test
-%%PORTDOCS%%@dirrm %%DOCSDIR%%