<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a460705b3e04a8b08ae2c7857a3ef1c5a13daf00">https://github.com/macports/macports-ports/commit/a460705b3e04a8b08ae2c7857a3ef1c5a13daf00</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a460705b3e04a8b08ae2c7857a3ef1c5a13daf00
</span>Author: Marcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
AuthorDate: Wed May 2 14:26:11 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> muniversal PG: respect custom build phases
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Respect the configure {...}, build {...}, and destroot {...}
</span><span style='display:block; white-space:pre;color:#404040;'> set in the Portfile
</span>---
_resources/port1.0/group/muniversal-1.0.tcl | 51 +++++++++++++++++++++++++++--
1 file changed, 48 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/muniversal-1.0.tcl b/_resources/port1.0/group/muniversal-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 6114f76..3949c95b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/muniversal-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/muniversal-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -196,6 +196,11 @@ variant universal {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if Portfile has configure {...}, save the procedure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs userproc-org.macports.configure-configure-0] != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rename userproc-org.macports.configure-configure-0 userproc-org.macports.configure-configure-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure {
global muniversal.current_arch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -334,7 +339,16 @@ variant universal {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- portconfigure::configure_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs userproc-org.macports.configure-configure-1] != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set worksrcpath_save ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option worksrcpath ${worksrcpath}-${arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ userproc-org.macports.configure-configure-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option worksrcpath ${worksrcpath_save}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ portconfigure::configure_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# Undo changes to the configure related variables
option autoconf.dir ${autoconf_dir_save}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -383,6 +397,11 @@ variant universal {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if Portfile has build {...}, save the procedure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs userproc-org.macports.build-build-0] != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rename userproc-org.macports.build-build-0 userproc-org.macports.build-build-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> build {
global muniversal.current_arch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -414,7 +433,16 @@ variant universal {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- portbuild::build_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs userproc-org.macports.build-build-1] != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set worksrcpath_save ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option worksrcpath ${worksrcpath}-${arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ userproc-org.macports.build-build-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option worksrcpath ${worksrcpath_save}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ portbuild::build_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
option build.dir ${build_dir_save}
if { [info exists merger_build_args(${arch})] } {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -428,6 +456,11 @@ variant universal {
</span> }
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # if Portfile has destroot {...}, save the procedure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs userproc-org.macports.destroot-destroot-0] != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rename userproc-org.macports.destroot-destroot-0 userproc-org.macports.destroot-destroot-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
global muniversal.current_arch
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -464,7 +497,19 @@ variant universal {
</span> }
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- portdestroot::destroot_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[info procs userproc-org.macports.destroot-destroot-1] != ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set worksrcpath_save ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option worksrcpath ${worksrcpath}-${arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set destroot_save ${destroot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option destroot ${workpath}/destroot-${arch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ userproc-org.macports.destroot-destroot-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option destroot ${destroot_save}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ option worksrcpath ${worksrcpath_save}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ portdestroot::destroot_main
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
option destroot.dir ${destroot_dir_save}
if { [info exists merger_destroot_args(${arch})] } {
</pre><pre style='margin:0'>
</pre>