pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
mitmproxy: Add big kludge to use urwid_mitmproxy and adjust depends
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Mon Jan 1 23:31:15 2024 +0100
Changeset: 9ad5f19e54570d962c9d8f274a90ed924590a667
Modified Files:
mitmproxy/Makefile
Log Message:
mitmproxy: Add big kludge to use urwid_mitmproxy and adjust depends
Copypasto from py-urwid-mitmproxy in order to always refer to urwid_mitmproxy
instead of mitmproxy.
Also adjust dependencies, we no longer use/need versioned
dependencies.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9ad5f19e54570d962c9d8f274a90ed924590a667
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
mitmproxy/Makefile | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diffs:
diff --git a/mitmproxy/Makefile b/mitmproxy/Makefile
index a371003cd1..f5a5d50bfa 100644
--- a/mitmproxy/Makefile
+++ b/mitmproxy/Makefile
@@ -48,6 +48,14 @@ SUBST_MESSAGE.pyprojecttomlversions= Avoid too strict version requirements
SUBST_FILES.pyprojecttomlversions= pyproject.toml
SUBST_SED.pyprojecttomlversions+= -E -e '/[>=]=/ s/, *<[0-9.]+(",|;)/\1/g'
+# XXX: This is very dirty and fragile!
+SUBST_CLASSES+= urwid_mitmproxy
+SUBST_STAGE.urwid_mitmproxy= pre-configure
+SUBST_MESSAGE.urwid_mitmproxy= Avoid conflicts with urwid
+SUBST_FILES.urwid_mitmproxy+= mitmproxy/tools/console/*.py
+SUBST_FILES.urwid_mitmproxy+= mitmproxy/tools/console/*/*.py
+SUBST_SED.urwid_mitmproxy+= -e 's/urwid/urwid_mitmproxy/g'
+
REPLACE_SH+= mitmproxy/contrib/kaitaistruct/make.sh
USE_LANGUAGES= # none
@@ -55,9 +63,6 @@ USE_LANGUAGES= # none
# Only for Python >=3.10
PYTHON_VERSIONS_INCOMPATIBLE= 27 38 39
-.include "../../lang/python/batteries-included.mk"
.include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
-PYTHON_VERSIONED_DEPENDENCIES+= OpenSSL
-.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index