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

name                libsigsegv
version             2.14
revision            0
checksums           rmd160  a7b45b0d68a45036ef762c073abbf9025aae217f \
                    sha256  cdac3941803364cf81a908499beb79c200ead60b6b5b40cad124fd1e06caa295 \
                    size    464658

categories          devel
license             GPL-2+
maintainers         nomaintainer

description         Library for handling page faults in user mode.
long_description    GNU libsigsegv is a library for handling page \
                    faults in user mode. A page fault occurs when \
                    a program tries to access to a region of memory \
                    that is currently not available. Catching and \
                    handling a page fault is a useful technique for \
                    implementing pageable virtual memory, \
                    memory-mapped access to persistent databases, \
                    generational garbage collectors, stack overflow \
                    handlers, distributed shared memory, etc.

homepage            https://www.gnu.org/software/libsigsegv
master_sites        gnu:libsigsegv

configure.args      --enable-shared

test.run            yes
test.target         check

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -m 755 -d ${destroot}$docdir
    xinstall -m 644 -W ${worksrcpath} \
            AUTHORS COPYING ChangeLog NEWS PORTING README \
            ${destroot}$docdir
}
