source: trunk/dports/devel/Bear/Portfile @ 124140

Last change on this file since 124140 was 124140, checked in by cal@…, 5 years ago

new port: bear, a tool to generate compilation database for clang tooling

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 124140 2014-08-19 21:24:19Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8github.setup        rizsotto Bear 1.4.3
9checksums           rmd160  66b88ea351b0db69777f4e1cacfe15453dfdee00 \
10                    sha256  4a0f9525608653a92370a956dddc8b6b76b379d760f0d1a4730a5fac64f17f2a
11
12maintainers         cal openmaintainer
13license             GPL-3+
14platforms           darwin
15
16categories          devel
17description         \
18    Bear is a tool to generate compilation database for clang tooling.
19long_description    ${description} \
20    The JSON compilation database is used in clang project to provide \
21    information how a single compilation unit was processed. When that is \
22    available then it is easy to re-run the compilation with different \
23    programs.
24
25depends_build-append \
26                    port:pkgconfig
27
28depends_lib-append  port:libconfig-hr
29
30set config          ${prefix}/etc/bear.conf
31set dconfig         ${prefix}/etc/bear.conf.default
32post-destroot {
33    move ${destroot}${config} ${destroot}${dconfig}
34}
35
36post-activate {
37    if {![file exists ${config}]} {
38        xinstall -m 644 ${dconfig} ${config}
39    }
40}
41
42notes "The default configuration file has been installed as\n  ${dconfig}.\nIf\
43    ${config} does not exist, it will be created on activation from the default\
44    file."
Note: See TracBrowser for help on using the repository browser.