Revision: 74426 http://trac.macports.org/changeset/74426 Author: dports@macports.org Date: 2010-12-16 17:34:21 -0800 (Thu, 16 Dec 2010) Log Message: ----------- gnucash-devel: update to unstable-branch release 2.3.17 (instead of a svn snapshot) * copy over most of the gnucash portfile as this one is out of date * depend on guile 1.8 instead of 1.6 Modified Paths: -------------- trunk/dports/gnome/gnucash-devel/Portfile Modified: trunk/dports/gnome/gnucash-devel/Portfile =================================================================== --- trunk/dports/gnome/gnucash-devel/Portfile 2010-12-17 00:58:21 UTC (rev 74425) +++ trunk/dports/gnome/gnucash-devel/Portfile 2010-12-17 01:34:21 UTC (rev 74426) @@ -1,96 +1,124 @@ +# -*- 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$ PortSystem 1.0 + name gnucash-devel -svn.revision 16555 - # see http://svn.gnucash.org/trac/timeline -version 2.2.99.svn-${svn.revision} -#version 2.1.5 -#revision 0 +set my_name gnucash categories gnome x11 +maintainers nomaintainer platforms darwin -maintainers nomaintainer -description financial-accounting software + +version 2.3.17 +set branch [join [lrange [split ${version} .] 0 1] .] + +description a personal and small-business financial-accounting software + long_description GnuCash is a personal and small-business \ - financial-accounting software. -- \ - gnucash-devel fetches the current developer version, \ - then tries to build and install it. This \ - may or may not work. It cannot be installed along the \ - regular (stable) version. If you want to try it, it is \ - recommended that you `port deactivate gnucash', then \ - `port install gnucash-devel', so that you can go back \ - to a working copy in case anything goes wrong. + financial-accounting software. -- gnucash-devel \ + installs a version from the development (unstable) \ + branch. It cannot be installed along the regular \ + (stable) version. If you want to try it, it is \ + recommended that you `port deactivate gnucash', then \ + `port install gnucash-devel', so that you can go \ + back to a working copy in case anything goes wrong. homepage http://www.gnucash.org/ +master_sites sourceforge:${my_name} \ + http://www.gnucash.org/pub/gnucash/sources/unstable/${branch}.x/ -depends_lib lib:XML/Parser.pm:p5-xml-parser \ - path:lib/pkgconfig/glib-2.0.pc:glib2 \ - port:gconf \ - port:guile \ - port:slib \ - port:slib-guile \ - lib:libpopt:popt \ - lib:libgnomeui:libgnomeui \ - lib:libgnomeprintui:libgnomeprintui \ - lib:libgtkhtml-3:libgtkhtml3 \ - lib:libgsf:libgsf \ - lib:libgoffice-0.3:goffice03 \ - lib:aqbanking:aqbanking \ - lib:libofx:libofx \ - lib:Finance/Quote.pm:p5-finance-quote \ - port:gnucash-docs -depends_build bin:glibtoolize:libtool port:automake -depends_run port:evince +dist_subdir ${my_name} +distname ${my_name}-${version} +use_bzip2 yes -#master_sites http://www.gnucash.org/pub/gnucash/sources/unstable/2.3.x/ -#distname gnucash-${version} -##worksrcdir ${distname}. -# # this was a packaging bug in 2.1.0 -#use_bzip2 yes -#checksums md5 7dfc9a46eb49b744fb7a8c543ef9cccc -# # gpg signature for 2.1.5 verified +checksums md5 236546487a8ad138f22cc3bd72c6ed6d \ + sha1 400fc4762e67fea8a8bd85217f0d176d546016ca \ + rmd160 ae09af6150a4eca5dae72d49f1011eb86a497ea4 -fetch.type svn -svn.url http://svn.gnucash.org/repo/gnucash/trunk/ -distname trunk +depends_build port:pkgconfig \ + port:intltool \ + port:libtool -pre-configure { - system "cd ${worksrcpath} && LIBTOOLIZE=glibtoolize ./autogen.sh" -} +depends_lib port:gconf \ + port:slib-guile \ + port:libgnomeui \ + port:libgnomeprintui \ + port:libgtkhtml3 \ + port:goffice \ + port:aqbanking \ + port:p5-finance-quote -configure.args --disable-glibtest --disable-debug --disable-profile \ - --disable-dependency-tracking --enable-hbci --enable-ofx +depends_run port:evince -default_variants +guile16 +# aqbanking and libgtkhtml3 are not universal +universal_variant no -variant without_hbci { - depends_lib-delete lib:aqbanking:aqbanking - configure.args-delete --enable-hbci - configure.args-append --disable-hbci +configure.args --disable-glibtest \ + --disable-dependency-tracking --enable-hbci --enable-ofx + +variant without_quotes description {Does not depend on building p5-finance-quote} { + depends_lib-delete port:p5-finance-quote } -variant without_ofx { - depends_lib-delete lib:libofx:libofx - configure.args-delete --enable-ofx - configure.args-append --disable-ofx +variant without_hbci description {Disables HBCI support} { + depends_lib-delete port:aqbanking + configure.args-delete --enable-hbci + configure.args-append --disable-hbci } -variant without_quotes { - depends_lib-delete lib:Finance/Quote.pm:p5-finance-quote +variant without_ofx description {Disables ofx support} { + depends_lib-delete port:libofx + configure.args-delete --enable-ofx + configure.args-append --disable-ofx } -variant without_docs { - depends_lib-delete port:gnucash-docs +variant no_x11 { + depends_run-delete port:evince + patchfiles-append patch-configure-nox11.diff } -variant guile16 { - depends_lib-delete port:guile - depends_lib-delete port:slib-guile - depends_lib-append port:guile16 \ - port:slib-guile16 +set gnucash_register_schema ${prefix}/libexec/${my_name}-gconf-schema.sh + +post-destroot { + # We need to register some stuff to gconf. Just putting the + # schema files to the right place is not enough. + # Setup ${prefix}/libexec/${my_name}-gconf-schema.sh to handle this + + set schemafiles "" + fs-traverse schema ${destroot}${prefix}/etc/gconf/schemas { + if {[file isfile $schema]} { + # The 'string range' bit is to remove the initial ${destroot} stuff + append schemafiles " [string range $schema [string length ${destroot}] end]" + } + } + + if {[string length $schemafiles] > 0} { + set fh [open ${destroot}${gnucash_register_schema} w] + puts $fh "#!/bin/sh" + puts $fh "env GCONF_CONFIG_SOURCE=`${prefix}/bin/gconftool-2 --get-default-source` ${prefix}/bin/gconftool-2 --makefile-install-rule $schemafiles" + close $fh + file attributes ${destroot}${gnucash_register_schema} -permissions 0755 + } } -# -# disable livecheck for svn based port -# +post-activate { + if {[file exists ${gnucash_register_schema}]} { + system "${gnucash_register_schema}" + } -livecheck.type none + system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" + + if {[variant_isset no_x11]} { + ui_warn "When you run gnucash, if it pops up a window saying:" + ui_warn " An error occurred while loading or saving configuration" + ui_warn " information for gnucash." + ui_warn "it is probably because it cannot connect to" + ui_warn "the DBus server. Either place the following in your login" + ui_warn "shell profile:" + ui_warn " eval `dbus-launch --auto-syntax`" + ui_warn "or invoke gnucash via 'dbus-launch gnucash'. Note that with" + ui_warn "the latter alternative you may end up with a stray dbus" + ui_warn "process after you quit gnucash." + } +} + +livecheck.regex "/${my_name} .*/(\[0-9\]+\\.\[0-9\]*\[13579\]\\.\[0-9\]+)/"
participants (1)
-
dports@macports.org