mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-02 22:24:26 +00:00
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:
parent
50957ec78e
commit
92ca22a5e1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue