# $Id$

PortSystem          1.0
PortGroup           python26  1.0

name			    py26-logilab-constraint
version		    	0.4.0
categories	    	python
platforms		    darwin
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

depends_lib         port:py26-logilab-common

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

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

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