Skip to content

Commit

Permalink
itstool: add python 3.11 variant and make default
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed Mar 1, 2023
1 parent 70a1ac7 commit 5c61a87
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions textproc/itstool/Portfile
Expand Up @@ -36,43 +36,52 @@ depends_lib port:gettext

patchfiles patch-configure.diff

variant python27 conflicts python38 python39 python310 description {Use Python 2.7} {
variant python27 conflicts python38 python39 python310 python311 description {Use Python 2.7} {
configure.python \
${prefix}/bin/python2.7

depends_lib-append \
port:py27-libxml2
}

variant python38 conflicts python27 python39 python310 description {Use Python 3.8} {
variant python38 conflicts python27 python39 python310 python311 description {Use Python 3.8} {
configure.python \
${prefix}/bin/python3.8

depends_lib-append \
port:py38-libxml2
}

variant python39 conflicts python27 python38 python310 description {Use Python 3.9} {
variant python39 conflicts python27 python38 python310 python311 description {Use Python 3.9} {
configure.python \
${prefix}/bin/python3.9

depends_lib-append \
port:py39-libxml2
}

variant python310 conflicts python27 python38 python39 description {Use Python 3.10} {
variant python310 conflicts python27 python38 python39 python311 description {Use Python 3.10} {
configure.python \
${prefix}/bin/python3.10

depends_lib-append \
port:py310-libxml2
}

variant python311 conflicts python27 python38 python39 python310 description {Use Python 3.11} {
configure.python \
${prefix}/bin/python3.11

depends_lib-append \
port:py311-libxml2
}

if {![variant_isset python27] && \
![variant_isset python38] && \
![variant_isset python39] && \
![variant_isset python310]} {
default_variants +python310
![variant_isset python310] && \
![variant_isset python311]} {
default_variants +python311
}

livecheck.type regex
Expand Down

0 comments on commit 5c61a87

Please sign in to comment.