<pre style='margin:0'>
Takeshi Enomoto (tenomoto) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e7f8a46920795a4aff4f359a3389fed1d15005c9">https://github.com/macports/macports-ports/commit/e7f8a46920795a4aff4f359a3389fed1d15005c9</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e7f8a46920795a4aff4f359a3389fed1d15005c9
</span>Author: Takeshi Enomoto <enomoto.takeshi.3n@kyoto-u.ac.jp>
AuthorDate: Fri Jul 24 09:46:46 2020 +0900
<span style='display:block; white-space:pre;color:#404040;'> gmt5, gmt6: install in ${prefix}/lib and create a symlink ${subport} to the gmt binary.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * remove broken libgmt.${version}.dylib and libpostscriptlight.${version}.dylib from ${prefix}/bin
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/60837
</span>---
science/gmt5/Portfile | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/gmt5/Portfile b/science/gmt5/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ed80cb91e6e..bc4505e4531 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/gmt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/gmt5/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,17 +8,15 @@ name gmt5
</span> github.setup GenericMappingTools gmt 5.4.5
github.tarball_from releases
distname ${github.project}-${github.version}-src
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 5
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-conflicts gmt6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 6
</span> subport gmt6 {
github.setup GenericMappingTools gmt 6.1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>- revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 1
</span> epoch 1
<span style='display:block; white-space:pre;background:#ffe0e0;'>- conflicts gmt5
</span> }
categories science
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {takeshi @tenomoto}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {takeshi @tenomoto} openmaintainer
</span> license GPL-3
description The Generic Mapping Tools
long_description GMT is an open source collection of ~120 tools \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,6 +60,7 @@ if {![variant_isset lgpl]} {
</span> }
cmake.out_of_source yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.install_prefix ${prefix}/lib/${subport}
</span>
# Mimic CMake's default FLAGS:
if {[variant_isset debug]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,7 +89,16 @@ configure.args-append -DDCW_ROOT=${prefix}/share/gmt/dcw \
</span> -DLICENSE_RESTRICTED=GPL
if {${subport} eq "gmt6"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -DGS_ROOT=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DGS_ROOT=${prefix}
</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:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${subport} eq "gmt6"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach l {gmt postscriptlight} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete ${destroot}${prefix}/lib/${subport}/bin/lib${l}.${version}.dylib
</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:#e0ffe0;'>+ ln -s ${prefix}/lib/${subport}/bin/gmt ${destroot}${prefix}/bin/${subport}
</span> }
variant fftw3 description {Optional support for FFTW-3 library} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -139,6 +147,11 @@ variant nonfree conflicts lgpl description {enable nonfree code, libraries and b
</span> configure.args-append -DLICENSE_RESTRICTED=no
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${subport} is installed in ${prefix}/lib/${subport}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${prefix}/bin/${subport} is a symblic link to ${prefix}/lib/${subport}/bin/gmt.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # livecheck for the proper branch (5 or 6) and skipping any release candidates
set firstchar [string range ${version} 0 0]
livecheck.type regex
</pre><pre style='margin:0'>
</pre>