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

PortSystem          1.0
PortGroup           python 1.0

name                py-pyke
version             1.1.1
categories-append   lang devel
platforms           darwin
supported_archs     noarch
maintainers         {gmail.com:mahergamal @maherg} {petr @petrrr}
license             MIT
description         Python Knowledge Engine (PyKE)

long_description    \
    Pyke introduces a form of Logic Programming (inspired by Prolog) to \
    the Python community by providing a knowledge-based inference engine \
    (expert system) written in 100% Python. Both forward-chaining and \
    backward-chaining rules (which may include python code) are compiled \
    into python. Can also automatically assemble python programs out of \
    Python functions which are attached to backward-chaining rules.

homepage            http://pyke.sourceforge.net
master_sites        sourceforge:pyke
distname            pyke-${version}
use_zip             yes

checksums           md5     b0f9daa278d9996bc742277126831001 \
                    rmd160  4552fa7f20de373426b9adb27f758efb4536fcf6 \
                    sha256  b0b294f435c6e6d2d4a80badf57d92cb66814dfe21e644a521901209e6a3f8ae

python.versions     27 34 35 36

if {${name} ne ${subport}} {

    # Python 3: use a different distfile
    if { ${python.version} >= 30 } {
        distname    pyke3-${version}
        worksrcdir  pyke-${version}

        checksums   md5     a7d12d66d4c2ec12576a8187d3001384 \
                    rmd160  101c41062a8d7d9fd3ea08e6c18a3f2cdeb180a8 \
                    sha256  b877b390e70a2eacc01d97c3a992fde947276afc2798ca3ac6c6f74c796cb6dc
    }
    
    livecheck.type  none
}