if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}. This commit doesn't change any versions currently used; it may be that some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those should be cleaned up in the course of updating ports where possible. Python module ports providing py3-* packages should still use FLAVOR=python3 so that we don't have a mixture of dependencies some using ${MODPY_FLAVOR} and others not.
42 lines
997 B
Makefile
42 lines
997 B
Makefile
# $OpenBSD: Makefile,v 1.22 2021/02/23 19:39:47 sthen Exp $
|
|
|
|
COMMENT = command-line HTTP client
|
|
|
|
MODPY_EGG_VERSION = 2.4.0
|
|
GH_TAGNAME = ${MODPY_EGG_VERSION}
|
|
GH_ACCOUNT = jakubroztocil
|
|
GH_PROJECT = httpie
|
|
|
|
CATEGORIES = www net
|
|
|
|
HOMEPAGE = https://httpie.org/
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
# requires network access
|
|
MODPY_PYTEST = Yes
|
|
|
|
RUN_DEPENDS = net/py-socks${MODPY_FLAVOR} \
|
|
www/py-requests${MODPY_FLAVOR} \
|
|
www/py-requests-toolbelt${MODPY_FLAVOR} \
|
|
textproc/py-pygments${MODPY_FLAVOR}
|
|
TEST_DEPENDS = devel/py-test-httpbin${MODPY_FLAVOR} \
|
|
devel/py-mock${MODPY_FLAVOR}
|
|
TEST_ENV = PY_IGNORE_IMPORTMISMATCH=1
|
|
PORTHOME = ${WRKSRC}
|
|
|
|
pre-test:
|
|
# check for docutils presence then calls rst2pseudoxml.py
|
|
# our docutils installs rst2pseudoxml
|
|
rm -f ${WRKSRC}/tests/test_docs.py
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/httpie
|
|
${INSTALL_DATA} ${WRKSRC}/README.rst ${PREFIX}/share/doc/httpie/
|
|
|
|
.include <bsd.port.mk>
|