diff --git a/gis/qgis3/Portfile b/gis/qgis3/Portfile index a391787c1f2bb..226b8323839d8 100644 --- a/gis/qgis3/Portfile +++ b/gis/qgis3/Portfile @@ -32,6 +32,8 @@ if {${subport} eq ${name}} { checksums rmd160 4f4abd2b50ece1e094f27d6fd4c4cb5c38fb944d \ sha256 4c2fd5d44b95d861ffbb8ded8724ad38b49d601ccd27fa38457f6127cfc6c87b \ size 199052249 + + set grass_utils_file grass_utils.py } else { # LTR version github.setup qgis QGIS 3_34_4 final- @@ -42,6 +44,8 @@ if {${subport} eq ${name}} { checksums rmd160 0730bdf3e121a185224f4602124f5a359ea6c8ac \ sha256 890526e82dca56ad39574b414dfb516438bea739076d49f37cb0b3fa6f1abd5f \ size 196392186 + + set grass_utils_file Grass7Utils.py } version [string map {_ .} ${github.version}] @@ -193,7 +197,7 @@ variant grass7 conflicts grass description "Build GRASS 7 plugin" { } post-patch { reinplace "s|command = None|command = '${prefix}/bin/grass${grass_version}'|g" \ - ${worksrcpath}/python/plugins/grassprovider/grass_utils.py + ${worksrcpath}/python/plugins/grassprovider/${grass_utils_file} } } @@ -207,7 +211,7 @@ variant grass conflicts grass7 description "Build GRASS (latest) plugin" { } post-patch { reinplace "s|command = None|command = '${prefix}/bin/grass'|g" \ - ${worksrcpath}/python/plugins/grassprovider/grass_utils.py + ${worksrcpath}/python/plugins/grassprovider/${grass_utils_file} } }