summaryrefslogtreecommitdiff
path: root/textproc/py-mkdocs-material-extensions/Makefile
blob: 05887444fddd82b7b8e42fe6bf45802f6b7b5d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PORTNAME=	mkdocs-material-extensions
DISTVERSION=	1.1.1
CATEGORIES=	textproc python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	mkdocs_material_extensions-${DISTVERSION}

MAINTAINER=	kai@FreeBSD.org
COMMENT=	Markdown extension resources for MkDocs for Material
WWW=		https://github.com/facelessuser/mkdocs-material-extensions

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.md

USES=		python:3.7+
USE_PYTHON=	autoplist distutils

NO_ARCH=	yes

# Avoid that pyproject.toml is read during setup otherwise build fails
post-extract:
	@${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist

post-patch:
	@${REINPLACE_CMD} -e 's/%%DISTVERSION%%/${DISTVERSION}/' ${WRKSRC}/setup.py

.include <bsd.port.mk>