On Jun 11, 2018, at 11:02, Jimmy Yuen Ho Wong wrote:
> Jimmy Yuen Ho Wong (wyuenho) pushed a commit to branch master > in repository macports-ports. > > > https://github.com/macports/macports-ports/commit/939a556e7a2572b8f1efe72ddd23857f2ef4e92f > > The following commit(s) were added to refs/heads/master by this push: > > new 939a556 cquery: new port > > 939a556 is described below > > > commit 939a556e7a2572b8f1efe72ddd23857f2ef4e92f > > Author: Jimmy Yuen Ho Wong <wyuenho@... You should configure your git client to use your MacPorts email address as the author of your commits. See: https://trac.macports.org/wiki/WorkingWithGit#setup > AuthorDate: Sun Jun 10 13:56:25 2018 +0100 > > > cquery: new port > > > > * requires clang-5.0 > > * subport - cquery-devel, requires clang-6.0 > > > > Closes: https://trac.macports.org/ticket/56630 > > --- > devel/cquery/Portfile | 67 > +++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 67 insertions(+) > > diff --git a/devel/cquery/Portfile b/devel/cquery/Portfile > new file mode 100644 > index 0000000..ec1d47c > --- /dev/null > +++ b/devel/cquery/Portfile > @@ -0,0 +1,67 @@ > +# -*- 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 waf 1.0 > +PortGroup xcodeversion 1.0 > + > +name cquery > + > +categories devel > +license MIT > +maintainers {wyuenho @wyuenho} openmaintainer > + > +description C/C++/Objective C Language Server Protocol support > + > +long_description \ > + cquery is a highly-scalable, low-latency language server for \ > + C/C++/Objective-C. It is tested and designed for large code bases like \ > + Chromium. cquery provides accurate and fast semantic analysis without \ > + interrupting workflow. \ > + \ > + cquery implements almost the entire language server protocol and > provides some \ > + extra features. > + > +platforms darwin > +os.version 16.0.0 Variables beginning with "os." are defined by MacPorts and are intended to be read-only; ports should not override them. This variable does not appear to be used further by the port, so this line should be removed. > +homepage https://github.com/cquery-project/cquery > + > +version 20180302 Ports hosted at GitHub should use the github 1.0 portgroup. https://guide.macports.org/#reference.portgroup.github This will allow several lines of the Portfile to be removed. > +fetch.type git > +git.url https://github.com/cquery-project/cquery > +git.branch v${version} > + > +if {${subport} eq ${name}} { > + conflicts cquery-devel > +} > +subport cquery-devel { > + conflicts ${name} > +} > + > +pre-configure { > + system -W ${worksrcpath} "git submodule update --init" > +} > + > +configure.args-delete --nocache > + > +variant asan description {Address Sanitizer} { > + configure.args-append --variant=asan-release > + build.args-append --variant=asan-release > +} > + > +if {${subport} eq ${name}} { > + depends_lib port:clang-5.0 > + configure.args-append --llvm-config=llvm-config-mp-5.0 > + build.args-append --llvm-config=llvm-config-mp-5.0 > +} > + > +if {${subport} eq "cquery-devel"} { > + minimum_xcodeversions {16 8.3} What about this port requires Xcode 8.3 or newer? Are you sure it isn't instead a requirement on a specific version of clang? If the latter, use the compiler_blacklist_versions portgroup instead. > + version 20180609 > + git.branch 634f73b581815c3bdd5c2d273dcf888596e212fd > + > + depends_lib port:clang-6.0 > + configure.args-append --llvm-config=llvm-config-mp-6.0 > + build.args-append --llvm-config=llvm-config-mp-6.0 > +}