<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7cf032a37bff6002855078dc7966d4776165eb03">https://github.com/macports/macports-ports/commit/7cf032a37bff6002855078dc7966d4776165eb03</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7cf032a37bff6002855078dc7966d4776165eb03
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Sep 16 12:52:46 2023 +1000

<span style='display:block; white-space:pre;color:#404040;'>    py-pip: use more readable alternatives to lsearch
</span>---
 python/py-pip/Portfile | 66 ++++++++++++++++++++++++--------------------------
 1 file changed, 31 insertions(+), 35 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pip/Portfile b/python/py-pip/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c9c962bb5d0..c404a67f4ae 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-pip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,46 +41,42 @@ if {${name} ne ${subport}} {
</span>     depends_lib-append  port:py${python.version}-setuptools
     depends_run         port:pip_select
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    if {[lsearch {26} ${python.version}] != -1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        version             9.0.3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        revision            0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        distname            ${python.rootname}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        checksums           rmd160  9cf0429a7a7e9897339ffc5a141e9b2e1da8086e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            sha256  7bf48f9a693be1d58f49f7af7e0ae9fe29fd671cde8a55e6edca3581c4ef5796 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            size    1343076
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    if {[lsearch {33} ${python.version}] != -1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        version             10.0.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        revision            0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        distname            ${python.rootname}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        checksums           rmd160  008e4a069e4969ee08ad383eb1d0070eeb63b405 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            sha256  f2bd08e0cd1b06e10218feaf6fef299f473ba706582eb3bd9d52203fdbd7ee68 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            size    1246072
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    if {[lsearch {27 35} ${python.version}] != -1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        version             20.3.3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        revision            0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        distname            ${python.rootname}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        checksums           rmd160  44caf2ab9618ad0b91422748af760e6aa94b8608 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            sha256  79c1ac8a9dccbec8752761cb5a2df833224263ca661477a2a9ed03ddf4e0e3ba \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            size    1529320
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    if {[lsearch {36} ${python.version}] != -1} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        version             21.3.1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        revision            0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        distname            ${python.rootname}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        checksums           rmd160  6fbc06856640ede9373cc0b44b8e18a6887c6501 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            sha256  fd11ba3d0fdb4c07fbc5ecbba0b1b719809420f25038f8ee3cd913d3faa3033a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                            size    1731517
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    switch ${python.version} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        36 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            version             21.3.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            checksums           rmd160  6fbc06856640ede9373cc0b44b8e18a6887c6501 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                sha256  fd11ba3d0fdb4c07fbc5ecbba0b1b719809420f25038f8ee3cd913d3faa3033a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                size    1731517
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        27 -
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        35 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            version             20.3.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            checksums           rmd160  44caf2ab9618ad0b91422748af760e6aa94b8608 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                sha256  79c1ac8a9dccbec8752761cb5a2df833224263ca661477a2a9ed03ddf4e0e3ba \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                size    1529320
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        33 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            version             10.0.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            checksums           rmd160  008e4a069e4969ee08ad383eb1d0070eeb63b405 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                sha256  f2bd08e0cd1b06e10218feaf6fef299f473ba706582eb3bd9d52203fdbd7ee68 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                size    1246072
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        26 {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            version             9.0.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            checksums           rmd160  9cf0429a7a7e9897339ffc5a141e9b2e1da8086e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                sha256  7bf48f9a693be1d58f49f7af7e0ae9fe29fd671cde8a55e6edca3581c4ef5796 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                                size    1343076
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span>     }
 
     post-destroot {
         xinstall -m 644 {*}[glob -types f ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${subport}
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        if {[lsearch {26 33} ${python.version}] != -1} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {${python.version} in {26 33}} {
</span>             xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}/reference
             xinstall -m 644 {*}[glob -types f ${worksrcpath}/docs/reference/*] ${destroot}${prefix}/share/doc/${subport}/reference
         }
</pre><pre style='margin:0'>

</pre>