Ravenports generated: 17 Jun 2023 22:17
[ravenports.git] / bucket_EB / ccache
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ccache
4 VERSION=                4.8.2
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/v4.8.2/
13 DISTFILE[1]=            ccache-4.8.2.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 BUILD_DEPENDS=          ruby-asciidoctor:single:ruby_default
23
24 USES=                   cmake perl:build c++:primary zstd:build
25
26 DISTNAME=               ccache-4.8.2
27
28 LICENSE=                GPLv3+:primary
29 LICENSE_TERMS=          primary:{{WRKSRC}}/LICENSE.adoc
30 LICENSE_FILE=           GPLv3+:{{WRKSRC}}/GPL-3.0.txt
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         devel/ccache
34
35 BUILD_TARGET=           all doc
36
37 INSTALL_REQ_TOOLCHAIN=  yes
38 PLIST_SUB=              CCLINKDIR="libexec/ccache"
39
40 CMAKE_ARGS=             -DENABLE_TESTING:BOOL=OFF
41                         -DREDIS_STORAGE_BACKEND:BOOL=OFF
42
43 post-install:
44         ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ccache
45 .for compiler in cc c++ gcc g++ clang clang++
46         ${LN} -sf ${PREFIX}/bin/ccache ${STAGEDIR}${PREFIX}/libexec/ccache/${compiler}
47 .endfor
48         ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
49         ${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/MANUAL.html ${STAGEDIR}${STD_DOCDIR}
50         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache
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 3d3fb3f888a5b16c4fa7ee5214cca76348afd6130e8443de5f6f2424f2076a49       560888 ccache-4.8.2.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:357:patches/patch-cmake_Findzstd.cmake]
80 --- cmake/Findzstd.cmake.orig   2023-06-12 19:17:31 UTC
81 +++ cmake/Findzstd.cmake
82 @@ -25,7 +25,7 @@ else()
83    endif()
84  
85    if(NOT zstd_FOUND)
86 -    find_library(ZSTD_LIBRARY zstd)
87 +    find_library(ZSTD_LIBRARY zstd_pic)
88      find_path(ZSTD_INCLUDE_DIR zstd.h)
89      if(ZSTD_LIBRARY AND ZSTD_INCLUDE_DIR)
90        message(STATUS "Using zstd from ${ZSTD_LIBRARY}")
91
92
93 [FILE:721:patches/patch-cmake_config.h.in]
94 --- cmake/config.h.in.orig      2023-06-12 19:17:31 UTC
95 +++ cmake/config.h.in
96 @@ -36,16 +36,18 @@
97  #cmakedefine _DARWIN_C_SOURCE
98  
99  // Define to activate features from IEEE Stds 1003.1-2008.
100 +#if !defined(__sun)
101  #define _POSIX_C_SOURCE 200809L
102 +#endif
103  
104  #if defined(__SunOS_5_8) || defined(__SunOS_5_9) || defined(__SunOS_5_10)
105  #  define _XOPEN_SOURCE 500
106 -#elif defined(__FreeBSD__)
107 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
108  #  define _XOPEN_SOURCE 700
109  #elif defined(__ibmxl__) && defined(__clang__) // Compiler xlclang
110  #  define _XOPEN_SOURCE 600
111  #  define _ALL_SOURCE 1
112 -#elif !defined(__SunOS_5_11) && !defined(__APPLE__)
113 +#elif !defined(__sun) && !defined(__APPLE__)
114  #  define _XOPEN_SOURCE
115  #endif
116  
117
118
119 [FILE:209:patches/patch-src_Util.cpp]
120 --- src/Util.cpp.orig   2023-06-12 19:17:31 UTC
121 +++ src/Util.cpp
122 @@ -41,6 +41,7 @@ extern "C" {
123  #include "third_party/base32hex.h"
124  }
125  
126 +#include <limits.h>
127  #ifdef HAVE_DIRENT_H
128  #  include <dirent.h>
129  #endif
130
131
132 [FILE:448:patches/patch-src_third__party_CMakeLists.txt]
133 --- src/third_party/CMakeLists.txt.orig 2023-06-12 19:17:31 UTC
134 +++ src/third_party/CMakeLists.txt
135 @@ -49,6 +49,10 @@ target_include_directories(
136  target_link_libraries(third_party PRIVATE standard_settings)
137  target_link_libraries(third_party INTERFACE blake3)
138  
139 +if(CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
140 +  target_link_libraries(third_party PUBLIC socket)
141 +endif()
142 +
143  if(WIN32)
144    target_link_libraries(third_party PRIVATE ws2_32)
145  endif()
146
147
148 [FILE:333:files/Makefile.BSD.in]
149 .SUFFIXES:
150 .SUFFIXES: .o .c
151
152 SRCS=   src/main.c \
153         src/args.c \
154         src/ccache.c \ 
155         src/cleanup.c \
156         src/compopt.c \
157         src/conf.c \
158         src/confitems.c \
159         src/counters.c \
160         src/execute.c \
161         src/exitfn.c \
162         src/main.c
163
164 OBJS=           ${SRCS:R:S/$/.o/}
165
166 CFLAGS+=        -I./src \
167                 -I./src/zlib \
168                 -I./unittest \
169                 -DCC_IS_GCC \
170                 -Wno-implicit-fallthrough
171