Ravenports generated: 29 Mar 2020 19:36
[ravenports.git] / bucket_EB / ccache
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ccache
4 VERSION=                3.7.9
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Fast C/C++ compiler cache tool
8 HOMEPAGE=               https://ccache.samba.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://github.com/ccache/ccache/releases/download/v3.7.9/
13 DISTFILE[1]=            ccache-3.7.9.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 DISTNAME=               ccache-3.7.9
23
24 LICENSE=                GPLv3+:primary
25 LICENSE_TERMS=          primary:{{WRKSRC}}/LICENSE.adoc
26 LICENSE_FILE=           GPLv3+:{{WRKSRC}}/GPL-3.0.txt
27 LICENSE_SCHEME=         solo
28
29 FPC_EQUIVALENT=         devel/ccache
30 SKIP_CCACHE=            yes
31
32 MUST_CONFIGURE=         gnu
33
34 PLIST_SUB=              CCLINKDIR="libexec/ccache"
35
36 CPPFLAGS=               -DCC_IS_GCC
37                         -Wno-implicit-fallthrough
38 VAR_OPSYS[sunos]=       CPPFLAGS=-D_XPG6
39                         CPPFLAGS=-D_STDC_C99=
40
41 do-install:
42         ${INSTALL_PROGRAM} ${WRKSRC}/ccache ${STAGEDIR}${PREFIX}/bin
43         ${INSTALL_MAN} ${WRKSRC}/doc/ccache.1 \
44                 ${STAGEDIR}${PREFIX}/share/man/man1
45         @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ccache
46 .for compiler in cc c++ gcc g++ clang clang++
47         ${LN} -sf ${PREFIX}/bin/ccache ${STAGEDIR}${PREFIX}/libexec/ccache/${compiler}
48 .endfor
49         @${MKDIR} ${STAGEDIR}${STD_DOCDIR}
50         ${INSTALL_DATA} ${WRKSRC}/doc/MANUAL.html ${STAGEDIR}${STD_DOCDIR}
51
52 [FILE:253:descriptions/desc.primary]
53 ccache is a compiler cache.  It acts as a caching pre-processor to C/C++
54 compilers, using the -E compiler switch and a hash to detect when a
55 compilation can be satisfied from cache.  This often results in a 5 to 10
56 times speedup in common compilations.
57
58
59 [FILE:98:distinfo]
60 f893da7543bfb9172bd55e603fcbdfcd83e6def176a28689c13235695b4cf44b       352948 ccache-3.7.9.tar.xz
61
62
63 [FILE:88:manifests/plist.primary]
64 %%CCLINKDIR%%/
65  c++
66  cc
67  clang
68  clang++
69  g++
70  gcc
71 bin/ccache
72 share/man/man1/ccache.1.gz
73
74
75 [FILE:29:manifests/plist.docs]
76 share/doc/ccache/MANUAL.html
77
78
79 [FILE:456:patches/patch-Makefile.in]
80 --- Makefile.in.orig    2020-03-29 14:11:45 UTC
81 +++ Makefile.in
82 @@ -125,11 +125,7 @@ install: ccache$(EXEEXT) @disable_man@cc
83  clean:
84         rm -rf $(files_to_clean)
85  
86 -$(non_3pp_objs) $(test_objs): CFLAGS += @more_warnings@
87  
88 -src/snprintf.o: CFLAGS += @no_implicit_fallthrough_warning@
89 -$(zlib_objs): CPPFLAGS += -include config.h
90 -$(zlib_objs): CFLAGS += @no_implicit_fallthrough_warning@
91  
92  src/zlib/libz.a: $(zlib_objs)
93         $(if $(quiet),@echo "  AR       $@")
94
95
96 [FILE:1228:patches/patch-src_ccache.c]
97 - Don't hash -fcolor-diagnostics; make will auto use it while make -j will not.
98   There's no reason to not use the cache in either of these cases if it is
99   already available.
100
101 --- src/ccache.c.orig   2020-03-29 14:11:45 UTC
102 +++ src/ccache.c
103 @@ -2001,6 +2001,7 @@ calculate_common_hash(struct args *args,
104                 free(p);
105         }
106  
107 +#if 0
108         // Possibly hash GCC_COLORS (for color diagnostics).
109         if (guessed_compiler == GUESSED_GCC) {
110                 const char *gcc_colors = getenv("GCC_COLORS");
111 @@ -2009,6 +2010,7 @@ calculate_common_hash(struct args *args,
112                         hash_string(hash, gcc_colors);
113                 }
114         }
115 +#endif
116  }
117  
118  // Update a hash sum with information specific to the direct and preprocessor
119 @@ -2046,6 +2048,13 @@ calculate_object_hash(struct args *args,
120                         continue;
121                 }
122  
123 +               /* Colors do not affect compilation. */
124 +               if (str_startswith(args->argv[i], "-fcolor-diagnostics") ||
125 +                   str_eq(args->argv[i], "-fdiagnostics-color") ||
126 +                   str_eq(args->argv[i], "-fdiagnostics-color=always")) {
127 +                       continue;
128 +               }
129 +
130                 // The -fdebug-prefix-map option may be used in combination with
131                 // CCACHE_BASEDIR to reuse results across different directories. Skip using
132                 // the value of the option from hashing but still hash the existence of the
133