# $Id: Portfile 106376 2013-05-24 00:44:29Z jmr@macports.org $

PortSystem          1.0
PortGroup           python  1.0

name			    py-logilab-constraint
version		    	0.4.0
license		    	GPL-2+
platforms		    darwin
supported_archs	    noarch
maintainers		    nomaintainer
description		    python module for solving constraint satisfaction problems
long_description	The constraint package is a constraint satisfaction \
			    	problem solver written in 100% pure Python, using \
				    constraint propagation algorithms. So far, facilities \
				    are provided to work with finite domains only.

homepage	    	http://www.logilab.org/projects/constraint/
master_sites    	http://ftp.logilab.org/pub/constraint
distname	    	logilab-constraint-${version}
worksrcdir          constraint-${version}
checksums           md5     b31028dba355c91f0b98a503ef12103b \
                    sha1    534b68324ca0e6b469d204048f3efd8f9f8e1dfd \
                    rmd160  d0155cf34407938d1d6fb27e4052cd26e267869f

python.versions		25 26

if {$subport != $name} {
    depends_lib         port:py${python.version}-logilab-common

    post-destroot	{
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}

        xinstall -m 644 -W ${worksrcpath} \
            doc/CONTRIBUTORS doc/documentation.html doc/documentation.xml \
            README COPYING ChangeLog \
            ${destroot}${prefix}/share/doc/${subport}
        eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
            ${destroot}${prefix}/share/examples/${subport}

        file delete ${destroot}${python.pkgd}/logilab/__init__.py
    }
}
