head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.8 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.6 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.4 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.2 pkgsrc-2011Q2-base:1.4 pkgsrc-2010Q3:1.2.0.30 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.28 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.26 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.2.0.24 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.2.0.22 pkgsrc-2009Q3-base:1.2 pkgsrc-2009Q2:1.2.0.20 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.18 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.16 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.14 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.12 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.10 pkgsrc-2008Q2-base:1.2 cwrapper:1.2.0.8 pkgsrc-2008Q1:1.2.0.6 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.4 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.2 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.1.0.8 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.6 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.4 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.2 pkgsrc-2006Q3-base:1.1; locks; strict; comment @# @; 1.4 date 2010.12.23.00.10.50; author wiz; state dead; branches; next 1.3; 1.3 date 2010.11.07.23.23.56; author wiz; state Exp; branches; next 1.2; 1.2 date 2007.07.19.19.35.04; author wiz; state Exp; branches; next 1.1; 1.1 date 2006.07.11.12.58.29; author wiz; state Exp; branches; next ; desc @@ 1.4 log @Update to 2.4.0: The GnuCash development team proudly announces GnuCash 2.4.0, the latest stable release of the GnuCash Free Accounting Software. With this new release series, GnuCash can use an SQL database using SQLite3, MySQL or PostgreSQL. It runs on GNU/Linux, *BSD, Solaris, Microsoft Windows and Mac OSX. WARNING: You should uninstall any earlier GnuCash version from your system prior to installing 2.4.0. Failing to do so may result in startup errors. In particular on Windows this may cause "Parse error: entry point not found" errors. Major changes in the 2.4.0 release include; * In addition to the XML backend, Gnucash can now use a SQLite3, MySQL or PostgreSQL database to store the data. This is a new implementation using libdbi. It supports all features including the business features. In order to build with this, add --enable-dbi to the configure command. In addition to the libdbi-dev package for your distribution, you will also need the appropriate DBD (libdbi driver) package for sqlite3, mysql or postgresql. (not enabled in pkgsrc due to lack of recent libdbi) * As a replacement for the current GtkHTML HTML engine used to display reports and graphs, Gnucash can use WebKit. WebKit is the engine used by Google Chrome on Windows and Safari on Apple. (enabled in pkgsrc) @ text @$NetBSD: patch-ab,v 1.3 2010/11/07 23:23:56 wiz Exp $ Some help for DragonFly. --- src/app-utils/gnc-ui-util.c.orig 2007-06-02 17:56:55.000000000 +0000 +++ src/app-utils/gnc-ui-util.c @@@@ -103,6 +103,14 @@@@ gnc_configure_account_separator (void) free(string); } +#if defined(__DragonFly__) +#define LC_CAST (char **) +#define LC_CAST2 (char *) +#else +#define LC_CAST +#define LC_CAST2 +#endif + static void gnc_configure_reverse_balance (void) @@@@ -780,16 +788,16 @@@@ gnc_localeconv (void) lc = *localeconv(); - gnc_lconv_set_utf8(&lc.decimal_point, "."); - gnc_lconv_set_utf8(&lc.thousands_sep, ","); - gnc_lconv_set_utf8(&lc.grouping, "\003"); - gnc_lconv_set_utf8(&lc.int_curr_symbol, "USD "); - gnc_lconv_set_utf8(&lc.currency_symbol, "$"); - gnc_lconv_set_utf8(&lc.mon_decimal_point, "."); - gnc_lconv_set_utf8(&lc.mon_thousands_sep, ","); - gnc_lconv_set_utf8(&lc.mon_grouping, "\003"); - gnc_lconv_set_utf8(&lc.negative_sign, "-"); - gnc_lconv_set_utf8(&lc.positive_sign, ""); + gnc_lconv_set_utf8(LC_CAST &lc.decimal_point, "."); + gnc_lconv_set_utf8(LC_CAST &lc.thousands_sep, ","); + gnc_lconv_set_utf8(LC_CAST &lc.grouping, "\003"); + gnc_lconv_set_utf8(LC_CAST &lc.int_curr_symbol, "USD "); + gnc_lconv_set_utf8(LC_CAST &lc.currency_symbol, "$"); + gnc_lconv_set_utf8(LC_CAST &lc.mon_decimal_point, "."); + gnc_lconv_set_utf8(LC_CAST &lc.mon_thousands_sep, ","); + gnc_lconv_set_utf8(LC_CAST &lc.mon_grouping, "\003"); + gnc_lconv_set_utf8(LC_CAST &lc.negative_sign, "-"); + gnc_lconv_set_utf8(LC_CAST &lc.positive_sign, ""); gnc_lconv_set_char(&lc.frac_digits, 2); gnc_lconv_set_char(&lc.int_frac_digits, 2); @@@@ -1293,13 +1301,13 @@@@ PrintAmountInternal(char *buf, gnc_numer if (info->monetary) { - separator = lc->mon_thousands_sep; - group = lc->mon_grouping; + separator = LC_CAST2 lc->mon_thousands_sep; + group = LC_CAST2 lc->mon_grouping; } else { - separator = lc->thousands_sep; - group = lc->grouping; + separator = LC_CAST2 lc->thousands_sep; + group = LC_CAST2 lc->grouping; } buf_ptr = buf; @@@@ -1367,7 +1375,7 @@@@ PrintAmountInternal(char *buf, gnc_numer } else { - char *decimal_point; + const char *decimal_point; guint8 num_decimal_places = 0; char *temp_ptr = temp_buf; @@@@ -1687,7 +1695,7 @@@@ number_to_words(gdouble val, gint64 deno if (val < 0) val = -val; if (denom < 0) denom = -denom; - int_part = trunc(val); + int_part = floor(val); frac_part = round((val - int_part) * denom); int_string = integer_to_words(int_part); @@@@ -1803,13 +1811,13 @@@@ xaccParseAmount (const char * in_str, gb { group_separator = g_utf8_get_char(lc->mon_thousands_sep); decimal_point = g_utf8_get_char(lc->mon_decimal_point); - group = lc->mon_grouping; + group = LC_CAST2 lc->mon_grouping; } else { group_separator = g_utf8_get_char(lc->thousands_sep); decimal_point = g_utf8_get_char(lc->decimal_point); - group = lc->grouping; + group = LC_CAST2 lc->grouping; } return xaccParseAmountExtended(in_str, monetary, negative_sign, decimal_point, @ 1.3 log @Add comments to some patches. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2007/07/19 19:35:04 wiz Exp $ @ 1.2 log @Update to 2.2.0, based on gnucash-current package. 2.2.0 - 14 July 2007 o Welcome to the GnuCash 2.2.0 Release. o With this new release series, GnuCash is available on Microsoft Windows for the first time, and it also runs on GNU/Linux, *BSD, Solaris and Mac OSX. o This release has only a few user-visible new features, except for the completed port to the Microsoft Windows operating system. In summary, the following features are new, compared to the older 2.0.x series: o Port to Microsoft Windows completed. Note that Windows 2000, XP, or Vista is required; GnuCash does not run on Windows 98 or 95. o Data file notice: In version 2.1.2 the format for scheduled transactions in the data file was changed. Files using the old format will be read without problems by this new version, but the new version of GnuCash only writes the new format. The new file format cannot be loaded by older versions of GnuCash. (If you try, the file will fail to be loaded with an error message.) As a result, if you begin using the new Gnucash, and you have data files with scheduled transactions, then these files will not be readable by older versions. If you have to make a new data file readable by older versions of GnuCash, this can be achived by deleting all records of scheduled transactions in the scheduled transaction editor. o SWIG is now used instead of g-wrap for providing language bindings. o The Scheduled Transaction list view is now improved and summarized more compactly. The Since-Last-Run dialog has been simplified. o Check printing has been improved, with new formats and simpler format descriptions. o Automatic saving of the data file was added. o Bugfixes and improvements since the last version 2.1.5 include: o Updated translations. o Improved handling of Online Banking wizard on Windows. @ text @d1 3 a3 1 $NetBSD: patch-ab,v 1.2 2007/06/19 23:15:53 joerg Exp $ @ 1.1 log @Some more patches for 2.0.0. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.5 2006/05/16 17:32:50 wiz Exp $ d3 1 a3 1 --- src/app-utils/gnc-ui-util.c.orig 2006-05-15 01:07:33.000000000 +0000 d5 1 a5 1 @@@@ -100,6 +100,14 @@@@ gnc_configure_account_separator (void) d20 1 a20 1 @@@@ -763,15 +771,15 @@@@ gnc_localeconv (void) d33 11 a43 9 + gnc_lconv_set_utf8(LC_CAST & lc.decimal_point, "."); + gnc_lconv_set_utf8(LC_CAST & lc.thousands_sep, ","); + gnc_lconv_set_utf8(LC_CAST & lc.grouping, "\003"); + gnc_lconv_set_utf8(LC_CAST & lc.int_curr_symbol, "USD "); + gnc_lconv_set_utf8(LC_CAST & lc.currency_symbol, "$"); + gnc_lconv_set_utf8(LC_CAST & lc.mon_decimal_point, "."); + gnc_lconv_set_utf8(LC_CAST & lc.mon_thousands_sep, ","); + gnc_lconv_set_utf8(LC_CAST & lc.mon_grouping, "\003"); + gnc_lconv_set_utf8(LC_CAST & lc.negative_sign, "-"); d47 1 a47 1 @@@@ -1275,13 +1283,13 @@@@ PrintAmountInternal(char *buf, gnc_numer d65 1 a65 1 @@@@ -1349,7 +1357,7 @@@@ PrintAmountInternal(char *buf, gnc_numer d74 10 a83 1 @@@@ -1632,13 +1640,13 @@@@ xaccParseAmount (const char * in_str, gb @