source: trunk/dports/www/analog/Portfile

Last change on this file was 138112, checked in by larryv@…, 2 years ago

analog: Update to 6.0.12 (#48201)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 138112 2015-06-29 16:38:18Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                analog
7version             6.0.12
8
9categories          www
10license             GPL-2
11maintainers         nomaintainer
12description         A program which analyses logfiles from WWW servers
13long_description \
14    It is designed to be fast and to produce accurate and attractive \
15    statistics:  and combined with Report Magic, you can generate even \
16    prettier reports.  It's free software.
17
18platforms           darwin
19
20homepage            http://www.c-amie.co.uk/analog/
21master_sites        http://www.c-amie.co.uk/analog/download/src/
22distname            analog-src-[string range [subst [regsub -all {\.} "${version}" {}]] 0 6]ce
23use_zip             yes
24
25checksums           rmd160  01391b8674284c63571653eb6efd49a5d506663c \
26                    sha256  0cb14aa9b9b3e204656fcb61fef5ecefc63b54eca8772a358ab7ea6a1eb443fd
27
28# Note, it'd be nice to use an already-installed version of jpeg and libpng
29# as well, but analog currently doesn't have a HAVE_ define for them, just
30# zlib (as well as gd, which should be here too if possible)
31depends_lib         lib:libz.1:zlib
32
33patchfiles          patch-src_anlghead.h
34post-patch {
35    reinplace "s|@@PREFIX@@|${prefix}|g" "${worksrcpath}/src/anlghead.h"
36}
37
38use_configure       no
39
40build.args          DEFS="-DHAVE_ZLIB" LIBS="-lz"
41build.target        analog
42
43destroot {
44    xinstall -m 755 -d "${destroot}${prefix}/bin" \
45        "${destroot}${prefix}/share/doc/${name}" \
46        "${destroot}${prefix}/share/man/man1" \
47        "${destroot}${prefix}/share/${name}"
48    foreach item [list examples how-to images lang] {
49        file copy ${worksrcpath}/${item} ${destroot}${prefix}/share/${name}
50    }
51    foreach item [glob ${worksrcpath}/docs/*] {
52        file copy ${item} ${destroot}${prefix}/share/doc/${name}
53    }
54    xinstall -m 644 -W ${worksrcpath} ${name}.man \
55        "${destroot}${prefix}/share/man/man1/${name}.1"
56    xinstall -m 755 -W ${worksrcpath} ${name} "${destroot}${prefix}/bin"
57}
58
59platform darwin {
60    build.args-append  OS="OSX"
61}
62
63livecheck.type      regex
64livecheck.url       ${homepage}/download/
65livecheck.regex     "Edition (\\d+\\.\\d+(\[0-9rc.\]+)?) Full"
Note: See TracBrowser for help on using the repository browser.