# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name py26-pyclutter set my_name pyclutter version 1.3.2 distname ${my_name}-${version} set branch [string range $version 0 [expr [string last "." $version] - 1]] categories python graphics license LGPL-2.1+ description Python bindings for Clutter 1.0. long_description This port contains the Python modules that allow you \ to use the Clutter toolkit in Python programs. maintainers nodamage.com:nodamage openmaintainer platforms darwin homepage http://www.clutter-project.org/ master_sites http://www.clutter-project.org/sources/${my_name}/${branch}/ dist_subdir py-pyclutter checksums md5 eee6114b4201d71f04b00e36c06e5e9b \ sha1 dfdbb1125d2b961f0f65de701e6413ed357ccad5 \ rmd160 5bea7568022f4b9172a1e4fc2652e5d0263b78a9 depends_build \ port:pkgconfig \ port:libtool depends_lib \ port:py26-gst-python \ port:clutter set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 configure.pre_args --prefix=${python_prefix} configure.args --includedir=${python_prefix}/include/python2.6 \ --enable-docs configure.pkg_config_path ${python_prefix}/lib/pkgconfig configure.python ${prefix}/bin/python2.6 configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0 post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ ${destroot}${docdir} xinstall -d ${destroot}${prefix}/share/gtk-doc/html system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26" # devhelp requires gtk-doc directory name and .devhelp file name (less the .devhelp) to match file rename ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}.devhelp \ ${destroot}${python_prefix}/share/gtk-doc/html/${my_name}/${my_name}26.devhelp system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26" } livecheck.type regex livecheck.url ${master_sites} livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"