# $OpenBSD: Makefile,v 1.10 2013/01/22 16:07:57 stsp 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 PERMIT_PACKAGE_FTP = Yes PERMIT_DISTFILES_CDROM = Yes PERMIT_DISTFILES_FTP = 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-regress: ${MODPY_BIN} ${WRKSRC}/python${MODPY_MAJOR_VERSION}/httplib2test.py .include