freebsd-ports/devel/py-docopt/Makefile
Antoine Brodin 03443a0cd8 New port: py-docopt
docopt helps you:
- define interface for your command-line app, and
- automatically generate parser for it.

WWW: http://docopt.org/
2013-09-01 16:44:50 +00:00

40 lines
873 B
Makefile

# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$
PORTNAME= docopt
PORTVERSION= 0.6.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= antoine@FreeBSD.org
COMMENT= Pythonic argument parser, that will make you smile
LICENSE= MIT
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PLIST_FILES= %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
PORTDOCS= README.rst
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
PORTEXAMPLES= *
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>