source: trunk/dports/gnome/gnumeric/Portfile

Last change on this file was 151928, checked in by devans@…, 15 months ago

gnumeric: use perl5.24 (#52081).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 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 151928 2016-08-24 05:28:21Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6PortGroup           gobject_introspection 1.0
7
8name                gnumeric
9version             1.12.32
10revision            1
11set branch          [join [lrange [split ${version} .] 0 1] .]
12
13license             GPL-2+
14maintainers         devans openmaintainer
15categories          gnome math science
16platforms           darwin
17
18description         A powerful Gtk3 based spreadsheet with Excel, ODF, R and Python support.
19long_description    A powerful Gtk3 based spreadsheet that features full Excel function \
20                    and file compatibility and additional functions not found in Excel, \
21                    and statistics operations based on R. Functionality can be extended \
22                    with Python and plugins. Other file compatibility includes OASIS ODF, \
23                    Quattro Pro, Psion 5, Paradox DB, and more (see homepage). GDA \
24                    database support is available with the +database variant.
25
26homepage            http://www.gnumeric.org/
27master_sites        gnome:sources/${name}/${branch}/
28use_xz              yes
29
30checksums           rmd160  2d9b3b0daf535ef598716f362b86f2631453c0aa \
31                    sha256  a07bc83e2adaeb94bfa2c737c9a19d90381a19cb203dd7c4d5f7d6cfdbee6de8
32
33# set pbranch to desired perl version
34# currently 5.24 (#52081)
35set pbranch         5.24
36
37depends_build       port:pkgconfig \
38                    port:intltool \
39                    port:gtk-doc \
40                    port:autoconf \
41                    port:automake \
42                    port:libtool \
43                    port:bison
44
45# update-desktop-database is provided by desktop-file-utils
46# rarian is needed for scrollkeeper-update.
47
48depends_lib         port:desktop-file-utils \
49                    port:rarian \
50                    port:gtk3 \
51                    port:goffice \
52                    port:psiconv \
53                    port:pxlib \
54                    port:perl${pbranch}
55
56depends_run         port:gnome-themes-standard
57
58gobject_introspection yes
59
60# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
61
62post-patch {
63    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
64}
65
66configure.cmd       ./autogen.sh
67
68configure.perl      ${prefix}/bin/perl${pbranch}
69
70configure.args      --disable-silent-rules \
71                    --disable-schemas-compile \
72                    --without-gda \
73                    --without-python \
74                    ac_cv_prog_AWK=/usr/bin/awk
75
76variant quartz {}
77
78if {[variant_isset quartz]} {
79    require_active_variants gtk3 quartz
80    require_active_variants goffice quartz
81} else {
82    require_active_variants gtk3 x11
83    require_active_variants goffice "" quartz
84    depends_run-append      port:yelp
85}
86
87variant database description {builds with support for GDA database} {
88    depends_lib-append        port:libgda5
89    configure.args-replace    --without-gda --with-gda
90}
91
92variant python27 description {Build Python plugin loader using python 2.7} {
93    configure.python          ${prefix}/bin/python2.7
94    configure.args-replace    --without-python --with-python
95    depends_lib-append        port:py27-gobject3
96    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
97    configure.pkg_config_path ${python_framework}/lib/pkgconfig
98}
99
100default_variants +python27
101
102post-activate {
103    system "${prefix}/bin/scrollkeeper-update"
104    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
105# gtk3 provides gtk-update-icon-cache-3.0
106    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
107    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
108}
109
110livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.