maintainers {blair @blair}
description Python bindings to NVIDIA's Cg package
This project provides Python bindings to NVIDIA's Cg runtime \
library, enabling GPUs to be controlled from Python.
homepage https://launchpad.net/pycg
patchfiles patch-darwin.conf.in.diff \
if {${name} ne ${subport}} {
depends_build-append port:swig-python
depends_lib-append port:cg-toolkit \
port:py${python.version}-numpy
bzr.url lp:~callelejdfors/pycg/trunk
bzr.revision release-${version}
worksrcdir py-PyCg-${version}
file copy ${worksrcpath}/Darwin.conf.in ${worksrcpath}/Darwin.conf
reinplace "s|@CC@|${configure.compiler}|g" ${worksrcpath}/Darwin.conf
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Darwin.conf
reinplace "s|@PYTHON_BRANCH@|${python.branch}|g" ${worksrcpath}/Darwin.conf
set cgdir ${destroot}${python.pkgd}/Cg
file copy ${worksrcpath}/Cg.py ${cgdir}/__init__.py
file copy ${worksrcpath}/_Cg.so ${cgdir}/
foreach f {LICENSE README} {
file copy ${worksrcpath}/${f} \
${destroot}${prefix}/share/doc/${subport}
livecheck.url https://cheeseshop.python.org/pypi/fpconst/
livecheck.regex fpconst-(\[0-9\.\]+).tar.gz