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

PortSystem          1.0

name                libsigsegv
version             2.10
categories          devel
platforms           darwin
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
checksums           rmd160  186b145f0318657544f774868f50d45729f48834 \
                    sha256  8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a

configure.args      --enable-shared \
                    --mandir=${prefix}/share/man

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 README.woe32 \
            ${destroot}$docdir
}