summaryrefslogtreecommitdiff
path: root/finance/gnucash/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2018-04-09 08:47:35 +0000
committerwiz <wiz@pkgsrc.org>2018-04-09 08:47:35 +0000
commit1fb7bd4d72e044d509db0eceb6c0b5383d81b3bc (patch)
tree77568e1095969ebb97a3d43d47f4c31ab6ba6ced /finance/gnucash/Makefile
parent1ac5a855ace90e91948deedcca3887f0e30c3e51 (diff)
downloadpkgsrc-1fb7bd4d72e044d509db0eceb6c0b5383d81b3bc.tar.gz
gnucash: update to 3.0.
The GnuCash development team proudly announces GnuCash 3.0, the first release in our new 3.x stable series. New Features for Users: The headline item for this release is that GnuCash now uses the Gtk+-3.0 Toolkit and the WebKit2Gtk API. This change was forced on us by some major Linux distributions dropping support for the WebKit1 API. Unfortunately the Webkit project doesn't support Microsoft Windows so that platform will continue to use the WebKit1 API, though with Gtk3. We've selected Gtk+-3.14.0 as the minimum version because it fully supports CSS theming. New editors to remove outdated or incorrect match data from the import maps, a new user interfacs for managing files associated with transactions, an improved facility for removing old prices from the price database, and a way to remove deleted files from the history list in the file menu. New Reports: A Reconciliation Report based on the Transaction Report,a Income GST Report, and a Cashflow Barchart report. A new CSV importer largely rewritten in C++, adding new features including the ability to re-import CSV files exported from GnuCash, along with a separate CSV price importer. A new preference panel for the Alphavantage API key so that Finance::Quote users need not edit /etc/gnucash/environment. We've removed all references to the various Yahoo! quote sources and made Alphavantage the default. Data file directories are now located appropriately to the operating system's conventions by default: Windows: CSIDL_APPDATA/Gnucash MacOS: $HOME/Application Support/Gnucash Linux: $XDG_CONFIG_HOME/gnucash (or the default $HOME/.config/gnucash) It's still possible to overried with the environment variable GNC_DOC_PATH, which replaces GNC_DOT_DIR in earlier versions of GnuCash. Accounts in the Bayes import map are now linked by GUID instead of names so that the matcher won't have to be retrained if you rename an account. The Bayesian import maps are also stored in a flatter structure to allow faster access, especially in SQL. These changes mean that if you have Bayesian mapping data, once converted your database will be loadable only by GnuCash 2.6.20 and later. MySQL and SQLite3 date storage has changed a bit. Once converted, MySQL and SQLite3 database will be loadable only by GnuCash 2.6.19 and later. Numerics are rewritten to allow for more significant digits. The old 6-digit-maximum fraction is now 9-digits, and prices may have up to 18 digit precision. Chart Reports appearance is improved, including more modern chart colours as suggested by http://clrs.cc/. Transaction Report improvements, including regular expression filtering and many more options and features including a "Subtotal Summary Grid" The subtotal summary-grid will tabulate subtotals - prime-sortkey vertically, sec-sortkey horizontally. For example, with prime-sortkey = accounts, sec-sortkey = date, sec-subtotal = monthly will produce a monthly time series table. The About dialog box layout is improved and now includes the detected Finance::Quote version. GnuCash will always build the locale-specific tax modules. This was optional when building with autotools and never enabled when building with cmake. Note that the only supported tax locales are en_US and de_DE. On Macs the Reconcile Window's menu moved to the menubar. GnuCash no longer supports Guile-1.8 and now does support Guile-2.2
Diffstat (limited to 'finance/gnucash/Makefile')
-rw-r--r--finance/gnucash/Makefile89
1 files changed, 52 insertions, 37 deletions
diff --git a/finance/gnucash/Makefile b/finance/gnucash/Makefile
index d799e0df812..751bcb74195 100644
--- a/finance/gnucash/Makefile
+++ b/finance/gnucash/Makefile
@@ -1,68 +1,83 @@
-# $NetBSD: Makefile,v 1.253 2018/03/12 11:16:28 wiz Exp $
+# $NetBSD: Makefile,v 1.254 2018/04/09 08:47:35 wiz Exp $
-DISTNAME= gnucash-2.6.19
-PKGREVISION= 1
+DISTNAME= gnucash-3.0
CATEGORIES= finance
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gnucash/}
EXTRACT_SUFX= .tar.bz2
+# take copy mirrored on ftp.NetBSD.org for devel/googletest
+# for better DISTNAME
+# depending on googletest package is not sufficient since not all
+# files that are used are installed
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} googletest-1.8.0.tar.gz
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.gnucash.org/
COMMENT= Personal or business finance management program
LICENSE= gnu-gpl-v3
-DEPENDS+= guile-slib>=3.2.1:../../devel/guile-slib
+DEPENDS+= guile22-slib>=3.2.1:../../devel/guile22-slib
DEPENDS+= p5-Finance-Quote-[0-9]*:../../finance/p5-Finance-Quote
DEPENDS+= p5-Date-Manip-[0-9]*:../../devel/p5-Date-Manip
-DEPENDS+= ${PYPKGPREFIX}-gtk2-[0-9]*:../../x11/py-gtk2
-# /usr/pkg/share/gnucash/python/pycons/console.py imports readline
-DEPENDS+= ${PYPKGPREFIX}-readline-[0-9]*:../../devel/py-readline
DEPENDS+= dconf-[0-9]*:../../devel/dconf
+# instead of USE_TOOLS+=msgfmt, since we need a newer version
+TOOL_DEPENDS+= gettext-tools>=0.19.6:../../devel/gettext-tools
-WRKSRC= ${WRKDIR}/${DISTNAME:S/-1//}
-
+USE_LANGUAGES= c c++
+USE_CMAKE= yes
USE_LIBTOOL= yes
-USE_PKGLOCALEDIR= yes
-USE_TOOLS+= gmake intltool makeinfo msgfmt perl:run pkg-config
-GNU_CONFIGURE= yes
-INFO_FILES= YES
+INFO_FILES= yes
+USE_TOOLS+= perl:run pkg-config
+# remove when using ninja
+USE_TOOLS+= gmake
+
+LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/gnucash
+CXXFLAGS+= -Wno-deprecated-declarations
-CONFIGURE_ARGS+= --with-html-engine=webkit
-CONFIGURE_ARGS+= --enable-python
-CONFIGURE_ARGS+= --with-xdg-data-dirs=${PREFIX}/share
-#CONFIGURE_ARGS+= GUILE=${PREFIX}/${GUILE20_SUBDIR}/bin/guile
+MAKE_ENV+= GUILE_AUTO_COMPILE=0
+CMAKE_ARGS+= -DGMOCK_ROOT=${WRKDIR}/googletest-release-1.8.0/googlemock
+CMAKE_ARGS+= -DGTEST_ROOT=${WRKDIR}/googletest-release-1.8.0/googletest
+CMAKE_ARGS+= -DWITH_AQBANKING=OFF
+CMAKE_ARGS+= -DPERL_EXECUTABLE=${PERL5}
+CMAKE_ARGS+= -DCOMPILE_GSCHEMAS=OFF
+#CMAKE_ARGS+= -GNinja
+#BUILD_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build
-REPLACE_PERL+= src/quotes/gnc-fq-dump
-REPLACE_PERL+= src/backend/xml/test/grab-types.pl
-REPLACE_PERL+= src/quotes/Quote_example.pl
-REPLACE_PERL+= src/gnc-test-env.pl
+#do-build:
+# cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ninja
+#do-install:
+# cd ${WRKSRC}; ${SETENV} ${INSTALL_ENV} ninja install
-PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # not yet ported as of 2.6.1
-REPLACE_PYTHON+= src/python/pycons/*.py src/python/pycons/pycons
-PY_PATCHPLIST= yes
+REPLACE_PERL+= common/gnc-test-env.pl
+REPLACE_PERL+= libgnucash/backend/xml/test/grab-types.pl
+REPLACE_PERL+= libgnucash/quotes/gnc-fq-dump
+REPLACE_PERL+= util/elegant-sort.pl
+
+PLIST_SRC= PLIST
PKG_SYSCONFSUBDIR= gnucash
-CONF_FILES+= ${PREFIX}/share/examples/gnucash/gnucash/config ${PKG_SYSCONFDIR}/config
-CONF_FILES+= ${PREFIX}/share/examples/gnucash/gnucash/environment ${PKG_SYSCONFDIR}/environment
-INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/gnucash
+CONF_FILES+= ${PREFIX}/share/examples/gnucash/environment ${PKG_SYSCONFDIR}/environment
+INSTALLATION_DIRS= share/examples/gnucash
+
+post-install:
+ ${MV} ${DESTDIR}${PREFIX}/etc/gnucash/environment ${DESTDIR}${PREFIX}/share/examples/gnucash/environment
.include "options.mk"
-BUILDLINK_API_DEPENDS.glib2+= glib2>=2.28.0
+BUILDLINK_API_DEPENDS.glib2+= glib2>=2.40.0
.include "../../devel/glib2/schemas.mk"
.include "../../devel/glib2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.boost-headers+= boost-headers>=1.64.0nb3
+.include "../../devel/boost-headers/buildlink3.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/swig2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
-.include "../../graphics/libgnomecanvas/buildlink3.mk"
-.include "../../lang/guile20/buildlink3.mk"
-.include "../../lang/python/application.mk"
-.include "../../lang/python/extension.mk"
-.include "../../misc/goffice0.8/buildlink3.mk"
-BUILDLINK_API_DEPENDS.gnome-keyring+= gnome-keyring>=0.6
-.include "../../security/gnome-keyring/buildlink3.mk"
+.include "../../lang/guile22/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../textproc/icu/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
-.include "../../www/webkit24-gtk/buildlink3.mk"
-.include "../../x11/gtk2/buildlink3.mk"
+.include "../../www/webkit-gtk/buildlink3.mk"
+.include "../../x11/gtk3/buildlink3.mk"
+.include "../../x11/gtkmm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"