# New ports collection makefile for:	py-bsdconv
# Date created:				11 Oct 2009
# Whom:					buganini@gmail.com
#
# $FreeBSD: ports/converters/py-bsdconv/Makefile,v 1.13 2012/01/09 16:11:47 sunpoet Exp $
#

PORTNAME=	bsdconv
PORTVERSION=	7.3
CATEGORIES=	converters python
MASTER_SITES=	https://github.com/buganini/python-${PORTNAME}/tarball/${PORTVERSION}/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	buganini-${PORTNAME}-${PORTVERSION}-0-g${GITVERSION}

MAINTAINER=	buganini@gmail.com
COMMENT=	Python wrapper for bsdconv

LICENSE=	BSD

LIB_DEPENDS=	bsdconv.7:${PORTSDIR}/converters/bsdconv

GITVERSION=	86bb880
FETCH_ARGS=	-pRr
WRKSRC=		${WRKDIR}/buganini-python-${PORTNAME}-${GITVERSION}
USE_PYTHON=	yes
USE_PYDISTUTILS=	yes
PLIST_SUB=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S|^${LOCALBASE}/||g}

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/setup.py

.include <bsd.port.mk>
