summaryrefslogtreecommitdiffstats
path: root/devel/py-xdg/Makefile
blob: 21baed99c59145047c612ef0c2124269a904f00e (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
# New ports collection makefile for:	py-xdg
# Date created:		2004-06-25
# Whom:			michael johnson <ahze@ahze.net>
#
# $FreeBSD$
#

PORTNAME=	xdg
PORTVERSION=	0.8
CATEGORIES=	devel python
MASTER_SITES=	http://freedesktop.org/Software/pyxdg/releases/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	py${PORTNAME}-${PORTVERSION}

MAINTAINER=	ahze@FreeBSD.org
COMMENT=	A python library to access freedesktop.org standards

USE_PYTHON=	yes
USE_PYDISTUTILS=yes
USE_REINPLACE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|g ; \
		s|/usr/share|/usr/share:${X11BASE}/share|g' \
		${WRKSRC}/xdg/BaseDirectory.py
	@${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g ; \
		s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/xdg/IconTheme.py

.include <bsd.port.mk>
OpenPOWER on IntegriCloud