# -*- 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 # $Id: Portfile 151751 2016-08-21 18:39:16Z devans@macports.org $ PortSystem 1.0 PortGroup active_variants 1.1 PortGroup gobject_introspection 1.0 name goffice description GOffice is a library of document-centric objects and utilities. long_description GOffice is a library of document-centric objects \ and utilities building on top of GLib and Gtk+ and \ used by software such as Gnumeric. maintainers devans openmaintainer categories gnome devel platforms darwin homepage http://www.gnumeric.org/ use_xz yes if {${name} eq ${subport}} { epoch 1 version 0.10.32 license {GPL-2 GPL-3} checksums rmd160 4887c569629f61d1dae72a2aacc71560bb4b4fd0 \ sha256 02b37da9f54fb92725b973875d1d2da49b54f6486eb03648fd1ea58e4a297ac3 depends_build port:pkgconfig \ port:intltool \ port:gtk-doc \ port:autoconf \ port:automake \ port:libtool depends_lib port:gtk3 \ port:libgsf \ port:librsvg \ port:libspectre \ port:libxslt \ port:ghostscript \ path:lib/pkgconfig/glib-2.0.pc:glib2 gobject_introspection yes # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh patchfiles-append patch-configure.ac.diff \ patch_quartz-goffice-goffice.c.diff configure.args-append \ --disable-silent-rules variant quartz {} if {[variant_isset quartz]} { require_active_variants gtk3 quartz x11 depends_lib-append port:gtk-osx-application-gtk3 } else { require_active_variants gtk3 x11 quartz } livecheck.type gnome } else { livecheck.type none } # Snapshot of goffice @0.8.17 for gnucash. # Can be removed once gnucash no longer needs this version. subport goffice08 { epoch 1 version 0.8.17 revision 2 checksums sha256 165070beb67b84580afe80a8a100b674a81d553ab791acd72ac0c655f4fadb15 \ rmd160 91d1df371c8164c8c5c9860c7c9c87b9fb69f6c3 license GPL-2 depends_build port:pkgconfig \ port:intltool \ port:gnome-common \ port:gtk-doc \ port:autoconf \ port:automake \ port:libtool depends_lib port:gtk2 \ port:gconf \ port:libgsf \ port:libxml2 \ port:pcre patchfiles-append patch-goffice-utils-regutf8.c.diff # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen08.sh ${worksrcpath}/autogen.sh } configure.cmd ./autogen.sh configure.args-append \ --enable-compile-warnings=minimum pre-activate { if {![catch {set installed [lindex [registry_active goffice] 0]}]} { set _version [lindex $installed 1] if {[vercmp $_version 0.10] < 0} { registry_deactivate_composite goffice "" [list ports_nodepcheck 1] } } } } set branch [join [lrange [split ${version} .] 0 1] .] master_sites gnome:sources/${name}/${branch}/