Ticket #41499: Portfile

File Portfile, 1.7 KB (added by petrrr, 11 years ago)

The Portfile for python/py-pyke.

Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-pyke
8version             1.1.1
9categories-append   lang devel
10platforms           darwin
11supported_archs     noarch
12maintainers         bo.ingv.it:Peter.Danecek openmaintainer
13
14license             MIT
15
16description         Python Knowledge Engine (PyKE)
17
18long_description    \
19    Pyke introduces a form of Logic Programming (inspired by Prolog) to \
20    the Python community by providing a knowledge-based inference engine \
21    (expert system) written in 100% Python. Both forward-chaining and \
22    backward-chaining rules (which may include python code) are compiled \
23    into python. Can also automatically assemble python programs out of \
24    Python functions which are attached to backward-chaining rules.
25
26homepage            http://pyke.sourceforge.net
27
28master_sites        sourceforge:pyke
29distname            pyke-${version}
30use_zip             yes
31
32checksums           md5     b0f9daa278d9996bc742277126831001 \
33                    rmd160  4552fa7f20de373426b9adb27f758efb4536fcf6 \
34                    sha256  b0b294f435c6e6d2d4a80badf57d92cb66814dfe21e644a521901209e6a3f8ae
35
36python.versions     26 27 32 33 34
37
38if {${subport} ne ${name}} {
39    set py_major [string index ${python.version} 0]
40
41    # Python 3: use different distfile
42    if { ${py_major} > 2 } {
43        distname \
44            pyke${py_major}-${version}
45
46        checksums \
47            md5     a7d12d66d4c2ec12576a8187d3001384 \
48            rmd160  101c41062a8d7d9fd3ea08e6c18a3f2cdeb180a8 \
49            sha256  b877b390e70a2eacc01d97c3a992fde947276afc2798ca3ac6c6f74c796cb6dc
50    }
51}