{ "name": "boost", "version": "1.92.0", "summary": "Boost C++ headers and the static Program Options library (what PowerDNS builds with)", "category": "library", "license": "BSL-1.0", "homepage": "https://www.boost.org/", "source": { "url": "https://github.com/boostorg/boost/releases/download/boost-1.92.0/boost-1.92.0-b2-nodocs.tar.xz", "sha256": "ea7b982002cc9dfbe59b0b217b206f470dc75f3de0bb2973d844118934d82411" }, "watch": {"kind": "github-release", "repo": "boostorg/boost", "tag_regex": "^boost-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)$"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "sed -n 's/^#define BOOST_LIB_VERSION \"\\(.*\\)\"/Boost \\1: headers, static Program Options and Filesystem/p' include/boost/version.hpp && has -x '#define BOOST_LIB_VERSION \"1_92\"' < include/boost/version.hpp && test -f lib/libboost_program_options.a && test -f lib/libboost_filesystem.a && ! ls lib/libboost_*.so* > /dev/null 2>&1 && t=$(mktemp -d) && printf '#include \\n#include \\nnamespace po = boost::program_options;\\nint main(int c, char **v) { po::options_description d; d.add_options()(\"n\", po::value()); po::variables_map m; po::store(po::parse_command_line(c, v, d), m); std::cout << m[\"n\"].as() * 2 << std::endl; }\\n' > \"$t/t.cc\" && ${CC%gcc}g++ -std=c++17 $CPPFLAGS $CFLAGS \"$t/t.cc\" -o \"$t/t\" $LDFLAGS -lboost_program_options && \"$t/t\" --n 21 | has -x 42 && printf '#include \\n#include \\n#include \\nnamespace fs = boost::filesystem;\\nint main(int c, char **v) { fs::path d = fs::path(v[1]) / \"a\" / \"b\"; fs::create_directories(d); std::ofstream(d / \"f.txt\") << \"bvs\"; int n = 0; uintmax_t s = 0; for (auto &e : fs::recursive_directory_iterator(v[1])) if (fs::is_regular_file(e.path())) { n++; s += fs::file_size(e.path()); } std::cout << n << \" \" << s << \" \" << fs::relative(d, v[1]).generic_string() << std::endl; }\\n' > \"$t/f.cc\" && ${CC%gcc}g++ -std=c++17 $CPPFLAGS $CFLAGS \"$t/f.cc\" -o \"$t/f\" $LDFLAGS -lboost_filesystem $(ls lib/libboost_atomic.a > /dev/null 2>&1 && echo -lboost_atomic) && \"$t/f\" \"$t/d\" | has -x '1 3 a/b'; r=$?; rm -rf -- \"${t:?}\"; exit $r" }