# -*- 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 PortSystem 1.0 PortGroup cmake 1.1 PortGroup compiler_blacklist_versions 1.0 PortGroup github 1.0 # Temporary switch to commit to pick up fixes from upstream: # https://github.com/stclib/STC/issues/60 # https://github.com/stclib/STC/issues/61 github.setup stclib STC 071b41c0fe95cb3f9a72bbe0417d856e7989ca08 version 4.2 revision 1 categories devel license MIT maintainers {mascguy @mascguy} {@barracuda156 gmail.com:vital.had} openmaintainer description A modern, user-friendly, generic, type-safe and fast C99 container library long_description {*}${description} featuring string, vector, sorted and unordered map and set, deque, forward list, smart pointers, bitset and random numbers. checksums rmd160 8640aa46e61d476924205646979e708723735701 \ sha256 03af190bdf2f9427f4f031a93738b3724e3e8a71cd279d529b5efb16f2501143 \ size 1136172 github.tarball_from archive compiler.c_standard 1999 cmake.set_c_standard yes configure.args-append \ -DBUILD_TESTING=yes # Needs support for atomic operations. # Re Xcode clang: https://github.com/stclib/STC/issues/62 compiler.blacklist-append \ *gcc-4.0 *gcc-4.2 {clang < 1200} destroot { set incdir ${prefix}/include/${name} set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${incdir} xinstall -d ${destroot}${docdir} foreach srcdir [list c11 stc] { copy ${worksrcpath}/include/${srcdir} ${destroot}${incdir} } copy ${worksrcpath}/docs ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir} } test.run yes test.cmd ctest