Permalink
| @@ -0,0 +1,47 @@ | ||
| # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim: fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | ||
|
|
||
| PortSystem 1.0 | ||
| PortGroup cmake 1.1 | ||
| PortGroup github 1.0 | ||
| PortGroup cxx11 1.1 | ||
| PortGroup compiler_blacklist_versions 1.0 | ||
|
|
||
| name ccls | ||
| github.setup MaskRay ccls 0.20190314 | ||
| revision 0 | ||
| categories devel | ||
| platforms darwin | ||
| license Apache-2 | ||
|
|
||
| maintainers {egorenar @egorenar} openmaintainer | ||
|
|
||
| description C/C++/ObjC language server supporting cross references,\ | ||
| hierarchies, completion and semantic highlighting | ||
| long_description ${description} | ||
|
|
||
| foreach clang_v {7.0 8.0} { | ||
| subport ccls-clang-${clang_v} { | ||
| compiler.whitelist macports-clang-${clang_v} | ||
| configure.args-append -DCMAKE_PREFIX_PATH=${prefix}/libexec/llvm-${clang_v} | ||
| } | ||
| } | ||
|
|
||
| if {${subport} eq ${name}} { | ||
| description "${description} (meta port)" | ||
|
|
||
| distfiles | ||
| use_configure no | ||
| build {} | ||
| destroot { | ||
| xinstall -d -m 755 "${destroot}${prefix}/share/doc/${name}" | ||
| system "echo $name is a stub port > ${destroot}${prefix}/share/doc/${name}/README" | ||
| } | ||
| supported_archs noarch | ||
| } else { | ||
| # Fetch from git instead of distfile because it needs submodules | ||
| fetch.type git | ||
|
|
||
| post-fetch { | ||
| system -W "${worksrcpath}" "git submodule update --init --recursive" | ||
| } | ||
| } |