# -*- 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: Portfile 54772 2009-08-02 00:23:24Z snc@macports.org $

PortSystem 1.0

name                file
version             5.03
categories          sysutils
maintainers         jay.fm:jay-macports \
                    openmaintainer
description         File - determine file type
long_description \
    File tests each argument in an attempt to classify it. There are three  \
    sets of tests, performed in this order: filesystem tests, magic number  \
    tests, and language tests. The first test that succeeds causes the file \
    type to be printed. \
    Information on Mach-O binaries, it is suggested that one uses the command \
    `otool -fv`. \


homepage            http://www.darwinsys.com/file/
platforms           darwin
master_sites        ftp://ftp.fu-berlin.de/unix/tools/${name}/ \
                    ftp://ftp.astron.com/pub/${name}/ \
                    ftp://ftp.gw.com/mirrors/pub/unix/${name}/
checksums           md5     d05f08a53e5c2f51f8ee6a4758c0cc53 \
                    sha1    f659a4e1fa96fbdc99c924ea8e2dc07319f046c1 \
                    rmd160 	bf9fcf85e40dc4ec9cdcdc806107dc88207c6e5b

patchfiles          patch-magic-Magdir-msdos.diff

configure.args      --mandir=${prefix}/share/man \
                    --enable-fsect-man5
depends_lib         port:zlib

universal_variant   no

variant with_text_magic_file description (also install the plain-text magic file} {
    patchfiles-append patch-magic-Makefile.in.diff
}

livecheck.check     md5
livecheck.url       ftp://ftp.fu-berlin.de/unix/tools/${name}/
livecheck.md5       a2918bbcee8b1ca0225c5358f1801fdb
