# $Id: Portfile 38077 2008-07-05 21:37:56Z ryandesign@macports.org $ PortSystem 1.0 name py-gobject set my_name pygobject version 2.14.1 set branch [join [lrange [split ${version} .] 0 1] .] categories python gnome maintainers nomaintainer 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 checksums md5 d403998bc0c5034b21bd75ae7b704f4a \ sha1 5904370097e24b54e71257e1ed0de062c5138d11 \ rmd160 086d96f059a7317f828e9b8265a9bf62420c3c1b depends_build port:pkgconfig depends_lib path:${prefix}/lib/pkgconfig/glib-2.0.pc:glib2 \ port:libxslt \ port:python24 configure.args --disable-glibtest configure.python ${prefix}/bin/python2.4 platform darwin 9 { post-patch { reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/gobject/Makefile.in } } test.run yes test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] test.target check post-destroot { set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ ${destroot}${docdir} } livecheck.check regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${my_name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}