summaryrefslogtreecommitdiff
path: root/databases/pgsanity/Makefile
blob: 82558365c4d9368a574f4aab58b77f6eebf9ebcc (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
28
29
30
31
32
33
34

PORTNAME=	pgsanity
DISTVERSIONPREFIX=	v
DISTVERSION=	0.2.9
PORTREVISION=	3
CATEGORIES=	databases python
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	0mp@FreeBSD.org
COMMENT=	Check syntax of PostgreSQL SQL files

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		pgsql python:3.6+
USE_PYTHON=	autoplist concurrent distutils

USE_GITHUB=	yes
GH_ACCOUNT=	markdrago

NO_ARCH=	yes

OPTIONS_DEFINE=	DOCS

PORTDOCS=	README.md

do-test:
	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>