# -*- 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                sfind
version             1.2
categories          sysutils
license             CDDL-1 BSD
platforms           darwin
maintainers         nomaintainer

description         POSIX.1-2001 compliant implementation of find

long_description    sfind is a highly portable and fully POSIX.1-2001 \
                    compliant implementation of the "find" utility.

homepage            http://developer.berlios.de/projects/sfind/
master_sites        ftp://ftp.berlios.de/pub/sfind/
use_bzip2           yes

checksums           md5     e2d94c97fd14554b743a62c295ca4bfe \
                    sha1    79dd5086ad083ddded66e60748803e71a645e821 \
                    rmd160  d1a0da3809f57d67bf166972e45a4880e1ae05b2

depends_build       port:smake

patchfiles          patch-getline.diff

use_configure       no

# smake does not support the -j flag
build.jobs          -1

build.cmd           ${prefix}/bin/smake

destroot.destdir    INS_BASE=${destroot}${prefix} \
                    MANDIR=share/man \
                    INSUSR=`id -u` INSGRP=`id -g`

post-destroot {
    file delete -force ${destroot}${prefix}/lib \
        ${destroot}${prefix}/include \
        ${destroot}${prefix}/share/man/man5
}
