[148053] trunk/dports/python/py-graph-tool/Portfile
mmoll at macports.org
mmoll at macports.org
Mon Apr 25 11:46:57 PDT 2016
Revision: 148053
https://trac.macports.org/changeset/148053
Author: mmoll at macports.org
Date: 2016-04-25 11:46:57 -0700 (Mon, 25 Apr 2016)
Log Message:
-----------
py-graph-tool: define certain variants only on darwin13 and newer. closes #51230.
Modified Paths:
--------------
trunk/dports/python/py-graph-tool/Portfile
Modified: trunk/dports/python/py-graph-tool/Portfile
===================================================================
--- trunk/dports/python/py-graph-tool/Portfile 2016-04-25 18:38:49 UTC (rev 148052)
+++ trunk/dports/python/py-graph-tool/Portfile 2016-04-25 18:46:57 UTC (rev 148053)
@@ -42,6 +42,25 @@
compiler.blacklist *gcc* {clang <= 700.1.81} {macports-clang-3.[0-6]}
compiler.fallback-append macports-clang-3.7
configure.cxxflags-append -std=c++14 -stdlib=libc++
+
+ variant openmp description "Enable OpenMP" {
+ configure.args-append --enable-openmp
+ }
+ variant clang37 requires openmp conflicts clang38 clang39 description "Use clang-3.7+openmp and enable OpenMP" {
+ require_active_variants clang-3.7 openmp
+ configure.compiler macports-clang-3.7
+ }
+ variant clang38 requires openmp conflicts clang37 clang39 description "Use clang-3.8 and enable OpenMP" {
+ configure.compiler macports-clang-3.8
+ }
+
+ variant clang39 requires openmp conflicts clang37 clang38 description "Use clang-3.9 and enable OpenMP" {
+ configure.compiler macports-clang-3.9
+ }
+ default_variants +openmp
+ if {![variant_isset clang37] && ![variant_isset clang39]} {
+ default_variants-append +clang38
+ }
}
}
@@ -102,25 +121,6 @@
port:librsvg
}
- variant openmp description "Enable OpenMP" {
- configure.args-append --enable-openmp
- }
- variant clang37 requires openmp conflicts clang38 clang39 description "Use clang-3.7+openmp and enable OpenMP" {
- require_active_variants clang-3.7 openmp
- configure.compiler macports-clang-3.7
- }
- variant clang38 requires openmp conflicts clang37 clang39 description "Use clang-3.8 and enable OpenMP" {
- configure.compiler macports-clang-3.8
- }
-
- variant clang39 requires openmp conflicts clang37 clang38 description "Use clang-3.9 and enable OpenMP" {
- configure.compiler macports-clang-3.9
- }
- default_variants +openmp
- if {![variant_isset clang37] && ![variant_isset clang39]} {
- default_variants-append +clang38
- }
-
post-destroot {
file rename ${destroot}${prefix}/share/doc/graph-tool \
${destroot}${prefix}/share/doc/py${python.version}-graph-tool
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160425/efd1c20e/attachment.html>
More information about the macports-changes
mailing list