source: trunk/dports/gnome/gnumeric/Portfile @ 133734

Last change on this file since 133734 was 133734, checked in by devans@…, 5 years ago

gnumeric: update to version 1.12.21.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# -*- 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
2# $Id: Portfile 133734 2015-03-09 22:06:27Z devans@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.0
6PortGroup           gobject_introspection 1.0
7
8name                gnumeric
9version             1.12.21
10set branch          [join [lrange [split ${version} .] 0 1] .]
11
12license             GPL-2+
13maintainers         devans openmaintainer
14categories          gnome math science
15platforms           darwin
16
17description         A powerful Gtk3 based spreadsheet with Excel, ODF, R and Python support.
18long_description    A powerful Gtk3 based spreadsheet that features full Excel function \
19                    and file compatibility and additional functions not found in Excel, \
20                    and statistics operations based on R. Functionality can be extended \
21                    with Python and plugins. Other file compatibility includes OASIS ODF, \
22                    Quattro Pro, Psion 5, Paradox DB, and more (see homepage). GDA \
23                    database support is available with the +database variant.
24
25homepage            http://www.gnumeric.org/
26master_sites        gnome:sources/${name}/${branch}/
27use_xz              yes
28
29checksums           rmd160  293dcc0b97c4fc63e900572b0c41116806facb26 \
30                    sha256  6eed42120babb7b2a857115f2ad6320bf255c7bd71a939344e5a6df744a09ef4
31
32depends_build       port:gnome-doc-utils \
33                    port:intltool \
34                    port:pkgconfig
35
36# update-desktop-database is provided by desktop-file-utils
37
38depends_lib         port:desktop-file-utils \
39                    port:goffice \
40                    port:psiconv \
41                    port:pxlib \
42                    port:perl5.16
43
44patchfiles          patch-configure.ac.diff
45
46gobject_introspection yes
47
48# autoreconf to reconfigure using our intltool.m4
49
50use_autoreconf      yes
51autoreconf.args     -fvi
52
53configure.perl      ${prefix}/bin/perl5.16
54
55configure.args      --disable-silent-rules \
56                    --disable-schemas-compile \
57                    --without-gda \
58                    --without-python
59
60variant database description {builds with support for GDA database} {
61    depends_lib-append        port:libgda5
62    configure.args-replace    --without-gda --with-gda
63}
64
65variant python27 description {Build Python plugin loader using python 2.7} {
66    configure.python          ${prefix}/bin/python2.7
67    configure.args-replace    --without-python --with-python
68    depends_lib-append        port:py27-gobject3
69    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
70    configure.pkg_config_path ${python_framework}/lib/pkgconfig
71}
72
73default_variants +python27
74
75post-activate {
76    system "${prefix}/bin/scrollkeeper-update"
77    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
78# gtk3 provides gtk-update-icon-cache-3.0
79    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
80    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
81}
82
83livecheck.type  gnome
84
85# yelp is currently not available in a +quartz environment due to dependency issues,
86# see #39898 #40282 #40116
87notes \
88"Recommended supplementary ports:
89    gnome-themes-standard  provides the default Gnome Adwaita theme
90    yelp                   provides a help browser for Gnome apps"
Note: See TracBrowser for help on using the repository browser.