Ticket #58460: Portfile-ccache

File Portfile-ccache, 1.5 KB (added by Russell-Jones-OxPhys (Russell Jones), 6 years ago)

ccache portfile with +doc variant

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
3PortSystem          1.0
4PortGroup           github 1.0
5
6name                ccache
7github.setup        ccache ccache 3.7.1 v
8revision            0
9checksums           rmd160  ea189d1a42490050d591551e4396a89d4c611e23 \
10                    sha256  d618e6c257d000d974a7ebb46aaefd872f77a1efeaefe33829d7396b2ec60420 \
11                    size    384420
12
13categories          devel
14platforms           darwin freebsd
15license             GPL-3+
16
17maintainers         {ryandesign @ryandesign} openmaintainer
18
19description         object-file caching compiler wrapper
20
21long_description \
22    ccache is a compiler cache.  It acts as a caching pre-processor to C/C++ \
23    compilers, using the -E compiler switch and a hash to detect when a \
24    compilation can be satisfied from cache.  This often results in a 5 to 10 \
25    times speedup in common compilations.
26
27homepage            https://ccache.dev
28
29use_autoconf        yes
30autoconf.cmd        ./autogen.sh
31
32depends_lib         port:zlib \
33                    port:autoconf
34
35default_variants +doc
36
37variant doc description "Whether to build docs or not" {
38        depends_build-append port:asciidoc
39}
40if {![variant_isset doc]} {
41        configure.args-append --disable-man
42}
43
44conflicts           ccache-devel
45
46livecheck.type      regex
47livecheck.url       [lindex ${master_sites} 0]
48livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}