# -*- 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           github 1.0

github.setup        wolfcw libfaketime 0.9.7 v
categories          sysutils
platforms           darwin
maintainers         nomaintainer
license             GPL-2

description         libfaketime modifies the system time for a single application

long_description    libfaketime intercepts various system calls that applications use to \
                    retrieve the current date and time. It can then report user-specified \
                    faked dates and times to these applications. This allows us to modify \
                    the system time an application sees without having to change the time \
                    system-wide. The faketime wrapper can be used from command line. \
                    Check the documentation on how to integrate into installed applications.

checksums           rmd160  ddeee257d6df4a553509b7034cd26bcf76e4a8e0 \
                    sha256  fa335f482aa4d1e19026bce17b7022b1e969d0cc1ee451cf3202e43bd8c2138b \
                    size    56281

use_configure       no

variant universal {}

compiler.blacklist  *cc* *dragonegg*

build.args          PREFIX=${prefix}
build.env           CC=${configure.cc} \
                    CFLAGS=[get_canonical_archflags cc] \
                    LDFLAGS=[get_canonical_archflags ld]

destroot.args       ${build.args}

test.run            yes
test.env            {*}${build.env}

notes {
    With System Integrity Protection (SIP) enabled on macOS 10.11 El Capitan\
    or later, it is not possible to override date and time for system\
    binaries in /bin or /usr/bin as DYLD_INSERT_LIBRARIES will be ignored.\
    This also applies to shell scripts invoked through #!/bin/sh or similar.
}