# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup python 1.0 name py-undetected-chromedriver version 3.4.6 revision 0 categories-append python www maintainers nomaintainer license GPL-3 supported_archs noarch platforms {darwin any} description Custom Selenium Chromedriver long_description {*}${description} | Zero-Config | \ Passes ALL bot mitigation systems \ (like Distil / Imperva/ Datadadome / CloudFlare IUAM) homepage https://github.com/ultrafunkamsterdam/undetected-chromedriver checksums rmd160 3b247c010d8df8141dd5aab082b540996c92ab23 \ sha256 871485624f7a2e1c15fde75ab7b8ceb30ebc06dad90cd66173ea8036c046367f \ size 61342 python.versions 38 39 310 if {${name} ne ${subport}} { depends_build-append \ port:py${python.version}-requests depends_lib-append \ port:py${python.version}-selenium \ port:py${python.version}-websockets # diff -Naurd ./uc-orig ./uc-new | sed -E -e 's/\.\/uc-(orig|new)\//.\//g' | sed -E -e 's|/opt/local|@PREFIX@|g' > ~/Downloads/patch-undetected_chromedriver.diff patchfiles-append \ patch-undetected_chromedriver.diff post-patch { fs-traverse f ${worksrcpath}/undetected_chromedriver { if {[file isfile ${f}] && [string match "*.py" ${f}]} { reinplace -E -q \ "1s|^(#!\[\[:space:]]*)/usr/bin/env\[\[:space:]]+python3|\\1${python.bin}|" \ ${f} } } } pre-test { copy ${filespath}/uc-test.py ${workpath} reinplace -E -q \ "1s|^(#!\[\[:space:]]*)/usr/bin/env\[\[:space:]]+python3|\\1${python.bin}|" \ ${workpath}/uc-test.py reinplace -q "s|@PREFIX@|${prefix}|g" \ ${workpath}/uc-test.py reinplace -q "s|@NAME@|chromedriver|g" \ ${workpath}/uc-test.py } test.run yes python.test_framework test.cmd ${python.bin} test.target ${workpath}/uc-test.py } notes-append \ "This package is intended to be used with the port chromedriver +undetected and the Python code: import undetected_chromedriver as uc driver = uc.Chrome(driver_executable_path='${prefix}/bin/chromedriver-undetected') "