freebsd-ports/www/py-pyweblib/Makefile
Mathieu Arnold 4a3bebcae1 Add EXAMPLES options to ports that should have one.
Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
2018-09-10 13:15:47 +00:00

32 lines
816 B
Makefile

# Created by: Oddbjorn Steffensen <oddbjorn@tricknology.org>
# $FreeBSD$
PORTNAME= pyweblib
PORTVERSION= 1.3.13
CATEGORIES= www
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= bsam@FreeBSD.org
COMMENT= Yet another web programming framework for Python
LICENSE= GPLv2
USES= python
USE_PYTHON= autoplist distutils
PORTDOCS= pyweblib.forms.html pyweblib.helper.html \
pyweblib.html pyweblib.httphelper.html \
pyweblib.session.html pyweblib.sslenv.html
EXAMPLES= *.py
OPTIONS_DEFINE= DOCS EXAMPLES
PORTEXAMPLES= *
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/cgi-bin ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/cgi-bin/${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}/cgi-bin
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/htdocs/pydoc/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>