<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/83f7670be1abb6753f713308ec82864d85245f90">https://github.com/macports/macports-ports/commit/83f7670be1abb6753f713308ec82864d85245f90</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 83f7670be1abb6753f713308ec82864d85245f90
</span>Author: Mojca Miklavec <mojca@macports.org>
AuthorDate: Mon Feb 27 12:42:44 2017 +0100
<span style='display:block; white-space:pre;color:#404040;'> k3dsurf: depend on qt3 rather than qt3-mac
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * use X11-based qt3 rather than qt3-mac to make it work on > 10.6
</span><span style='display:block; white-space:pre;color:#404040;'> * newer checksums
</span><span style='display:block; white-space:pre;color:#404040;'> * add livecheck
</span><span style='display:block; white-space:pre;color:#404040;'> * copy some qmake setup from qmake-1.0.tcl
</span>---
math/k3dsurf/Portfile | 47 +++++++++++++++++++++++++++++++++--------------
1 file changed, 33 insertions(+), 14 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/k3dsurf/Portfile b/math/k3dsurf/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 298c8a5..47fb5fc 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/k3dsurf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/k3dsurf/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name k3dsurf
version 0.6.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories math graphics science
license GPL-2+
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,24 +14,42 @@ long_description K3DSurf is a program to visualize and manipulate multidimens
</span> POV-Ray in the area of parametric surfaces.
platforms darwin
<span style='display:block; white-space:pre;background:#ffe0e0;'>-supported_archs i386 ppc
</span>
homepage http://k3dsurf.sourceforge.net/
master_sites sourceforge
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# checksums md5 a7328ffde8453bb8c9977e46eaa170e6 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# sha1 6e63885cbdd174dc0d9828bf0fc3723461ffb58e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:qt3-mac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system "cd ${worksrcpath} && qmake"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 115d00a6c3b61442d661547708032348866c10cd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7d98781df74d3197b49a5a9ff748de088b8a8038ddaa6e53ee044c4c17440761
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# It doesn't work with Qt 4 due to:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# File generated with too old version of Qt Designer (3.3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# It works with qt3-mac, but only on <= 10.6 and with
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# supported_archs i386 ppc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# We could add dependency on qt3-mac back on request via a variant
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:qt3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cmd ${prefix}/bin/qmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --prefix=${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.pre_args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PREFIX=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "QMAKE_CC=${configure.cc}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "QMAKE_CXX=${configure.cxx}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "QMAKE_OBJC=${configure.objc}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "QMAKE_CFLAGS=\"${configure.cflags} [get_canonical_archflags cc]\"" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "QMAKE_CXXFLAGS=\"${configure.cxxflags} [get_canonical_archflags cxx]\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.universal_args-delete \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --disable-dependency-tracking
</span> build.env QTDIR=${prefix}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy ${worksrcpath}/bin/k3dsurf.app \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/bin/k3dsurf ${destroot}/${prefix}/bin/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # When using qt3-mac:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # xinstall -m 755 -d ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # file copy ${worksrcpath}/bin/k3dsurf.app ${destroot}${applications_dir}
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# not sure if this is the right regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# version 0.6.2.4 contains Makefiles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex "${name}-(\[0-9\.\]+)${extract.suffix}"
</span></pre><pre style='margin:0'>
</pre>