# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 90354 2012-03-03 11:01:20Z dports@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-socksipy-branch
version             1.02

categories          python devel net
maintainers         vmunix.org:torstenb \
                    openmaintainer
description         python SOCKS client module
long_description    SocksiPy is a SOCKS client module, branched off the abandoned \
                    original socksipy

platforms           darwin
license             BSD
supported_archs     noarch

homepage            http://socksipy-branch.googlecode.com/
master_sites        googlecode:socksipy-branch

distname            SocksiPy-branch-${version}

python.versions     26 27
python.default_version 27

checksums           rmd160  7b4db2d555db971855c2161fbf7ed0a7ad18f52a \
                    sha256  9a6e201fb02c998c3c4d289b7805eadd0ee192ed8b9fa084b69201b589b17773

post-patch {
    # Set directories to 755, *.py to 755, other files to 644
    system "find ${workpath} -type d -exec chmod 755 {} \\;"
    system "find ${workpath} -type f -name '*.py' -exec chmod 775 {} \\;"
    system "find ${workpath} -type f -not -name '*.py' -exec chmod 644 {} \\;"
}
