# $Id: Portfile 115950 2014-01-15 09:38:04Z mww@macports.org $

PortSystem 1.0
PortGroup python 1.0
PortGroup app 1.0

name                linkchecker
version             8.2
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          www python
maintainers         nomaintainer
platforms           darwin freebsd
license             GPL-2+

description         linkchecker for html pages
long_description    linkchecker for html pages with recursive checking, \
                    multithreaded, output can be colored or normal text, HTML, \
                    SQL, CSV or a sitemap graph in XML or GML format, additionally \
                    reports download time for HTML pages HTTP/1.1 and 1.0, HTTPS, \
                    FTP, mailto:, news:, nntp:, gopher, telnet and local file \
                    links are supported, restrict link checking with regular \
                    expression filters for URLs, proxy support, give \
                    username/password for HTTP and FTP authorization, robots.txt \
                    exclusion protocol support, i18n support, CGI web interface.

homepage            http://linkchecker.sourceforge.net/
master_sites        sourceforge:project/linkchecker/${branch}/
dist_subdir         ${name}
distname            LinkChecker-${version}
use_xz              yes

checksums           md5     c3fbaa20142b7f0d7bf2d61615555b83 \
                    sha1    df5ed84f8b358f70c8a40b52f1896b84c1c9d98e \
                    rmd160  d80aea15e52270323d6ef979833a2cf5d5df1547 \
                    sha256  052d2c239326029baf57eddd56650b40de03576160a930a7d55960fffafa7811

python.default_version  27

# Can use either py*-pyqt4 or py*-pyqt4-devel.
depends_lib-append  path:share/py27-sip/PyQt4:py27-pyqt4

pre-build {
    system "cd ${worksrcpath} && make -C doc/html"
}

app.name            LinkChecker
app.executable      ${python.prefix}/bin/linkchecker-gui
app.icon            doc/html/logo128x128.png

python.link_binaries_suffix

livecheck.type      freecode
