summaryrefslogblamecommitdiffstats
path: root/devel/py-xdg/Makefile
blob: 48267bba7d4649b51a3c68b1e7cd84cedf309845 (plain) (tree)





























                                                                              
# New ports collection makefile for:    py-xdg
# Date created:     2004-06-25
# Whom:         michael johnson <ahze@ahze.net>
#
# $FreeBSD$
#   $MCom$
#

PORTNAME=   xdg
PORTVERSION=    0.15
PORTREVISION=   3
CATEGORIES= devel python
MASTER_SITES=   http://www.freedesktop.org/~lanius/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   py${PORTNAME}-${PORTVERSION}

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

USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME=    pyxdg

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

.include <bsd.port.mk>