46 lines
1.0 KiB
Makefile
Raw Normal View History

2018-06-23 15:25:18 +00:00
# $OpenBSD: Makefile,v 1.43 2018/06/23 15:25:18 ajacoutot Exp $
COMMENT= Python interface to cURL library
2018-06-23 15:25:18 +00:00
MODPY_EGG_VERSION= 7.43.0.2
DISTNAME= pycurl-${MODPY_EGG_VERSION}
PKGNAME= py-curl-${MODPY_EGG_VERSION}
2016-10-22 18:43:14 +00:00
CATEGORIES= net
2001-12-31 19:24:21 +00:00
HOMEPAGE= http://pycurl.sourceforge.net/
# dual: LGPL or MIT-like
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += ${MODPY_WANTLIB}
WANTLIB += crypto curl nghttp2 pthread ssl z
2004-08-04 19:14:30 +00:00
MODULES= lang/python
2016-10-22 18:43:14 +00:00
MODPY_PI= Yes
FLAVORS= python3
FLAVOR?=
2010-11-19 22:31:32 +00:00
LIB_DEPENDS= net/curl
SUBST_VARS+= MODPY_PY_PREFIX
pre-configure:
@${SUBST_CMD} ${WRKSRC}/setup.py
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
mv ${PREFIX}/share/doc/${MODPY_PY_PREFIX}curl/examples \
${PREFIX}/share/examples/${MODPY_PY_PREFIX}curl/
# tests need more work; some need Bottle and Flaky which are not ported yet
TEST_DEPENDS= ${BUILD_PKGPATH} \
devel/py-nose${MODPY_FLAVOR}
do-test:
@cd ${WRKSRC}/tests && nosetests${MODPY_BIN_SUFFIX} -a \!standalone
@cd ${WRKSRC}/tests && nosetests${MODPY_BIN_SUFFIX} -a standalone
.include <bsd.port.mk>