34 lines
782 B
Makefile
34 lines
782 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= configparser
|
|
PORTVERSION= 3.5.3
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= robak@FreeBSD.org
|
|
COMMENT= INI style configuration file parser
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}backports>=0:devel/py-backports@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_LOCALE= en_US.UTF-8
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
NO_ARCH= yes
|
|
|
|
POST_PLIST= trim-backports-namespace
|
|
|
|
post-install:
|
|
@${RM} ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__init__.py*
|
|
@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__pycache__
|
|
|
|
trim-backports-namespace:
|
|
@${REINPLACE_CMD} '/backports\/__init__.py*/d' ${TMPPLIST}
|
|
@${REINPLACE_CMD} '/backports\/__pycache__*/d' ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|