<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/c8449256948ccb27b8ba18235a44a4699664e5d8">https://github.com/macports/macports-ports/commit/c8449256948ccb27b8ba18235a44a4699664e5d8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c8449256948ccb27b8ba18235a44a4699664e5d8
</span>Author: Marcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>
AuthorDate: Wed May 23 02:19:55 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> octave PG: make octave.set_module unnecessary
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> octave.set_module is kept for compatibility, but
</span><span style='display:block; white-space:pre;color:#404040;'> octave.set_module mod ver
</span><span style='display:block; white-space:pre;color:#404040;'> may be replaced
</span><span style='display:block; white-space:pre;color:#404040;'> octave.module mod
</span><span style='display:block; white-space:pre;color:#404040;'> version ver
</span>---
_resources/port1.0/group/octave-1.0.tcl | 65 ++++++++++++++++++++-------------
1 file changed, 39 insertions(+), 26 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/octave-1.0.tcl b/_resources/port1.0/group/octave-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index ae9b6c7..bbc0508 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/octave-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/octave-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,10 +6,9 @@
</span> # Usage:
#
# PortGroup octave 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# octave.setup module version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# octave.module module
</span> #
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# where module is the name of the module (e.g. communications) and
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# version is its version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# where module is the name of the module (e.g. communications)
</span>
options octave.module
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -41,34 +40,48 @@ proc universal_setup {args} {
</span>
proc octave.setup {module version} {
global octave.module
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> octave.module ${module}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- name octave-${module}
</span> version ${version}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- categories math science
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- homepage http://octave.sourceforge.net/${octave.module}/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- master_sites sourceforge:octave
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- distname ${octave.module}-${version}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append path:bin/octave:octave
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- worksrcdir ${octave.module}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # do not build in parallel; many can't, and these are small builds
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # anyway, so no major need for this.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- use_parallel_build no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # configure_make.m calls "make --jobs n ..."
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # use environmental variable to set the number of jobs to 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # parallel build is a problem for octave-optiminterp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.env-append OMP_NUM_THREADS=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+option_proc octave.module octave.set_module
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc octave.set_module {opt action args} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global octave.module
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {$action eq "set"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ name octave-${octave.module}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ homepage https://octave.sourceforge.io/${octave.module}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.type regex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.url https://octave.sourceforge.io/${octave.module}/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- livecheck.regex "Package Version:</td><td>(\\d+(\\.\\d+)*)</td>"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default categories {math science}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default master_sites {sourceforge:octave}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default distname {${octave.module}-${version}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default worksrcdir {${octave.module}}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# do not build in parallel; many can't, and these are small builds
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# anyway, so no major need for this.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default use_parallel_build {no}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default livecheck.type {regex}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default livecheck.url {https://octave.sourceforge.io/${octave.module}/}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default livecheck.regex {"Package Version:</td><td>(\\\\d+(.\\\\d+)*)</td>"}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append path:bin/octave:octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# do not force all Portfiles to switch from depends_lib to depends_lib-append
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc octave.add_dependencies {} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-delete path:bin/octave:octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append path:bin/octave:octave
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+port::register_callback octave.add_dependencies
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# configure_make.m calls "make --jobs n ..."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# use environmental variable to set the number of jobs to 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# parallel build is a problem for octave-optiminterp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.env-append OMP_NUM_THREADS=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# do not force all Portfiles to switch from configure.env to configure.env-append
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+proc octave.add_env {} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-delete OMP_NUM_THREADS=1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.env-append OMP_NUM_THREADS=1
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+port::register_callback octave.add_env
</span>
post-extract {
# rename the effective worksrcdir to always be ${octave.module}
</pre><pre style='margin:0'>
</pre>