# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name py27-gobject platforms darwin set my_name pygobject version 2.28.6 set branch [join [lrange [split ${version} .] 0 1] .] categories python gnome license LGPL-2.1+ maintainers mcalhoun jwa openmaintainer description Python bindings for GObject. long_description \ PyGObject provides a convenient wrapper for the GObject+ library \ for use in Python programs, and takes care of many of the boring details \ such as managing memory and type casting. \ When combined with PyGTK, PyORBit and gnome-python, \ it can be used to write full featured Gnome applications. homepage http://www.pygtk.org/ master_sites gnome:sources/${my_name}/${branch}/ distname ${my_name}-${version} use_bzip2 yes dist_subdir py-gobject checksums rmd160 e4531facd5e73cfcb077d81ff87292cf142cbfff \ sha256 e4bfe017fa845940184c82a4d8949db3414cb29dfc84815fb763697dc85bdcee depends_build port:pkgconfig depends_lib path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \ port:libxslt \ port:gettext \ port:libiconv \ port:libffi \ port:python27 patchfiles patch-gio_gio-types.defs set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7 configure.pre_args-delete --prefix=${prefix} configure.pre_args-append --prefix=${python_prefix} configure.args-append \ --includedir=${python_prefix}/include/python2.7 \ --disable-introspection configure.python ${prefix}/bin/python2.7 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}27" # devhelp requires gtk-doc/html 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}27.devhelp system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}27" } livecheck.type gnome livecheck.name ${my_name} livecheck.regex {LATEST-IS-(2\.\d*[02468](?:\.\d+)*)}