openbsd-ports/www/py-httplib2/Makefile
2013-03-11 11:35:43 +00:00

39 lines
927 B
Makefile

# $OpenBSD: Makefile,v 1.11 2013/03/11 11:44:48 espie Exp $
COMMENT = Python HTTP client library
MODPY_EGG_VERSION = 0.7.7
REVISION = 0
DISTNAME = httplib2-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = www net
HOMEPAGE = http://code.google.com/p/httplib2/
# MIT
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = http://httplib2.googlecode.com/files/
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
MODPY_BADEGGS = python${MODPY_MAJOR_VERSION}/httplib2
pre-patch:
@perl -pi -e 's|\r\n|\n|g' ${WRKDIST}/python3/httplib2test.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}httplib2
${INSTALL_DATA} ${WRKSRC}/README \
${PREFIX}/share/doc/${MODPY_PY_PREFIX}httplib2
ln -sf /etc/ssl/cert.pem \
${PREFIX}/lib/python${MODPY_VERSION}/site-packages/httplib2/cacerts.txt
do-test:
${MODPY_BIN} ${WRKSRC}/python${MODPY_MAJOR_VERSION}/httplib2test.py
.include <bsd.port.mk>