Ports: Add post_configure function

There's pre_configure to do things required by the configure script,
let's also add post_configure for things not covered by the configure
script.
The specific use case is overwriting a file created by python3's
configure script.
This commit is contained in:
Linus Groh 2021-02-01 19:40:19 +01:00 committed by Andreas Kling
parent 50957ec78e
commit 92ca22a5e1

View file

@ -154,6 +154,9 @@ func_defined configure || configure() {
chmod +x "${workdir}"/"$configscript"
run ./"$configscript" --host=i686-pc-serenity $configopts
}
func_defined post_configure || post_configure() {
:
}
func_defined build || build() {
run make $makeopts
}
@ -254,6 +257,7 @@ do_configure() {
echo "Configuring $port!"
pre_configure
configure
post_configure
else
echo "This port does not use a configure script. Skipping configure step."
fi