Ticket #40271: Portfile

File Portfile, 3.4 KB (added by c.herbig@…, 11 years ago)

My experimental gnumeric portfile

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 109236 2013-08-10 22:52:05Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                gnumeric
8version             1.12.6
9revision            1
10set branch          [join [lrange [split ${version} .] 0 1] .]
11
12license             GPL-2+
13maintainers         nomaintainer
14categories          gnome math
15platforms           darwin
16
17description         A powerful Gtk3 based spreadsheet with Excel, R and Python support.
18long_description    A powerful Gtk3 based spreadsheet that features full Excel function and file \
19                    compatibility, additional functions not found in Excel, statistics operations \
20                    with R, and Python plugins. Additional support for ODF, Psion, Paradox DB files.
21
22homepage            http://projects.gnome.org/gnumeric/
23master_sites        gnome:sources/${name}/${branch}/
24use_xz              yes
25
26checksums           sha256  73cce1979eac10bd248a46d0a702eeba57673c3e9a990356d246e687d0c7ce25 \
27                    rmd160  0a7d36e464029eeb16060cf7e5fe46c1cc0dbed1
28
29depends_build       port:gnome-doc-utils \
30                    port:intltool \
31                    port:pkgconfig
32
33depends_lib         port:goffice \
34                    port:psiconv \
35                    port:pxlib
36
37configure.args      --disable-schemas-compile \
38                    --without-gda \
39                    --without-paradox \
40                    --enable-introspection
41
42
43variant python25 conflicts python26 python27 description {Use python 2.5 - obsolete} {
44# marked as obsolete on 7/28/2013. Consider removing variant after sufficient time.
45
46    pre-fetch {
47        ui_error "Gnumeric python needs python 2.6 or 2.7, please consider reinstalling."
48        return -code error
49    }
50}
51
52variant python26 conflicts python25 python27 description {Use python 2.6} {
53    configure.python          ${prefix}/bin/python2.6
54    depends_lib-append        port:py26-gobject3
55    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.6
56    configure.pkg_config_path ${python_framework}/lib/pkgconfig
57}
58
59variant python27 conflicts python25 python26 description {Use python 2.7} {
60    configure.python          ${prefix}/bin/python2.7
61    depends_lib-append        port:py27-gobject3
62    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
63    configure.pkg_config_path ${python_framework}/lib/pkgconfig
64}
65
66if {![variant_isset python25] && ![variant_isset python26]} {
67    default_variants +python27
68}
69
70#variant gnomedb description {builds with support for legacy Gnome-DB} {
71#    depends_lib-append        port:libgnomedb
72#}
73
74variant database description {builds with support for GDA 5 database} {
75    configure.args-delete     --without-gda
76    depends_lib-append        path:lib/pkgconfig/libgda-5.0.pc:libgda5
77}
78
79post-activate {
80    catch {system "${prefix}/bin/scrollkeeper-update"}
81    catch {system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"}
82    catch {system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"}
83    catch {system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"}
84}
85
86livecheck.type  gnome
87
88notes \
89"Recommended supplementary ports:
90    gnome-themes-standard  provides the default Gnome Adwaita theme
91    yelp                   provides a help browser for Gnome apps"