18b30338255fca86400af3e261e79fc89f2f5ef6~suv# -*- 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
18b30338255fca86400af3e261e79fc89f2f5ef6~suv# $Id: Portfile 125247 2014-09-11 17:01:30Z stromnov@macports.org $
18b30338255fca86400af3e261e79fc89f2f5ef6~suvPortSystem 1.0
18b30338255fca86400af3e261e79fc89f2f5ef6~suvPortGroup python 1.0
18b30338255fca86400af3e261e79fc89f2f5ef6~suvPortGroup select 1.0
335910282d5fc95360947b5feae498010374e381~suvname py26-cython
18b30338255fca86400af3e261e79fc89f2f5ef6~suvversion 0.21
18b30338255fca86400af3e261e79fc89f2f5ef6~suvcategories-append devel
18b30338255fca86400af3e261e79fc89f2f5ef6~suvplatforms darwin
18b30338255fca86400af3e261e79fc89f2f5ef6~suvlicense Apache-2
18b30338255fca86400af3e261e79fc89f2f5ef6~suvmaintainers stromnov openmaintainer
18b30338255fca86400af3e261e79fc89f2f5ef6~suvdescription A language for writing C extension modules for Python.
18b30338255fca86400af3e261e79fc89f2f5ef6~suvlong_description Cython is a language that makes writing C extensions for \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv the Python language as easy as Python itself. Cython is \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv based on the well-known Pyrex, but supports more cutting \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv edge functionality and optimizations
18b30338255fca86400af3e261e79fc89f2f5ef6~suvmaster_sites ${homepage}release/ \
18b30338255fca86400af3e261e79fc89f2f5ef6~suvdistname Cython-${version}
18b30338255fca86400af3e261e79fc89f2f5ef6~suvchecksums rmd160 f5944014c1e4dccb8ec23af96efc05c137917371 \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv sha256 0cd5787fb3f1eaf8326b21bdfcb90aabd3eca7c214c5b7b503fbb82da97bbaa0
18b30338255fca86400af3e261e79fc89f2f5ef6~suvif {${name} eq ${subport}} {
18b30338255fca86400af3e261e79fc89f2f5ef6~suv revision 100
18b30338255fca86400af3e261e79fc89f2f5ef6~suv # Cython 0.21 requires Python 2.6+ or 3.3+
18b30338255fca86400af3e261e79fc89f2f5ef6~suv if {[lsearch {24 25 31 32} ${python.version}] != -1} {
18b30338255fca86400af3e261e79fc89f2f5ef6~suv version 0.20.2
18b30338255fca86400af3e261e79fc89f2f5ef6~suv revision 0
18b30338255fca86400af3e261e79fc89f2f5ef6~suv distname Cython-${version}
18b30338255fca86400af3e261e79fc89f2f5ef6~suv checksums rmd160 e78f1779077d6c8e266c9b42b85c8e9031a342d2 \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv sha256 ed13b606a2aeb5bd6c235f8ed6c9988c99d01a033d0d21d56137c13d5c7be63f
18b30338255fca86400af3e261e79fc89f2f5ef6~suv post-destroot {
18b30338255fca86400af3e261e79fc89f2f5ef6~suv if {${subport} eq "py24-cython" || ${subport} eq "py25-cython"} {
18b30338255fca86400af3e261e79fc89f2f5ef6~suv xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv extension_types.html index.html overview.html primes.c sharing.html \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv special_methods.html ${destroot}${prefix}/share/doc/${subport}
18b30338255fca86400af3e261e79fc89f2f5ef6~suv xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${subport}
18b30338255fca86400af3e261e79fc89f2f5ef6~suv xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/cython
18b30338255fca86400af3e261e79fc89f2f5ef6~suv xinstall -m 644 -W ${worksrcpath}/Doc About.html FAQ.html \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv extension_types.html index.html overview.html primes.c sharing.html \
18b30338255fca86400af3e261e79fc89f2f5ef6~suv special_methods.html ${destroot}${python.prefix}/share/doc/cython
18b30338255fca86400af3e261e79fc89f2f5ef6~suv xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt\
18b30338255fca86400af3e261e79fc89f2f5ef6~suv ToDo.txt USAGE.txt ${destroot}${python.prefix}/share/doc/cython
18b30338255fca86400af3e261e79fc89f2f5ef6~suv depends_run port:cython_select
18b30338255fca86400af3e261e79fc89f2f5ef6~suvTo make the Python ${python.branch} version of Cython the one that is run\
18b30338255fca86400af3e261e79fc89f2f5ef6~suvwhen you execute the commands without a version suffix, e.g. 'cython', run:
18b30338255fca86400af3e261e79fc89f2f5ef6~suvport select --set ${select.group} [file tail ${select.file}]
18b30338255fca86400af3e261e79fc89f2f5ef6~suv #livecheck.url [lindex ${master_sites} 0]
18b30338255fca86400af3e261e79fc89f2f5ef6~suv #livecheck.regex {Cython-(\d+(?:\.\d+)*)\.[tz]}