Skip to content

Commit

Permalink
gramps: add +python37 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
dbevans committed Oct 12, 2018
1 parent 6919c55 commit 8d765e8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions genealogy/gramps/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,31 @@ 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 \
port:py35-Pillow \
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 \
port:py36-Pillow \
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
}

Expand Down

0 comments on commit 8d765e8

Please sign in to comment.