aboutsummaryrefslogtreecommitdiff
path: root/devel/py-xdg/Makefile
blob: 00c04a5ce12ef0a0a48b02325b5c209b8b0a4213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PORTNAME=	xdg
PORTVERSION=	0.28
PORTREVISION=	1
CATEGORIES=	devel python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	py${PORTNAME}-${PORTVERSION}

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Python library to access freedesktop.org standards
WWW=		https://freedesktop.org/wiki/Software/pyxdg/

LICENSE=	LGPL20

NO_ARCH=	yes
USES=		python
USE_PYTHON=	autoplist distutils pytest # 2 tests fail, see https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/26

post-patch:
	@${REINPLACE_CMD} -e \
		's|%%LOCALBASE%%|${LOCALBASE}|g' \
			${WRKSRC}/xdg/BaseDirectory.py

.include <bsd.port.mk>