1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- Copy finance/kmymoney-kde4 -> finance/kmymoney

- Update to 5.0.1
- This version of KMyMoney is based on KDE Frameworks 5
- Users of KDE SC4 may want to continue to use kmymoney-kde4
This commit is contained in:
Jason E. Hale 2018-04-17 19:22:05 +00:00
parent 071f9dbc7c
commit 8f72924f24
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467650
9 changed files with 1775 additions and 0 deletions

View File

@ -36,6 +36,7 @@
SUBDIR += grisbi
SUBDIR += homebank
SUBDIR += jgnash
SUBDIR += kmymoney
SUBDIR += kmymoney-kde4
SUBDIR += ktoblzcheck
SUBDIR += ledger

106
finance/kmymoney/Makefile Normal file
View File

@ -0,0 +1,106 @@
# $FreeBSD$
PORTNAME= kmymoney
PORTVERSION= 5.0.1
CATEGORIES= finance kde
MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION}/src
MAINTAINER= jhale@FreeBSD.org
COMMENT= KDE personal finance manager
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libalkimia5.so:finance/alkimia \
libKChart.so:graphics/kdiagram
USES= cmake compiler:c++14-lang desktop-file-utils gettext kde:5 \
pkgconfig shared-mime-info shebangfix tar:xz
USE_QT5= buildtools_build core dbus gui network printsupport qmake_build \
sql testlib_build xml webkit widgets
USE_KDE= activities archive auth bookmarks codecs completion config \
configwidgets coreaddons doctools_build ecm_build i18n \
iconthemes itemmodels itemviews jobwidgets kcmutils \
kio notifications textwidgets service solid sonnet \
wallet widgetsaddons xmlgui
USE_LDCONFIG= yes
CONFLICTS_INSTALL= kmymoney-kde4
SHEBANG_FILES= kmymoney/misc/financequote.pl
OPTIONS_GROUP= PLUGINS
OPTIONS_GROUP_PLUGINS= CALENDAR KBANKING OFX WEBOOB
WEB_DESC= Web content renderer
OPTIONS_SINGLE= WEB
OPTIONS_SINGLE_WEB= KDEWEBKIT QTWEBENGINE
OPTIONS_DEFINE= ADDRESSBOOK GNUPG HOLIDAYS QUOTES
OPTIONS_DEFAULT= CALENDAR GNUPG HOLIDAYS KBANKING KDEWEBKIT OFX QUOTES
OPTIONS_SUB= yes
ADDRESSBOOK_DESC= Address book support
ADDRESSBOOK_USE= kde=akonadi,contacts,identitymanagement,pimtextedit
ADDRESSBOOK_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_KF5Akonadi \
CMAKE_DISABLE_FIND_PACKAGE_KF5Contacts \
CMAKE_DISABLE_FIND_PACKAGE_KF5IdentityManagement
CALENDAR_DESC= iCalendar exporter
CALENDAR_LIB_DEPENDS= libical.so:devel/libical
CALENDAR_CMAKE_BOOL= ENABLE_LIBICAL
GNUPG_LIB_DEPENDS= libgpgme.so:security/gpgme \
libgpgmepp.so:security/gpgme-cpp \
libassuan.so:security/libassuan \
libgpg-error.so:security/libgpg-error
GNUPG_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_Gpgmepp \
CMAKE_DISABLE_FIND_PACKAGE_KF5Gpgmepp
HOLIDAYS_DESC= Holidays support
HOLIDAYS_USE= kde=holidays
HOLIDAYS_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_KF5Holidays
KBANKING_DESC= Online banking via KBanking (AqBanking)
KBANKING_LIB_DEPENDS= libgwenhywfar.so:devel/gwenhywfar \
libgwengui-qt5.so:devel/gwenhywfar-qt5 \
libaqbanking.so:finance/aqbanking
KBANKING_USE= qt5=qml,quick
KBANKING_CMAKE_BOOL= ENABLE_KBANKING
KDEWEBKIT_DESC= Web content rendering via KDEWebKit
KDEWEBKIT_USE= kde=kdewebkit
OFX_DESC= OFX (Open Financial Exchange) importer
OFX_LIB_DEPENDS= libofx.so:finance/libofx
OFX_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_LibOfx
QTWEBENGINE_DESC= Web content rendering via QtWebEngine
QTWEBENGINE_USE= qt5=location,webchannel,webengine
QTWEBENGINE_CMAKE_BOOL= ENABLE_WEBENGINE
QUOTES_DESC= Online stock and currency price quotes
QUOTES_USES= perl5
QUOTES_USE= PERL5=run
QUOTES_RUN_DEPENDS= p5-Date-Manip>=0:devel/p5-Date-Manip \
p5-Finance-Quote>=0:finance/p5-Finance-Quote \
p5-XML-Parser>=0:textproc/p5-XML-Parser \
p5-XML-Writer>=0:textproc/p5-XML-Writer \
p5-libwww>=0:www/p5-libwww
WEBOOB_DESC= Online banking via Web Outside Of Browsers
WEBOOB_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}weboob>0:www/py-weboob@${PY_FLAVOR}
WEBOOB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}weboob>0:www/py-weboob@${PY_FLAVOR}
WEBOOB_USES= python:2.7
WEBOOB_USE= qt5=concurrent
WEBOOB_CMAKE_BOOL= ENABLE_WEBOOB
.if defined(MAINTAINER_MODE)
# Apply additional substitutions to pkg-plist generated by the 'makeplist' target
create-plist: stage
@(cd ${.CURDIR} && ${MAKE} makeplist > pkg-plist && \
${SED} -i "" -e '1d' \
-e '/icalendar/s|^|%%CALENDAR%%|g' -e '/kbanking/s|^|%%KBANKING%%|g' \
-e '/ofximport/s|^|%%OFX%%|g' -e '/weboob/s|^|%%WEBOOB%%|g' \
pkg-plist)
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1523625920
SHA256 (kmymoney-5.0.1.tar.xz) = dd6e8fc22a48ddcb322565c8f385d6aa44d582cfcf6fe2ff3dc11fc0b6bd2ab1
SIZE (kmymoney-5.0.1.tar.xz) = 13307860

View File

@ -0,0 +1,36 @@
Fix finding libofx
Fix Weboob yes/no configure summary
--- CMakeLists.txt.orig 2018-03-18 15:56:39 UTC
+++ CMakeLists.txt
@@ -135,11 +135,7 @@ endif(ENABLE_WEBENGINE)
find_package(LibOfx)
if(LIBOFX_FOUND)
option(ENABLE_OFXIMPORTER "Enable OFX Importer" ON)
- if(CMAKE_SYSTEM_NAME MATCHES "Windows")
- set(PATH_TO_LIBOFX_HEADER "${LIBOFX_INCLUDE_DIR}/libofx/libofx.h") # Windows doesn't even see the header if it's not full path
- else()
- set(PATH_TO_LIBOFX_HEADER "libofx/libofx.h")
- endif()
+ set(PATH_TO_LIBOFX_HEADER "${LIBOFX_INCLUDE_DIR}/libofx/libofx.h")
unset(LIBOFX_HAVE_CLIENTUID)
unset(LIBOFX_HAVE_CLIENTUID CACHE) #not doing this will prevent updating below check
@@ -317,7 +313,7 @@ nice_yesno("KMM_ADDRESSBOOK_FOUND")
nice_yesno("LIBOFX_FOUND")
nice_yesno("LIBOFX_HAVE_CLIENTUID")
nice_yesno("KBANKING_FOUND")
-nice_yesno("WEBOOB_FOUND")
+nice_yesno("ENABLE_WEBOOB")
nice_yesno("LIBICAL_FOUND")
nice_yesno("ENABLE_SQLCIPHER")
nice_yesno("USE_QT_DESIGNER")
@@ -340,7 +336,7 @@ OFX plugin: ${nice_LIBOFX
KBanking plugin: ${nice_KBANKING_FOUND}
-weboob plugin: ${nice_WEBOOB_FOUND}
+weboob plugin: ${nice_ENABLE_WEBOOB}
iCalendar export plugin: ${nice_LIBICAL_FOUND}

View File

@ -0,0 +1,20 @@
Use CMake to find libofx instead of just relying on pkgconf
--- cmake/modules/FindLibOfx.cmake.orig 2018-02-06 18:22:38 UTC
+++ cmake/modules/FindLibOfx.cmake
@@ -25,14 +25,13 @@ IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
FIND_PACKAGE(PkgConfig)
- PKG_CHECK_MODULES(LIBOFX libofx>=${LIBOFX_MIN_VERSION})
+ PKG_CHECK_MODULES(PC_OFX libofx>=${LIBOFX_MIN_VERSION})
# I am not sure what the next statement should do, since the
# var LIBOFX_DEFINITIONS is not used anywhere. Leave it here
# in case I overlooked something, but it could really go
# at some point in time (ipwizard, 2011-02-15)
# SET(LIBOFX_DEFINITIONS ${LIBOFX_CFLAGS_OTHER})
-ELSE (NOT WIN32)
FIND_PATH(LIBOFX_INCLUDE_DIR libofx/libofx.h
PATHS
${PC_OFX_INCLUDEDIR}

View File

@ -0,0 +1,15 @@
kmymoney/converter/mymoneystatementreader.cpp:1555:19: error: no member named 'abs' in namespace 'std'; did you mean 'labs'?
const int gap = std::abs(matchedSchedule.transaction().postDate().toJulianDay() - importedTransaction.postDate().toJulianDay());
^~~~~~~~
labs
--- kmymoney/converter/mymoneystatementreader.cpp.orig 2018-04-17 04:30:23 UTC
+++ kmymoney/converter/mymoneystatementreader.cpp
@@ -23,6 +23,7 @@
#include "mymoneystatementreader.h"
#include <typeinfo>
+#include <cstdlib>
// ----------------------------------------------------------------------------
// QT Headers

View File

@ -0,0 +1,13 @@
Fix crash when adding a new schedule to scheduled transactions
--- kmymoney/dialogs/transactioneditor.cpp.orig 2018-04-17 02:57:53 UTC
+++ kmymoney/dialogs/transactioneditor.cpp
@@ -178,7 +178,7 @@ void TransactionEditor::setup(QWidgetList& tabOrderWid
// remove all unused widgets and don't forget to remove them
// from the tab order list as well
- d->m_editWidgets.removeOrphans();
+ // d->m_editWidgets.removeOrphans();
QWidgetList::iterator it_w;
const QWidgetList editWidgets(d->m_editWidgets.values());
for (it_w = tabOrderWidgets.begin(); it_w != tabOrderWidgets.end();) {

View File

@ -0,0 +1,8 @@
KMyMoney is a personal finance manager for KDE 4.x.
It operates similar to MS-Money, supports different account types,
categorization of expenses and incomes, reconciliation of bank accounts and QIF
import/export. Online banking support (statement download) is also provided for
the OFX and HBCI protocols.
WWW: https://kmymoney.org/

1573
finance/kmymoney/pkg-plist Normal file

File diff suppressed because it is too large Load Diff