Ticket #40338: Portfile-gnumeric.diff

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

    old new  
    44PortSystem          1.0
    55
    66name                gnumeric
    7 version             1.12.4
     7version             1.12.7
    88set branch          [join [lrange [split ${version} .] 0 1] .]
    99
    1010license             GPL-2+
    11 maintainers         nomaintainer
    12 categories          gnome math
     11maintainers         me.com:c.herbig openmaintainer
     12categories          gnome math science
    1313platforms           darwin
    1414
    15 description         A powerful Gtk3 based spreadsheet with Excel, R and Python support.
    16 long_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.
     15description         A powerful Gtk3 based spreadsheet with Excel, ODF, R and Python support.
     16long_description    A powerful Gtk3 based spreadsheet that features full Excel function \
     17                    and file compatibility and additional functions not found in Excel, \
     18                    and statistics operations based on R. Functionality can be extended \
     19                    with Python and plugins. Other file compatibility includes OASIS ODF, \
     20                    Quattro Pro, Psion 5, Paradox DB, and more (see homepage). GDA \
     21                    database support is available with the +database variant.
    1922
    2023homepage            http://projects.gnome.org/gnumeric/
    2124master_sites        gnome:sources/${name}/${branch}/
    2225use_xz              yes
    2326
    24 checksums           sha256  562e17d8b56f4587e33f54adff89a65ede6e6e0c57bcd561589453d8edae80bd \
    25                     rmd160  e3540631bdc8827edfa7ecec6a62fd8bcf06399f
     27checksums           sha256  5de9cca87efb2ea190bcddf57bd83a34e7f9580f5b7c92c6757707d1164748ef \
     28                    rmd160  c59ab9c79bf152afe54705a82fdde3c247c49667
    2629
    2730depends_build       port:gnome-doc-utils \
    2831                    port:intltool \
    2932                    port:pkgconfig
    3033
    31 depends_lib         port:goffice
     34depends_lib         port:goffice \
     35                    port:psiconv \
     36                    port:pxlib
    3237
    3338configure.args      --disable-schemas-compile \
    34                     --without-gda \
    35                     --without-paradox \
    36                     --without-psiconv \
    37                     --enable-introspection
     39                    --enable-introspection \
     40                    --without-gda
    3841
    3942
    40 variant python25 conflicts python26 python27 description {Use python 2.5 - obsolete} {
    41 # marked as obsolete on 7/28/2013. Consider removing variant after sufficient time.
    42 
    43     pre-fetch {
    44         ui_error "Gnumeric 1.12.x must have at least python26. Please consider upgrading."
    45         return -code error
    46     }
     43variant database description {builds with support for GDA database} {
     44    depends_lib-append        port:libgda5
     45    configure.args-replace    --without-gda --with-gda
    4746}
    4847
    49 variant python26 conflicts python25 python27 description {Use python 2.6} {
     48variant python26 conflicts python27 description {Use python 2.6} {
    5049    configure.python          ${prefix}/bin/python2.6
    5150    depends_lib-append        port:py26-gobject3
    5251    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
    5352    configure.pkg_config_path ${python_framework}/lib/pkgconfig
    5453}
    5554
    56 variant python27 conflicts python25 python26 description {Use python 2.7} {
     55variant python27 conflicts python26 description {Use python 2.7} {
    5756    configure.python          ${prefix}/bin/python2.7
    5857    depends_lib-append        port:py27-gobject3
    5958    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
    6059    configure.pkg_config_path ${python_framework}/lib/pkgconfig
    6160}
    6261
    63 if {![variant_isset python25] && ![variant_isset python26]} {
     62if {![variant_isset python26]} {
    6463    default_variants +python27
    6564}
    6665
     66if {[variant_isset python25]} {
     67# variant +python25 was declared obsolete on 7/28/2013
     68    ui_error "Gnumeric python needs python 2.6 or 2.7, please consider reinstalling."
     69    return -code error
     70}
    6771
    6872post-activate {
    6973    catch {system "${prefix}/bin/scrollkeeper-update"}
     
    7478
    7579livecheck.type  gnome
    7680
     81# yelp is currently not available in a +quartz environment due to dependency issues,
     82# see #39898 #40282 #40116
    7783notes \
    7884"Recommended supplementary ports:
    7985    gnome-themes-standard  provides the default Gnome Adwaita theme