# -*- 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$ PortSystem 1.0 name gnumeric version 1.12.4 set branch [join [lrange [split ${version} .] 0 1] .] license GPL-2+ maintainers nomaintainer categories gnome math platforms darwin description A powerful Gtk3 based spreadsheet with Excel, R and Python support. long_description A powerful Gtk3 based spreadsheet that features full Excel function and file \ compatibility, additional functions not found in Excel, statisticts operations \ with support for R, and Python plugins. Has some ODF support. homepage http://projects.gnome.org/gnumeric/ master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums sha256 562e17d8b56f4587e33f54adff89a65ede6e6e0c57bcd561589453d8edae80bd \ rmd160 e3540631bdc8827edfa7ecec6a62fd8bcf06399f depends_build port:gnome-doc-utils \ port:intltool \ port:pkgconfig depends_lib port:goffice configure.args --disable-schemas-compile \ --without-gda \ --without-paradox \ --without-psiconv \ --enable-introspection variant python25 conflicts python26 python27 description {Use python 2.5 - obsolete} { # marked as obsolete on 7/28/2013. Consider removing variant after sufficient time. pre-fetch { ui_error "Gnumeric 1.12.x must have at least python26. Please consider upgrading." return -code error } } variant python26 conflicts python25 python27 description {Use python 2.6} { configure.python ${prefix}/bin/python2.6 depends_lib-append port:py26-gobject3 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-gobject3 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-activate { catch {system "${prefix}/bin/scrollkeeper-update"} catch {system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"} catch {system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"} catch {system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"} } livecheck.type gnome notes \ "Recommended supplementary ports: gnome-themes-standard provides the default Gnome Adwaita theme yelp provides a help browser for Gnome apps"