Ticket #39738: Portfile-gnumeric.8.diff

File Portfile-gnumeric.8.diff, 4.5 KB (added by c.herbig@…, 11 years ago)

Tidy based on last official gnumeric portfile revisions

  • Portfile

    old new  
    44PortSystem          1.0
    55
    66name                gnumeric
    7 version             1.10.17
    8 revision            4
     7version             1.12.4
    98set branch          [join [lrange [split ${version} .] 0 1] .]
    109
    11 license             GPL-2
     10license             GPL-2+
    1211maintainers         nomaintainer
    1312categories          gnome math
    1413platforms           darwin
    1514
    16 description         A spreadsheet with GNOME support.
    17 long_description    ${description}
     15description         A powerful Gtk3 based spreadsheet with Excel, R and Python support.
     16long_description    A powerful Gtk3 based spreadsheet that features full Excel function and file \
     17                    compatibility, additional functions not found in Excel, statisticts operations \
     18                    with support for R, and Python plugins. Has some ODF support.
    1819
    1920homepage            http://projects.gnome.org/gnumeric/
    2021master_sites        gnome:sources/${name}/${branch}/
    2122use_xz              yes
    2223
    23 checksums           sha256  8f105a10dc0dd47e14df2879591d2f28482fd03809fa95977dd4d1470a02f963
     24checksums           sha256  562e17d8b56f4587e33f54adff89a65ede6e6e0c57bcd561589453d8edae80bd \
     25                    rmd160  e3540631bdc8827edfa7ecec6a62fd8bcf06399f
    2426
    2527depends_build       port:gnome-doc-utils \
    2628                    port:intltool \
    2729                    port:pkgconfig
    2830
    29 depends_lib         port:desktop-file-utils \
    30                     port:rarian \
    31                     port:goffice08 \
    32                     port:libglade2 \
    33                     port:libpng
     31depends_lib         port:goffice
    3432
    35 depends_run         port:yelp
    36 
    37 configure.args      --disable-schemas-install \
    38                     --disable-schemas-compile \
     33configure.args      --disable-schemas-compile \
    3934                    --without-gda \
    4035                    --without-paradox \
    4136                    --without-psiconv
    4237
    43 variant python25 conflicts python26 python27 description {Use python 2.5} {
    44     configure.python          ${prefix}/bin/python2.5
    45     depends_lib-append        port:py25-gobject
    46     set python_framework      ${frameworks_dir}/Python.framework/Versions/2.5
    47     configure.pkg_config_path ${python_framework}/lib/pkgconfig
     38
     39variant python25 conflicts python26 python27 description {Use python 2.5 - obsolete} {
     40# marked as obsolete on 7/28/2013. Consider removing variant after sufficient time.
     41
     42    pre-fetch {
     43        ui_error "Gnumeric 1.12.x must have at least python26. Please consider upgrading."
     44        return -code error
     45    }
    4846}
    4947
    5048variant python26 conflicts python25 python27 description {Use python 2.6} {
    5149    configure.python          ${prefix}/bin/python2.6
    52     depends_lib-append        port:py26-gobject
     50    depends_lib-append        port:py26-gobject3
    5351    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
    5452    configure.pkg_config_path ${python_framework}/lib/pkgconfig
    5553}
    5654
    5755variant python27 conflicts python25 python26 description {Use python 2.7} {
    5856    configure.python          ${prefix}/bin/python2.7
    59     depends_lib-append        port:py27-gobject
     57    depends_lib-append        port:py27-gobject3
    6058    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
    6159    configure.pkg_config_path ${python_framework}/lib/pkgconfig
    6260}
     
    6563    default_variants +python27
    6664}
    6765
    68 configure.cflags-append "-std=gnu89"
    69 
    70 # provides both gconf and gsettings schemas
    7166
    7267post-activate {
    73     system "${prefix}/bin/scrollkeeper-update"
    74     system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    75     system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    76     system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
    77         gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
    78     system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
     68    catch {system "${prefix}/bin/scrollkeeper-update"}
     69    catch {system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"}
     70    catch {system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"}
     71    catch {system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"}
    7972}
    8073
    8174livecheck.type  gnome
     75
     76notes \
     77"Recommended supplementary ports:
     78    gnome-themes-standard  provides the default Gnome Adwaita theme
     79    yelp                   provides a help browser for Gnome apps"