Skip to content

Commit

Permalink
windowmaker: Use a single reinplace instead of three
Browse files Browse the repository at this point in the history
Also expand the list instead of using a foreach loop and suppress
warnings when reinplace didn't change anything.
  • Loading branch information
ryandesign committed Aug 7, 2024
1 parent 0c36982 commit 5194e08
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x11/windowmaker/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ post-patch {
set fl [glob -directory ${worksrcpath} WindowMaker/*menu*]
lappend fl ${worksrcpath}/WindowMaker/Defaults/WindowMaker.in \
${worksrcpath}/WPrefs.app/Menu.c ${worksrcpath}/WPrefs.app/Paths.c
foreach i $fl {
reinplace "s|/usr/share|${prefix}/share|g" $i
reinplace "s|/usr/local/share|${prefix}/share|g" $i
reinplace "s|/opt/kde2/share|${prefix}/share|g" $i
}
reinplace -E -q "s,(/usr|/usr/local|/opt/kde2)/share,${prefix}/share,g" {*}${fl}
}

configure.env-append \
Expand Down

0 comments on commit 5194e08

Please sign in to comment.