Skip to content

Commit

Permalink
qgis3-ltr: fix Grass7Utils.py patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nilason committed Mar 4, 2024
1 parent 0dc0d30 commit 2830bc9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gis/qgis3/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand All @@ -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}]
Expand Down Expand Up @@ -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}
}
}

Expand All @@ -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}
}
}

Expand Down

0 comments on commit 2830bc9

Please sign in to comment.