Skip to content
Permalink
Browse files

ccls: New port

  • Loading branch information
egorenar authored and cjones051073 committed Mar 14, 2019
1 parent 8b66f4d commit ef4b99b095d248bc55aa53b3933719cf56a541bc
Showing with 47 additions and 0 deletions.
  1. +47 −0 devel/ccls/Portfile
@@ -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"
}
}

0 comments on commit ef4b99b

Please sign in to comment.
You can’t perform that action at this time.