gramps: add py310; drop py37

See: https://trac.macports.org/ticket/62216
This commit is contained in:
Christopher Nielsen
2022-09-26 15:14:27 -04:00
parent 820e0ef86b
commit 2a8a83e59e
+20 -12
View File
@@ -6,7 +6,7 @@ PortGroup python 1.0
PortGroup app 1.1
github.setup gramps-project gramps 5.1.5 v
revision 5
revision 6
github.tarball_from archive
supported_archs noarch
@@ -29,12 +29,12 @@ depends_build-append \
port:intltool
depends_lib-append \
path:bin/dot:graphviz \
port:desktop-file-utils \
port:geocode-glib \
port:gexiv2 \
port:ghostscript \
port:goocanvas2 \
path:bin/dot:graphviz \
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
port:gtkspell3 \
port:osm-gps-map \
@@ -50,29 +50,36 @@ patchfiles-append \
proc py_setup {py_ver} {
python.default_version \
${py_ver}
depends_lib-append \
port:py${py_ver}-bsddb3 \
port:py${py_ver}-gobject3 \
port:py${py_ver}-Pillow \
port:py${py_ver}-pyicu
depends_test-append \
port:py${py_ver}-jsonschema \
port:py${py_ver}-lxml
test.run yes
}
variant python37 conflicts python38 python39 description {Use Python 3.7} {
py_setup 37
}
variant python38 conflicts python37 python39 description {Use Python 3.8} {
variant python38 conflicts python39 python310 description {Use Python 3.8} {
py_setup 38
}
variant python39 conflicts python37 python38 description {Use Python 3.9} {
variant python39 conflicts python38 python310 description {Use Python 3.9} {
py_setup 39
}
if {![variant_isset python37] && \
![variant_isset python38] && \
![variant_isset python39]} {
default_variants +python39
variant python310 conflicts python38 python39 description {Use Python 3.10} {
py_setup 310
}
if {![variant_isset python38] && \
![variant_isset python39] && \
![variant_isset python310]} {
default_variants +python310
}
# Dummy variants, to ensure user's choice cascades to dependencies
@@ -92,6 +99,7 @@ if {![variant_isset quartz] && ![variant_isset x11]} {
post-destroot {
reinplace "s|${destroot}${python.prefix}|${prefix}|" \
${destroot}${python.pkgd}/gramps/gen/utils/resource-path
delete ${destroot}${prefix}/share
move ${destroot}${python.prefix}/share ${destroot}${prefix}
}