# -*- 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 105521 2013-04-23 17:48:38Z cal@macports.org $

PortSystem          1.0

name                tor-devel
conflicts           tor
version             0.2.4.12-alpha
categories          security
platforms           darwin
maintainers         nomaintainer
license             BSD

description         anonymizing overlay network for TCP

long_description    Tor provides a distributed network of servers \
                    (onion routers). Users bounce their TCP streams \
                    (web traffic, FTP, SSH, etc.) around the \
                    routers. This makes it hard for recipients, \
                    observers, and even the onion routers \
                    themselves to track the source of the stream.

homepage            https://www.torproject.org/
master_sites        ${homepage}dist/
dist_subdir         tor
distname            tor-${version}

checksums           rmd160  9d4b1103b34ecd17d7586ca1f2bf1fd67d93dde2 \
                    sha256  29445d559f1c3097bc0513c94d4aeb22f4bc93ab6ef7dbff5104f7bc8d8e677c

depends_lib         port:libevent \
                    port:openssl \
                    port:zlib

# http://llvm.org/bugs/show_bug.cgi?id=15201
if {[variant_isset universal]} {
    compiler.blacklist-append clang macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2 macports-clang-3.3
}

configure.args      --disable-asciidoc \
                    --disable-silent-rules \
                    --with-libevent-dir=${prefix} \
                    --with-openssl-dir=${prefix} \
                    --with-zlib-dir=${prefix}

test.run            yes
test.target         check

livecheck.type      regex
livecheck.url       ${master_sites}?C=M\;O=D
livecheck.regex     [suffix tor-(\\d+\\.\\d+\\.\\d+\\.\\d+(-alpha|-beta|-rc)?)]
