Ticket #39738: Portfile-gnumeric.7.diff
File Portfile-gnumeric.7.diff, 5.3 KB (added by c.herbig@…, 11 years ago) |
---|
-
Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name gnumeric 7 version 1.10.17 8 revision 4 7 version 1.12.4 9 8 set branch [join [lrange [split ${version} .] 0 1] .] 10 9 11 license GPL-2 10 license GPL-2+ 12 11 maintainers nomaintainer 13 12 categories gnome math 14 13 platforms darwin 15 14 16 description A spreadsheet with GNOME support. 17 long_description ${description} 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. 18 19 19 20 homepage http://projects.gnome.org/gnumeric/ 20 21 master_sites gnome:sources/${name}/${branch}/ 21 22 use_xz yes 22 23 23 checksums sha256 8f105a10dc0dd47e14df2879591d2f28482fd03809fa95977dd4d1470a02f963 24 checksums sha256 562e17d8b56f4587e33f54adff89a65ede6e6e0c57bcd561589453d8edae80bd \ 25 rmd160 e3540631bdc8827edfa7ecec6a62fd8bcf06399f 24 26 25 27 depends_build port:gnome-doc-utils \ 26 28 port:intltool \ 27 29 port:pkgconfig 28 30 29 depends_lib port:desktop-file-utils \ 30 port:rarian \ 31 port:goffice08 \ 32 port:libglade2 \ 33 port:libpng 31 depends_lib port:goffice \ 32 port:gtk3 34 33 35 depends_run port:yelp 36 37 configure.args --disable-schemas-install \ 38 --disable-schemas-compile \ 34 configure.args --disable-schemas-compile \ 39 35 --without-gda \ 40 36 --without-paradox \ 41 37 --without-psiconv 42 38 43 variant python25 conflicts python26 python27 description {Use python 2.5} { 44 configure.python ${prefix}/bin/python2.5 45 depends_lib-append port:py25-gobject 46 set python_framework ${frameworks_dir}/Python.framework/Versions/2.5 47 configure.pkg_config_path ${python_framework}/lib/pkgconfig 39 40 variant python25 conflicts python26 python27 python33 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 } 48 47 } 49 48 50 variant python26 conflicts python25 python27 description {Use python 2.6} {49 variant python26 conflicts python25 python27 python33 description {Use python 2.6} { 51 50 configure.python ${prefix}/bin/python2.6 52 depends_lib-append port:py26-gobject 51 depends_lib-append port:py26-gobject3 53 52 set python_framework ${frameworks_dir}/Python.framework/Versions/2.6 54 53 configure.pkg_config_path ${python_framework}/lib/pkgconfig 55 54 } 56 55 57 variant python27 conflicts python25 python26 description {Use python 2.7} {56 variant python27 conflicts python25 python26 python33 description {Use python 2.7} { 58 57 configure.python ${prefix}/bin/python2.7 59 depends_lib-append port:py27-gobject 58 depends_lib-append port:py27-gobject3 60 59 set python_framework ${frameworks_dir}/Python.framework/Versions/2.7 61 60 configure.pkg_config_path ${python_framework}/lib/pkgconfig 62 61 } 63 62 64 if {![variant_isset python25] && ![variant_isset python26]} { 65 default_variants +python27 63 variant python33 conflicts python25 python26 python27 description {Use python 3.3 - experimental!} { 64 configure.python ${prefix}/bin/python3.3 65 depends_lib-append port:py33-gobject3 66 set python_framework ${frameworks_dir}/Python.framework/Versions/3.3 67 configure.pkg_config_path ${python_framework}/lib/pkgconfig 66 68 } 67 69 68 configure.cflags-append "-std=gnu89" 70 if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python33]} { 71 default_variants +python27 72 } 69 73 70 # provides both gconf and gsettings schemas 74 # the configure phase seems to be smart enough to detect this on its own… 75 #configure.cflags-append "-std=gnu89" 71 76 72 77 post-activate { 73 system "${prefix}/bin/scrollkeeper-update" 74 system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" 75 system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" 76 system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \ 77 gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas" 78 system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" 78 catch {system "${prefix}/bin/scrollkeeper-update"} 79 catch {system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"} 80 catch {system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"} 81 catch {system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"} 79 82 } 80 83 81 84 livecheck.type gnome 85 86 notes \ 87 "Recommended supplementary ports: 88 gnome-themes-standard provides the default Gnome Adwaita theme 89 yelp provides a help browser for Gnome apps"