# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 85731 2011-10-16 04:16:24Z dports@macports.org $ PortSystem 1.0 name gnome-mag version 0.16.3 revision 2 set branch [join [lrange [split ${version} .] 0 1] .] description GNOME magnifier. long_description ${description} maintainers nomaintainer categories gnome license LGPL-2+ platforms darwin homepage http://www.gnome.org/ master_sites gnome:sources/${name}/${branch}/ checksums md5 38b5fc0afe0e47e01e4669572850f463 \ sha1 90cf2f7ffd27344e392659ba97e1921a57012c1a \ rmd160 f1a137314a1d35de45e816c645a5e15c2524ce49 depends_build port:pkgconfig \ port:intltool \ port:gnome-doc-utils depends_lib port:at-spi \ port:gconf use_bzip2 yes patchfiles patch-configure.diff configure.args --enable-colorblind-applet=no \ --disable-schemas-install \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib variant colorblind description {Enable building of colorblind applet} { depends_lib-append port:libcolorblind \ port:py27-gnome \ port:gnome-python-desktop configure.args-delete --enable-colorblind-applet=no configure.python ${prefix}/bin/python2.7 set python_framework ${frameworks_dir}/Python.framework/Versions/2.7 configure.pkg_config_path ${python_framework}/lib/pkgconfig configure.env PATH=${python_framework}/bin:$env(PATH) } post-activate { system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true" system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \ gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas" } livecheck.type regex livecheck.url http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}