# $Id$ PortSystem 1.0 PortGroup python 1.0 name py-ctypes version 1.0.2 revision 2 platforms darwin maintainers nomaintainer license MIT description create and manipulate C data types in Python long_description ctypes is a Python package to create and manipulate C \ data types in Python, and to call functions in dynamic \ link libraries/shared dlls. It allows wrapping these \ libraries in pure Python. homepage http://starship.python.net/crew/theller/ctypes/ master_sites sourceforge:ctypes checksums md5 94ff7aa7f7f71b23bac8a98065d77743 \ sha1 7f77f2b507a50f292297831ee50e310037398e14 \ rmd160 f8b74c2f9b5646edc916565dd22c51d8819cd6b8 distname ctypes-${version} python.versions 24 if {$subport != $name} { depends_build-append port:pkgconfig depends_lib-append port:libffi patchfiles patch-setup.py.diff python.add_archflags no pre-build { build.env-append CFLAGS="[get_canonical_archflags cc] -D_DARWIN_C_SOURCE" \ CPPFLAGS="[exec ${prefix}/bin/pkg-config libffi --cflags]" } test.run yes test.cmd ${build.cmd} test.target test post-destroot { xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.CVS \ README.txt ${destroot}${prefix}/share/doc/${subport} } }