diff --git a/genealogy/gramps/Portfile b/genealogy/gramps/Portfile index 90223f31ba15d..08d0e37b9d813 100644 --- a/genealogy/gramps/Portfile +++ b/genealogy/gramps/Portfile @@ -48,7 +48,7 @@ patchfiles patch-gramps-gen-utils-resourcepath.py.diff # versions 4.2.0+ only support python 3 -variant python35 conflicts python36 description {Use Python 3.5} { +variant python35 conflicts python36 python37 description {Use Python 3.5} { python.default_version 35 depends_lib-append port:py35-gobject3 \ port:py35-pyicu \ @@ -56,7 +56,7 @@ variant python35 conflicts python36 description {Use Python 3.5} { port:py35-bsddb3 } -variant python36 conflicts python35 description {Use Python 3.6} { +variant python36 conflicts python35 python37 description {Use Python 3.6} { python.default_version 36 depends_lib-append port:py36-gobject3 \ port:py36-pyicu \ @@ -64,7 +64,15 @@ variant python36 conflicts python35 description {Use Python 3.6} { port:py36-bsddb3 } -if {![variant_isset python35]} { +variant python37 conflicts python35 python36 description {Use Python 3.7} { + python.default_version 37 + depends_lib-append port:py37-gobject3 \ + port:py37-pyicu \ + port:py37-Pillow \ + port:py37-bsddb3 +} + +if {![variant_isset python35] && ![variant_isset python37]} { default_variants +python36 }