Ticket #43241: Portfile_gnumeric.new

File Portfile_gnumeric.new, 3.7 KB (added by jwhowse4, 11 years ago)

portfile for newer build

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 118608 2014-04-05 21:05:53Z devans@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.0
6
7name                gnumeric
8version             1.12.8
9revision            2
10set branch          [join [lrange [split ${version} .] 0 1] .]
11
12license             GPL-2+
13maintainers         me.com:c.herbig 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            https://wiki.gnome.org/Apps/Gnumeric
26master_sites        gnome:sources/${name}/${branch}/
27use_xz              yes
28
29checksums           sha256  02688fb6c32c28db2eb4e9a8e012cf1386f4f3a18b4c94f5ecdd13342521ec76 \
30                    rmd160  7d803eafc37fb5fd7cc4ba802f53440228c0843c
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:gobject-introspection \
40                    port:goffice \
41                    port:psiconv \
42                    port:pxlib
43
44# autoreconf to reconfigure using our intltool.m4
45
46use_autoreconf      yes
47autoreconf.args     -fvi
48
49configure.args      --disable-silent-rules \
50                    --disable-schemas-compile \
51                    --enable-introspection \
52                    --without-gda
53
54configure.cflags-append \
55                    -Wno-error=format-nonliteral
56
57variant database description {builds with support for GDA database} {
58    depends_lib-append        port:libgda5
59    configure.args-replace    --without-gda --with-gda
60}
61
62variant python26 conflicts python27 description {Use python 2.6} {
63    configure.python          ${prefix}/bin/python2.6
64    depends_lib-append        port:py26-gobject3
65    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
66    configure.pkg_config_path ${python_framework}/lib/pkgconfig
67}
68
69variant python27 conflicts python26 description {Use python 2.7} {
70    configure.python          ${prefix}/bin/python2.7
71    depends_lib-append        port:py27-gobject3
72    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
73    configure.pkg_config_path ${python_framework}/lib/pkgconfig
74}
75
76if {![variant_isset python26]} {
77    default_variants +python27
78}
79
80post-activate {
81    catch {system "${prefix}/bin/scrollkeeper-update"}
82    catch {system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"}
83# gtk3 provides gtk-update-icon-cache-3.0
84    catch {system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"}
85    catch {system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"}
86}
87
88livecheck.type  gnome
89
90# yelp is currently not available in a +quartz environment due to dependency issues,
91# see #39898 #40282 #40116
92notes \
93"Recommended supplementary ports:
94    gnome-themes-standard  provides the default Gnome Adwaita theme
95    yelp                   provides a help browser for Gnome apps"