Ravenports generated: 08 Feb 2023 00:14
[ravenports.git] / bucket_56 / leatherman
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               leatherman
4 VERSION=                1.12.9
5 REVISION=               1
6 KEYWORDS=               devel
7 VARIANTS=               standard
8 SDESC[standard]=        C++ and CMake utility libraries
9 HOMEPAGE=               https://github.com/puppetlabs/leatherman
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GITHUB/puppetlabs:leatherman:1.12.9
14 DISTFILE[1]=            generated:main
15 DF_INDEX=               1
16 SPKGS[standard]=        complete
17                         primary
18                         nls
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILDRUN_DEPENDS=       curl:primary:standard
24                         boost-libraries:single:standard
25
26 USES=                   cmake ruby gettext:build
27
28 LICENSE=                APACHE20:primary
29 LICENSE_TERMS=          primary:{{WRKSRC}}/LICENSE
30 LICENSE_FILE=           APACHE20:stock
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         devel/leatherman
34
35 SOVERSION=              1.12.9
36
37 CXXFLAGS=               -Wno-class-memaccess
38                         -Wno-ignored-qualifiers
39                         -Wno-catch-value
40 CMAKE_ARGS=             -DLEATHERMAN_SHARED:BOOL=ON
41                         -DENABLE_CXX_WERROR:BOOL=OFF
42                         -DLEATHERMAN_ENABLE_TESTING:BOOL=OFF
43                         -DBoost_NO_BOOST_CMAKE:BOOL=ON
44
45 post-patch:
46         ${REINPLACE_CMD} -e 's/ -Werror//' ${WRKSRC}/cmake/cflags.cmake
47
48 post-install:
49         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
50         # installed by boost
51         ${RM} -r ${STAGEDIR}${PREFIX}/include/boost
52
53 [FILE:455:descriptions/desc.primary]
54 Leatherman - a C++ toolkit
55
56 Leatherman can be used in one of two ways: It can be installed as a regular
57 library, and included using the normal CMake find_package syntax, or it can
58 be setup as a submodule. The recommended method is to install Leatherman
59 and use it as a regular system library.
60
61 Leatherman is broken up into a number of focused component libraries. Both
62 methods of using Leatherman allow you to control which components are built
63 and used.
64
65
66 [FILE:114:distinfo]
67 62c1b86b6bfe8e2f06f84e605b1bad8a0fa3224d2bf2dc33e69b2e46b902c2cb       816107 puppetlabs-leatherman-1.12.9.tar.gz
68
69
70 [FILE:2420:manifests/plist.primary]
71 include/leatherman/curl/
72  client.hpp
73  export.h
74  request.hpp
75  response.hpp
76 include/leatherman/dynamic_library/dynamic_library.hpp
77 include/leatherman/execution/execution.hpp
78 include/leatherman/file_util/
79  directory.hpp
80  file.hpp
81 include/leatherman/json_container/json_container.hpp
82 include/leatherman/locale/locale.hpp
83 include/leatherman/logging/logging.hpp
84 include/leatherman/ruby/api.hpp
85 include/leatherman/util/
86  environment.hpp
87  option_set.hpp
88  regex.hpp
89  scope_exit.hpp
90  scoped_env.hpp
91  scoped_resource.hpp
92  strings.hpp
93  time.hpp
94  timer.hpp
95  uri.hpp
96 include/leatherman/util/posix/scoped_descriptor.hpp
97 include/leatherman/util/windows/scoped_handle.hpp
98 include/leatherman/vendor/catch.hpp
99 include/leatherman/vendor/rapidjson/
100  allocators.h
101  document.h
102  encodedstream.h
103  encodings.h
104  filereadstream.h
105  filewritestream.h
106  memorybuffer.h
107  memorystream.h
108  prettywriter.h
109  rapidjson.h
110  reader.h
111  stringbuffer.h
112  writer.h
113 include/leatherman/vendor/rapidjson/error/
114  en.h
115  error.h
116 include/leatherman/vendor/rapidjson/internal/
117  biginteger.h
118  diyfp.h
119  dtoa.h
120  ieee754.h
121  itoa.h
122  meta.h
123  pow10.h
124  stack.h
125  strfunc.h
126  strtod.h
127 include/leatherman/vendor/rapidjson/msinttypes/
128  inttypes.h
129  stdint.h
130 lib/
131  libleatherman_curl.so
132  libleatherman_curl.so.%%SOVERSION%%
133  libleatherman_dynamic_library.so
134  libleatherman_dynamic_library.so.%%SOVERSION%%
135  libleatherman_execution.so
136  libleatherman_execution.so.%%SOVERSION%%
137  libleatherman_file_util.so
138  libleatherman_file_util.so.%%SOVERSION%%
139  libleatherman_json_container.so
140  libleatherman_json_container.so.%%SOVERSION%%
141  libleatherman_locale.so
142  libleatherman_locale.so.%%SOVERSION%%
143  libleatherman_logging.so
144  libleatherman_logging.so.%%SOVERSION%%
145  libleatherman_ruby.so
146  libleatherman_ruby.so.%%SOVERSION%%
147  libleatherman_util.so
148  libleatherman_util.so.%%SOVERSION%%
149 lib/cmake/leatherman/
150  LeathermanConfig.cmake
151  LeathermanConfigVersion.cmake
152  LeathermanLibraries-%%CMAKE_BUILD_TYPE%%.cmake
153  LeathermanLibraries.cmake
154  catch.cmake
155  curl.cmake
156  dynamic_library.cmake
157  execution.cmake
158  file_util.cmake
159  json_container.cmake
160  locale.cmake
161  logging.cmake
162  nowide.cmake
163  rapidjson.cmake
164  ruby.cmake
165  util.cmake
166 lib/cmake/leatherman/cmake/
167  GetGitRevisionDescription.cmake
168  GetGitRevisionDescription.cmake.in
169  cflags.cmake
170  generate_translations.cmake
171  leatherman.cmake
172  leatherman_config.cmake
173  normalize_pot.cmake
174  options.cmake
175  pod2man.cmake
176 lib/cmake/leatherman/scripts/cpplint.py
177
178
179 [FILE:74:manifests/plist.nls]
180 share/locale/fr/LC_MESSAGES/
181  leatherman_locale.mo
182  leatherman_logging.mo
183
184
185 [FILE:314:patches/patch-CMakeLists.txt]
186 --- CMakeLists.txt.orig 2022-09-19 23:56:50 UTC
187 +++ CMakeLists.txt
188 @@ -62,6 +62,7 @@ else()
189      add_definitions(-DLEATHERMAN_LOCALE_INSTALL="${CMAKE_INSTALL_PREFIX}/share/locale")
190  endif()
191  
192 +set(BUILD_SHARED_LIBS ON)
193  file(GLOB_RECURSE ALL_LEATHERMAN_SOURCES */src/*.cc */inc/*.hpp)
194  add_subdirectory(locales)
195  
196
197
198 [FILE:483:patches/patch-cmake_leatherman.cmake.in]
199 --- cmake/leatherman.cmake.in.orig      2022-09-19 23:56:50 UTC
200 +++ cmake/leatherman.cmake.in
201 @@ -83,11 +83,6 @@ macro(leatherman_install)
202          RUNTIME DESTINATION bin
203          LIBRARY DESTINATION lib${LIB_SUFFIX}
204          ARCHIVE DESTINATION lib${LIB_SUFFIX})
205 -    foreach(ARG ${ARGV})
206 -        if (TARGET ${ARG})
207 -            set_target_properties(${ARG} PROPERTIES PREFIX "" IMPORT_PREFIX "")
208 -        endif()
209 -    endforeach()
210  endmacro()
211  
212  # Usage: add_cppcheck_dirs(dir1 dir2)
213
214
215 [FILE:376:patches/patch-dynamic__library_CMakeLists.txt]
216 --- dynamic_library/CMakeLists.txt.orig 2022-09-19 23:56:50 UTC
217 +++ dynamic_library/CMakeLists.txt
218 @@ -9,7 +9,7 @@ leatherman_dependency(util)
219  if(WIN32)
220      leatherman_dependency(windows)
221  else()
222 -  if(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD|OpenBSD")
223 +  if(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly")
224        add_leatherman_deps(dl)
225    endif()
226  endif()
227
228
229 [FILE:542:patches/patch-json__container_tests_json__container__test.cc]
230 --- json_container/tests/json_container_test.cc.orig    2022-09-19 23:56:50 UTC
231 +++ json_container/tests/json_container_test.cc
232 @@ -22,11 +22,13 @@ TEST_CASE("JsonContainer::JsonContainer
233      std::string json_value {};
234  
235      SECTION("it should instantiate by passing any JSON value") {
236 +        json_value = "{}";
237          SECTION("object") {
238              json_value = JSON;
239          }
240  
241          SECTION("array") {
242 +            json_value = "[]";
243              SECTION("of numbers") {
244                  json_value = "[1, 2, 3]";
245              }
246
247
248 [FILE:472:patches/patch-locale_src_locale.cc]
249 --- locale/src/locale.cc.orig   2022-09-19 23:56:50 UTC
250 +++ locale/src/locale.cc
251 @@ -44,6 +44,9 @@ namespace leatherman { namespace locale
252              gen.add_messages_domain(domain);
253          }
254  
255 +        if (id.empty())
256 +            return g_locales.insert(make_pair(domain, std::locale())).first->second;
257 +
258          // Ensure creating and adding a new locale is thread-safe.
259          try {
260              return g_locales.insert(make_pair(domain, gen(id))).first->second;
261