Permalink
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (51 sloc) 2.27 KB
# -*- 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 analog
version 6.0.13
categories www
license GPL-2
maintainers nomaintainer
description A program which analyses logfiles from WWW servers
long_description \
It is designed to be fast and to produce accurate and attractive \
statistics: and combined with Report Magic, you can generate even \
prettier reports. It's free software.
platforms darwin
homepage http://www.c-amie.co.uk/software/analog/
master_sites http://www.c-amie.co.uk/analog/download/src/
distname analog-src-[string range [subst [regsub -all {\.} "${version}" {}]] 0 6]ce
use_zip yes
checksums rmd160 6bed9c336ba6366b4ad19e2ef31385e9b9c545ba \
sha256 86fdfa2c71121f1ad798cdd799383edfeaead07478cc0362b01acd5e29d34eda
# Note, it'd be nice to use an already-installed version of jpeg and libpng
# as well, but analog currently doesn't have a HAVE_ define for them, just
# zlib (as well as gd, which should be here too if possible)
depends_lib lib:libz.1:zlib
patchfiles patch-src_anlghead.h
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|g" "${worksrcpath}/src/anlghead.h"
}
use_configure no
build.args DEFS="-DHAVE_ZLIB" LIBS="-lz"
build.target analog
destroot {
xinstall -m 755 -d "${destroot}${prefix}/bin" \
"${destroot}${prefix}/share/doc/${name}" \
"${destroot}${prefix}/share/man/man1" \
"${destroot}${prefix}/share/${name}"
foreach item [list examples how-to images lang] {
file copy ${worksrcpath}/${item} ${destroot}${prefix}/share/${name}
}
foreach item [glob ${worksrcpath}/docs/*] {
file copy ${item} ${destroot}${prefix}/share/doc/${name}
}
xinstall -m 644 -W ${worksrcpath} ${name}.man \
"${destroot}${prefix}/share/man/man1/${name}.1"
xinstall -m 755 -W ${worksrcpath} ${name} "${destroot}${prefix}/bin"
}
platform darwin {
build.args-append OS="OSX"
}
livecheck.type regex
livecheck.url ${homepage}downloads/
livecheck.regex "Edition (\\d+\\.\\d+(\[0-9rc.\]+)?) Full"