# -*- 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$

PortSystem          1.0
PortGroup           python 1.0

name                webcleaner
version             2.31
revision            1
categories          www python
platforms           darwin
maintainers         nomaintainer

description         webcleaner is a powerful filtering http proxy
long_description    ${description}
homepage            http://webcleaner.sourceforge.net/

depends_build       port:spidermonkey

master_sites        sourceforge
checksums           md5 c7980d19a3f0087b4f04708c244f2a97

python.default_version  27
python.move_binaries    no

post-extract {
    file mkdir ${worksrcpath}/libjs/.libs/
    system "cd ${worksrcpath}/libjs/.libs && ln -s ${prefix}/lib/libjs.a"
}

use_configure           yes
configure.cflags-append "-I${prefix}/include/spidermonkey"

build.env           ${configure.env}