# -*- 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 pessulus version 2.30.4 revision 2 license GPL-2+ set branch [join [lrange [split ${version} .] 0 1] .] categories gnome python platforms darwin maintainers nomaintainer description A lockdown editor for GNOME. long_description \ pessulus enables administrators to set mandatory settings in GConf. \ The users can not change these settings. Use of pessulus can be \ useful on computers that are open to use by everyone, e.g. in an \ internet cafe. homepage http://library.gnome.org/admin/system-admin-guide/stable/lockdown.html master_sites gnome:sources/${name}/${branch}/ checksums md5 3a66250af602b8baf378c9cf28b5b8ce \ sha1 0b8cd8e1e7ca65cfb3008f44c5cb3c126c010ea4 \ rmd160 c0040e873455d43afc544364ca172d6bb70e73b0 supported_archs noarch use_bzip2 yes depends_build port:pkgconfig \ port:intltool depends_lib port:desktop-file-utils \ port:gconf \ port:gnome-python-desktop patchfiles patch-configure.diff \ patch-Makefile.in.diff \ patch-data-Makefile.in.diff variant python25 conflicts python26 python27 description {Use python 2.5} { configure.python ${prefix}/bin/python2.5 depends_lib-append port:py25-pygtk set python_framework ${frameworks_dir}/Python.framework/Versions/2.5 configure.pkg_config_path ${python_framework}/lib/pkgconfig } variant python26 conflicts python25 python27 description {Use python 2.6} { configure.python ${prefix}/bin/python2.6 depends_lib-append port:py26-pygtk set python_framework ${frameworks_dir}/Python.framework/Versions/2.6 configure.pkg_config_path ${python_framework}/lib/pkgconfig } variant python27 conflicts python25 python26 description {Use python 2.7} { configure.python ${prefix}/bin/python2.7 depends_lib-append port:py27-pygtk set python_framework ${frameworks_dir}/Python.framework/Versions/2.7 configure.pkg_config_path ${python_framework}/lib/pkgconfig } if {![variant_isset python25] && ![variant_isset python26]} { default_variants +python27 } post-destroot { file rename ${destroot}${prefix}/bin/pessulus.py ${destroot}${prefix}/bin/pessulus } post-activate { system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" } livecheck.type gnome