Skip to content

Commit

Permalink
libpqxx: unbreak port after recent update
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Aug 20, 2024
1 parent 078f2fd commit b304ec9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions databases/libpqxx/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ if {!$any_variant_set} {
set server postgresql16
}

depends_build port:pkgconfig
depends_build path:bin/pkg-config:pkgconfig

if {${os.platform} eq "darwin" && ${os.major} < 20} {
depends_build-append port:python311

post-patch {
reinplace -W ${worksrcpath} "s| /usr/bin/env python3|${prefix}/bin/python3.11|" \
tools/splitconfig tools/template2mak.py tools/test_all.py tools/m4esc.py
fs-traverse f ${worksrcpath} {
if {[string match *.py ${f}]} {
reinplace -q "s| /usr/bin/env python3|${prefix}/bin/python3.11|" ${f}
}
}
}
}

Expand Down

0 comments on commit b304ec9

Please sign in to comment.