diff --git a/lang/llvm-4.0/Portfile b/lang/llvm-4.0/Portfile
index 6354d48..6c5b7f7 100644
a
|
b
|
set clang_executable_version 4.0 |
13 | 13 | set lldb_executable_version 4.0.1 |
14 | 14 | name llvm-${llvm_version} |
15 | 15 | revision 2 |
16 | | subport clang-${llvm_version} { revision 4 } |
| 16 | subport clang-${llvm_version} { revision 5 } |
17 | 17 | subport lldb-${llvm_version} {} |
18 | 18 | set suffix mp-${llvm_version} |
19 | 19 | set sub_prefix ${prefix}/libexec/llvm-${llvm_version} |
… |
… |
if {${subport} eq "clang-${llvm_version}"} { |
443 | 443 | |
444 | 444 | delete ${destroot}${sub_prefix}/bin/clang |
445 | 445 | file rename ${destroot}${sub_prefix}/bin/clang-${clang_executable_version} ${destroot}${sub_prefix}/bin/clang |
| 446 | reinplace "s|/bin/clang-${clang_executable_version}|/bin/clang|g" \ |
| 447 | "${destroot}${sub_prefix}/lib/cmake/clang/ClangTargets-release.cmake" |
446 | 448 | } |
447 | 449 | } |
448 | 450 | |
diff --git a/lang/llvm-5.0/Portfile b/lang/llvm-5.0/Portfile
index 6096457..4fe6324 100644
a
|
b
|
set llvm_version_no_dot 50 |
12 | 12 | set clang_executable_version 5.0 |
13 | 13 | set lldb_executable_version 5.0.1 |
14 | 14 | name llvm-${llvm_version} |
15 | | subport clang-${llvm_version} {} |
| 15 | subport clang-${llvm_version} { revision 1 } |
16 | 16 | subport lldb-${llvm_version} {} |
17 | 17 | set suffix mp-${llvm_version} |
18 | 18 | set sub_prefix ${prefix}/libexec/llvm-${llvm_version} |
… |
… |
if {${subport} eq "clang-${llvm_version}"} { |
453 | 453 | |
454 | 454 | delete ${destroot}${sub_prefix}/bin/clang |
455 | 455 | file rename ${destroot}${sub_prefix}/bin/clang-${clang_executable_version} ${destroot}${sub_prefix}/bin/clang |
| 456 | reinplace "s|/bin/clang-${clang_executable_version}|/bin/clang|g" \ |
| 457 | "${destroot}${sub_prefix}/lib/cmake/clang/ClangTargets-release.cmake" |
456 | 458 | } |
457 | 459 | } |
458 | 460 | |
diff --git a/lang/llvm-devel/Portfile b/lang/llvm-devel/Portfile
index 5207613..0832ca9 100644
a
|
b
|
set llvm_version_no_dot devel |
12 | 12 | set clang_executable_version 6.0 |
13 | 13 | set lldb_executable_version 6.0.0 |
14 | 14 | name llvm-${llvm_version} |
15 | | subport clang-${llvm_version} {} |
| 15 | subport clang-${llvm_version} { revision 1 } |
16 | 16 | subport lldb-${llvm_version} {} |
17 | 17 | set suffix mp-${llvm_version} |
18 | 18 | set sub_prefix ${prefix}/libexec/llvm-${llvm_version} |
… |
… |
if {${subport} eq "clang-${llvm_version}"} { |
430 | 430 | |
431 | 431 | delete ${destroot}${sub_prefix}/bin/clang |
432 | 432 | file rename ${destroot}${sub_prefix}/bin/clang-${clang_executable_version} ${destroot}${sub_prefix}/bin/clang |
| 433 | reinplace "s|/bin/clang-${clang_executable_version}|/bin/clang|g" \ |
| 434 | "${destroot}${sub_prefix}/lib/cmake/clang/ClangTargets-release.cmake" |
433 | 435 | } |
434 | 436 | } |
435 | 437 | |