Merge pull request #4939 from Hoshpak/kmymoney
New package: kmymoney-4.8.0
This commit is contained in:
commit
1401deb58c
6 changed files with 253 additions and 1 deletions
|
@ -1490,7 +1490,7 @@ libktoblzcheck.so.1 ktoblzcheck-1.43_2
|
|||
libgwenhywfar.so.60 gwenhywfar-4.10.0beta_1
|
||||
libgwengui-gtk2.so.0 gwenhywfar-gtk-4.10.0beta_1
|
||||
libgwengui-cpp.so.0 gwenhywfar-4.10.0beta_1
|
||||
libgwengui-qt4.so.0 gwenhywfar-4.14.0_1
|
||||
libgwengui-qt4.so.0 gwenhywfar-qt-4.15.3_2
|
||||
libaqbanking.so.35 aqbanking-5.6.10_1
|
||||
libaqnone.so.35 aqbanking-5.6.10_1
|
||||
libaqhbci.so.23 aqbanking-5.6.11_1
|
||||
|
@ -2617,3 +2617,12 @@ libz80ex_dasm.so.1 z80ex-1.1.21_1
|
|||
libqmmp.so.1 qmmp-1.1.4_1
|
||||
libqmmpui.so.1 qmmp-1.1.4_1
|
||||
libksignalplotter.so.4 kde-workspace-4.11.22_1
|
||||
libalkimia.so.5 libalkimia-5.0.0_1
|
||||
libpayeeidentifier_iban_bic_widgets.so.4 kmymoney-4.8.0_1
|
||||
libkmm_plugin.so.4 kmymoney-4.8.0_1
|
||||
libkmm_widgets.so.4 kmymoney-4.8.0_1
|
||||
libkmm_kdchart.so.4 kmymoney-4.8.0_1
|
||||
libkmm_mymoney.so.4 kmymoney-4.8.0_1
|
||||
libpayeeidentifier_nationalAccount.so.4 kmymoney-4.8.0_1
|
||||
libpayeeidentifier_iban_bic.so.4 kmymoney-4.8.0_1
|
||||
libkmm_payeeidentifier.so kmymoney-4.8.0_1
|
||||
|
|
1
srcpkgs/kmymoney-devel
Symbolic link
1
srcpkgs/kmymoney-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
kmymoney
|
196
srcpkgs/kmymoney/patches/backported-fix-for-bug-364355.patch
Normal file
196
srcpkgs/kmymoney/patches/backported-fix-for-bug-364355.patch
Normal file
|
@ -0,0 +1,196 @@
|
|||
--- kmymoney/mymoney/storage/mymoneymap.h
|
||||
+++ kmymoney/mymoney/storage/mymoneymap.h
|
||||
@@ -195,7 +195,7 @@
|
||||
that = *(dynamic_cast<QMap<Key, T>* >(const_cast<MyMoneyMap<Key, T>* >(this)));
|
||||
}
|
||||
|
||||
- inline size_t count(void) const {
|
||||
+ inline int count(void) const {
|
||||
return QMap<Key, T>::count();
|
||||
}
|
||||
|
||||
|
||||
--- kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
|
||||
+++ kmymoney/mymoney/storage/mymoneyseqaccessmgrtest.cpp
|
||||
@@ -58,13 +58,13 @@
|
||||
QCOMPARE(m->m_nextPayeeID, 0ul);
|
||||
QCOMPARE(m->m_nextScheduleID, 0ul);
|
||||
QCOMPARE(m->m_nextReportID, 0ul);
|
||||
- QCOMPARE(m->m_institutionList.count(), 0ul);
|
||||
- QCOMPARE(m->m_accountList.count(), 5ul);
|
||||
- QCOMPARE(m->m_transactionList.count(), 0ul);
|
||||
- QCOMPARE(m->m_transactionKeys.count(), 0ul);
|
||||
- QCOMPARE(m->m_payeeList.count(), 0ul);
|
||||
- QCOMPARE(m->m_tagList.count(), 0ul);
|
||||
- QCOMPARE(m->m_scheduleList.count(), 0ul);
|
||||
+ QCOMPARE(m->m_institutionList.count(), 0);
|
||||
+ QCOMPARE(m->m_accountList.count(), 5);
|
||||
+ QCOMPARE(m->m_transactionList.count(), 0);
|
||||
+ QCOMPARE(m->m_transactionKeys.count(), 0);
|
||||
+ QCOMPARE(m->m_payeeList.count(), 0);
|
||||
+ QCOMPARE(m->m_tagList.count(), 0);
|
||||
+ QCOMPARE(m->m_scheduleList.count(), 0);
|
||||
|
||||
QCOMPARE(m->m_dirty, false);
|
||||
QCOMPARE(m->m_creationDate, QDate::currentDate());
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
QCOMPARE(m->m_nextAccountID, 1ul);
|
||||
QCOMPARE(m->dirty(), true);
|
||||
- QCOMPARE(m->m_accountList.count(), static_cast<std::size_t>(6));
|
||||
+ QCOMPARE(m->m_accountList.count(), 6);
|
||||
QCOMPARE(m->m_accountList["A000001"].name(), QLatin1String("AccountName"));
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@
|
||||
m->m_dirty = false;
|
||||
|
||||
QCOMPARE(m->m_nextAccountID, 2ul);
|
||||
- QCOMPARE(m->m_accountList.count(), static_cast<std::size_t>(7));
|
||||
+ QCOMPARE(m->m_accountList.count(), 7);
|
||||
|
||||
// try to add account to undefined account
|
||||
try {
|
||||
@@ -271,7 +271,7 @@
|
||||
i.setName("Inst Name");
|
||||
|
||||
m->addInstitution(i);
|
||||
- QCOMPARE(m->m_institutionList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_institutionList.count(), 1);
|
||||
QCOMPARE(m->m_nextInstitutionID, 1ul);
|
||||
QCOMPARE(m->m_institutionList["I000001"].name(), QLatin1String("Inst Name"));
|
||||
}
|
||||
@@ -950,11 +950,11 @@
|
||||
// check that we can remove an unreferenced payee
|
||||
MyMoneyPayee p = m->payee("P000001");
|
||||
try {
|
||||
- QCOMPARE(m->m_payeeList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_payeeList.count(), 1);
|
||||
m->removePayee(p);
|
||||
m->commitTransaction();
|
||||
m->startTransaction();
|
||||
- QCOMPARE(m->m_payeeList.count(), static_cast<std::size_t>(0));
|
||||
+ QCOMPARE(m->m_payeeList.count(), 0);
|
||||
QCOMPARE(m->dirty(), true);
|
||||
} catch (const MyMoneyException &) {
|
||||
QFAIL("Unexpected exception");
|
||||
@@ -996,7 +996,7 @@
|
||||
QFAIL("Expected exception");
|
||||
} catch (const MyMoneyException &) {
|
||||
}
|
||||
- QCOMPARE(m->m_payeeList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_payeeList.count(), 1);
|
||||
}
|
||||
|
||||
void MyMoneySeqAccessMgrTest::testAddTag()
|
||||
@@ -1046,11 +1046,11 @@
|
||||
// check that we can remove an unreferenced tag
|
||||
MyMoneyTag ta = m->tag("G000001");
|
||||
try {
|
||||
- QCOMPARE(m->m_tagList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_tagList.count(), 1);
|
||||
m->removeTag(ta);
|
||||
m->commitTransaction();
|
||||
m->startTransaction();
|
||||
- QCOMPARE(m->m_tagList.count(), static_cast<std::size_t>(0));
|
||||
+ QCOMPARE(m->m_tagList.count(), 0);
|
||||
QCOMPARE(m->dirty(), true);
|
||||
} catch (const MyMoneyException &) {
|
||||
QFAIL("Unexpected exception");
|
||||
@@ -1094,7 +1094,7 @@
|
||||
QFAIL("Expected exception");
|
||||
} catch (const MyMoneyException &) {
|
||||
}
|
||||
- QCOMPARE(m->m_tagList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_tagList.count(), 1);
|
||||
}
|
||||
|
||||
void MyMoneySeqAccessMgrTest::testRemoveAccountFromTree()
|
||||
@@ -1267,7 +1267,7 @@
|
||||
|
||||
|
||||
try {
|
||||
- QCOMPARE(m->m_scheduleList.count(), static_cast<std::size_t>(0));
|
||||
+ QCOMPARE(m->m_scheduleList.count(), 0);
|
||||
MyMoneyTransaction t1;
|
||||
MyMoneySplit s1, s2;
|
||||
s1.setAccountId("A000001");
|
||||
@@ -1287,7 +1287,7 @@
|
||||
|
||||
m->addSchedule(schedule);
|
||||
|
||||
- QCOMPARE(m->m_scheduleList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_scheduleList.count(), 1);
|
||||
QCOMPARE(schedule.id(), QLatin1String("SCH000001"));
|
||||
QCOMPARE(m->m_scheduleList["SCH000001"].id(), QLatin1String("SCH000001"));
|
||||
} catch (const MyMoneyException &) {
|
||||
@@ -1342,7 +1342,7 @@
|
||||
sched.setName("New Sched-Name");
|
||||
try {
|
||||
m->modifySchedule(sched);
|
||||
- QCOMPARE(m->m_scheduleList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_scheduleList.count(), 1);
|
||||
QCOMPARE(m->m_scheduleList["SCH000001"].name(), QLatin1String("New Sched-Name"));
|
||||
|
||||
} catch (const MyMoneyException &) {
|
||||
@@ -1373,7 +1373,7 @@
|
||||
try {
|
||||
m->removeSchedule(sched);
|
||||
m->commitTransaction();
|
||||
- QCOMPARE(m->m_scheduleList.count(), static_cast<std::size_t>(0));
|
||||
+ QCOMPARE(m->m_scheduleList.count(), 0);
|
||||
|
||||
} catch (const MyMoneyException &) {
|
||||
m->rollbackTransaction();
|
||||
@@ -1548,13 +1548,13 @@
|
||||
void MyMoneySeqAccessMgrTest::testAddCurrency()
|
||||
{
|
||||
MyMoneySecurity curr("EUR", "Euro", "?", 100, 100);
|
||||
- QCOMPARE(m->m_currencyList.count(), static_cast<std::size_t>(0));
|
||||
+ QCOMPARE(m->m_currencyList.count(), 0);
|
||||
m->m_dirty = false;
|
||||
try {
|
||||
m->addCurrency(curr);
|
||||
m->commitTransaction();
|
||||
m->startTransaction();
|
||||
- QCOMPARE(m->m_currencyList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_currencyList.count(), 1);
|
||||
QCOMPARE(m->m_currencyList["EUR"].name(), QLatin1String("Euro"));
|
||||
QCOMPARE(m->dirty(), true);
|
||||
} catch (const MyMoneyException &) {
|
||||
@@ -1582,7 +1582,7 @@
|
||||
m->modifyCurrency(curr);
|
||||
m->commitTransaction();
|
||||
m->startTransaction();
|
||||
- QCOMPARE(m->m_currencyList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_currencyList.count(), 1);
|
||||
QCOMPARE(m->m_currencyList["EUR"].name(), QLatin1String("EURO"));
|
||||
QCOMPARE(m->dirty(), true);
|
||||
} catch (const MyMoneyException &) {
|
||||
@@ -1611,7 +1611,7 @@
|
||||
m->removeCurrency(curr);
|
||||
m->commitTransaction();
|
||||
m->startTransaction();
|
||||
- QCOMPARE(m->m_currencyList.count(), static_cast<std::size_t>(0));
|
||||
+ QCOMPARE(m->m_currencyList.count(), 0);
|
||||
QCOMPARE(m->dirty(), true);
|
||||
} catch (const MyMoneyException &) {
|
||||
QFAIL("Unexpected exception");
|
||||
@@ -1668,7 +1668,7 @@
|
||||
try {
|
||||
m->addCurrency(unknownCurr);
|
||||
m->m_dirty = false;
|
||||
- QCOMPARE(m->m_currencyList.count(), static_cast<std::size_t>(2));
|
||||
+ QCOMPARE(m->m_currencyList.count(), 2);
|
||||
QCOMPARE(m->currencyList().count(), 2);
|
||||
QCOMPARE(m->dirty(), false);
|
||||
} catch (const MyMoneyException &) {
|
||||
@@ -1797,7 +1797,7 @@
|
||||
|
||||
QCOMPARE(m->m_nextOnlineJobID, 1ul);
|
||||
QCOMPARE(m->dirty(), true);
|
||||
- QCOMPARE(m->m_onlineJobList.count(), static_cast<std::size_t>(1));
|
||||
+ QCOMPARE(m->m_onlineJobList.count(), 1);
|
||||
QVERIFY(! m->m_onlineJobList["O000001"].isNull());
|
||||
|
||||
}
|
22
srcpkgs/kmymoney/template
Normal file
22
srcpkgs/kmymoney/template
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Template file for 'kmymoney'
|
||||
pkgname=kmymoney
|
||||
version=4.8.0
|
||||
revision=1
|
||||
build_style=cmake
|
||||
hostmakedepends="cmake qt-qmake automoc4 perl doxygen pkg-config gwenhywfar-qt"
|
||||
makedepends="kdelibs-devel gpgme-devel aqbanking-devel gwenhywfar-devel libical-devel kactivities-devel gmp-devel libofx-devel qt-devel phonon-devel libalkimia-devel boost-devel kdepimlibs-devel gmpxx-devel"
|
||||
depends="shared-mime-info"
|
||||
homepage="https://kmymoney.org"
|
||||
short_desc="Personal finance manager"
|
||||
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
||||
license="GPL-2"
|
||||
distfiles="http://download.kde.org/stable/kmymoney/4.8.0/src/${pkgname}-${version}.tar.xz"
|
||||
checksum="c2a635710aafa6925a49803c480e043e0bf4bc5b62430689aa5eb95619f48ac2"
|
||||
|
||||
kmymoney-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
}
|
||||
}
|
1
srcpkgs/libalkimia-devel
Symbolic link
1
srcpkgs/libalkimia-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libalkimia
|
23
srcpkgs/libalkimia/template
Normal file
23
srcpkgs/libalkimia/template
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Template file for 'libalkimia'
|
||||
pkgname=libalkimia
|
||||
version=5.0.0
|
||||
revision=1
|
||||
build_style=cmake
|
||||
hostmakedepends="cmake pkg-config qt-qmake automoc4"
|
||||
makedepends="kdelibs-devel gmp-devel qt-devel phonon-devel gmpxx-devel"
|
||||
homepage="https://www.linux-apps.com/content/show.php/libalkimia?content=137323"
|
||||
short_desc="Library used by KDE finance applications"
|
||||
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
||||
license="LGPL-2.1"
|
||||
distfiles="http://download.kde.org/stable/alkimia/${version}/src/${pkgname}-${version}.tar.xz"
|
||||
checksum="eea8a2a0f6788a1b9fd464b370598ed6e55353fb40da53375e6f022e71526cb5"
|
||||
|
||||
libalkimia-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/lib/cmake
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue