Skip to content

Commit

Permalink
grass: fix app bundle start script
Browse files Browse the repository at this point in the history
The 'grass' executable is with version 8+ version-less.
  • Loading branch information
nilason committed Aug 4, 2023
1 parent 0e0391c commit f6c928b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gis/grass/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ github.setup OSGeo grass 8.3.0
name grass
epoch 1
set main_version [join [lrange [split ${version} "."] 0 1] ""]
revision 1
revision 2
set realVersion ${version}
distname grass-${realVersion}
maintainers {yahoo.com:n_larsson @nilason} openmaintainer
Expand Down Expand Up @@ -201,7 +201,7 @@ variant gui description {Build with wxPython GUI and application bundle} {
set script [open "${worksrcpath}/${app_name}/Contents/MacOS/GRASS" w 0755]
puts ${script} "#!/usr/bin/osascript"
puts ${script} ""
puts ${script} "tell application \"Terminal\" to do script \"${prefix}/bin/grass${main_version} --gui; exit\""
puts ${script} "tell application \"Terminal\" to do script \"${prefix}/bin/grass --gui; exit\""
close ${script}

copy ${worksrcpath}/macosx/app/AppIcon.icns \
Expand Down

0 comments on commit f6c928b

Please sign in to comment.