mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
551be3c723
Ports using USE_PYTHON=distutils are now flavored. They will automatically get flavors (py27, py34, py35, py36) depending on what versions they support. There is also a USE_PYTHON=flavors for ports that do not use distutils but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if using distutils but flavors are not wanted. A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been added to cope with Python ports that did not have the Python PKGNAMEPREFIX but are flavored. USES=python now also exports a PY_FLAVOR variable that contains the current python flavor. It can be used in dependency lines when the port itself is not python flavored. For example, deskutils/calibre. By default, all the flavors are generated. To only generate flavors for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf. In all the ports with Python dependencies, the *_DEPENDS entries MUST end with the flavor so that the framework knows which to build/use. This is done by appending '@${PY_FLAVOR}' after the origin (or @${FLAVOR} if in a Python module with Python flavors, as the content will be the same). For example: RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} PR: 223071 Reviewed by: portmgr, python Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D12464
48 lines
2.1 KiB
Makefile
48 lines
2.1 KiB
Makefile
# Created by: Hung-Yi Chen <gaod@hychen.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mitmproxy
|
|
PORTVERSION= 2.0.1
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= www python
|
|
|
|
MAINTAINER= gaod@hychen.org
|
|
COMMENT= SSL-capable man-in-the-middle proxy
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>=6.2:devel/py-click@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}blinker>=1.4:devel/py-blinker@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}construct28>=2.8:devel/py-construct28@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cryptography>=1.3:security/py-cryptography@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}cssutils>=1.0.1:www/py-cssutils@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}html2text>=2016.1.8:textproc/py-html2text@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}passlib>=1.6.5:security/py-passlib@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyasn1>=0.1.9:devel/py-pyasn1@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}openssl>=16.0:security/py-openssl@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyparsing>=2.1.3:devel/py-pyparsing@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}requests>=2.9.1:www/py-requests@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.13.2:devel/py-ruamel.yaml@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}tornado>=4.3:www/py-tornado@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}urwid>=1.3.1:devel/py-urwid@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}watchdog>=0.8.3:devel/py-watchdog@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}brotli>=0.5.1:archivers/py-brotli@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}sortedcontainers>=1.5.4:devel/py-sortedcontainers@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyperclip>=1.5.22:devel/py-pyperclip@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}hyperframe>=5.0.0:www/py-hyperframe@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}kaitaistruct>=0.6:devel/py-kaitaistruct@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}jsbeautifier>=1.6.3:devel/py-jsbeautifier@${FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}h2>=3.0.0:www/py-h2@${FLAVOR}
|
|
|
|
USES= python:3.5+
|
|
USE_PYTHON= distutils autoplist optsuffix
|
|
NO_ARCH= yes
|
|
USE_GITHUB= yes
|
|
|
|
post-extract:
|
|
@${REINPLACE_CMD} -e 's/brotlipy/brotli/' -e 's/, <.*",/",/' ${WRKSRC}/setup.py
|
|
|
|
.include <bsd.port.mk>
|