openbsd-ports/www/pelican/Makefile

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2020/07/03 21:13:17 sthen Exp $
COMMENT = static site generator written in Python
MODPY_EGG_VERSION = ${GH_TAGNAME}
DISTNAME = pelican-${MODPY_EGG_VERSION}
REVISION = 0
GH_ACCOUNT = getpelican
GH_PROJECT = pelican
GH_TAGNAME = 4.0.1
CATEGORIES = www
HOMEPAGE = https://blog.getpelican.com/
MAINTAINER = Daniel Jakots <obsd@chown.me>
# GPLv3
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
RUN_DEPENDS = devel/py-blinker${MODPY_FLAVOR} \
devel/py-dateutil${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR} \
devel/py-tz${MODPY_FLAVOR} \
textproc/py-markdown${MODPY_FLAVOR} \
textproc/py-docutils${MODPY_FLAVOR} \
textproc/py-pygments${MODPY_FLAVOR} \
textproc/py-unidecode${MODPY_FLAVOR} \
www/py-feedgenerator${MODPY_FLAVOR} \
www/py-jinja2${MODPY_FLAVOR}
# Else setuptools skips filenames containing UTF8 chars
MAKE_ENV += LC_CTYPE=en_US.UTF-8
TEST_DEPENDS = devel/git \
devel/py-mock${MODPY_FLAVOR}
pre-configure:
${SUBST_CMD} ${WRKSRC}/pelican/tests/test_pelican.py
.include <bsd.port.mk>