sqlcipher and skrooge:first release

This commit is contained in:
alihanozturk
2016-03-30 11:10:53 +03:00
parent be6af9198e
commit 7767dbd04e
6 changed files with 314 additions and 0 deletions
@@ -0,0 +1,20 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import kde5
from pisi.actionsapi import pisitools
def setup():
kde5.configure()
def build():
kde5.make()
def install():
kde5.install()
pisitools.dodoc("AUTHORS", "CHANGELOG", "COPYING", "README", "TODO")
@@ -0,0 +1,63 @@
--- a/skgbasemodeler/skgdocument.cpp
+++ b/skgbasemodeler/skgdocument.cpp
@@ -42,7 +42,6 @@
#include <qurl.h>
#include <sqlite3.h>
-#include <math.h>
#include <cmath>
#include "skgtraces.h"
@@ -51,11 +50,6 @@
#include "skgpropertyobject.h"
#include "skgtransactionmng.h"
#include "skgreport.h"
-
-#ifdef Q_OS_WIN
-#define isnan(a) _isnan(a)
-#define isinf(a) !_finite(a)
-#endif
#ifdef SKGCIPHER
#define SQLDRIVERNAME QStringLiteral("SKGSQLCIPHER")
@@ -2693,7 +2687,7 @@
if (iValue > 0) {
p = '+' % p;
}
- if (p.count() > 10 || isnan(iValue) || isinf(iValue)) {
+ if (p.count() > 10 || std::isnan(iValue) || std::isinf(iValue)) {
p = QChar(8734);
}
return "<font color=\"" %
--- a/plugins/import/skrooge_import_gnc/skgimportplugingnc.cpp
+++ b/plugins/import/skrooge_import_gnc/skgimportplugingnc.cpp
@@ -27,7 +27,6 @@
#include <qdom.h>
#include <qfileinfo.h>
-#include <math.h>
#include <cmath>
#include "skgtraces.h"
@@ -36,11 +35,6 @@
#include "skgobjectbase.h"
#include "skgpayeeobject.h"
#include "skgimportexportmanager.h"
-
-#ifdef Q_OS_WIN
-#define isnan(a) _isnan(a)
-#define isinf(a) !_finite(a)
-#endif
/**
* This plugin factory.
@@ -386,7 +380,7 @@
}
}
- if (!isnan(info.value)) {
+ if (!std::isnan(info.value)) {
QChar accountType = mapIdType[info.account.text()];
if (accountType == 'C') {
suboperationsList.push_front(info);
+128
View File
@@ -0,0 +1,128 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>skrooge</Name>
<Homepage>http://skrooge.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv3</License>
<Icon>skrooge</Icon>
<IsA>app:gui</IsA>
<Summary>Personal finances manager</Summary>
<Description>Skrooge allows you to manage your personal finances, powered by KDE. Thanks to its many features, it is one of the most powerful way to enter, follow, and analyze your expenses.</Description>
<Archive sha1sum="8249c964b2aa8e78d7a0f8fd687d29507e20d588" type="tarxz">http://download.kde.org/stable/skrooge/skrooge-2.3.0.tar.xz</Archive>
<BuildDependencies>
<Dependency>qt5-base-devel</Dependency>
<Dependency>extra-cmake-modules</Dependency>
<Dependency>qt5-webkit-devel</Dependency>
<Dependency>qt5-script-devel</Dependency>
<Dependency>qt5-sql-mysql</Dependency>
<Dependency>qt5-sql-odbc</Dependency>
<Dependency>qt5-sql-postgresql</Dependency>
<Dependency>qt5-sql-sqlite</Dependency>
<Dependency>qt5-designer-devel</Dependency>
<Dependency>qt5-svg-devel</Dependency>
<Dependency>qt5-location-devel</Dependency>
<Dependency>grantlee-qt5-devel</Dependency>
<Dependency>karchive-devel</Dependency>
<Dependency>kconfig-devel</Dependency>
<Dependency>kcoreaddons-devel</Dependency>
<Dependency>ki18n-devel</Dependency>
<Dependency>kitemviews-devel</Dependency>
<Dependency>kwidgetsaddons-devel</Dependency>
<Dependency>kwindowsystem-devel</Dependency>
<Dependency>kcompletion-devel</Dependency>
<Dependency>kdoctools-devel</Dependency>
<Dependency>kjobwidgets-devel</Dependency>
<Dependency>kconfigwidgets-devel</Dependency>
<Dependency>kdesignerplugin</Dependency>
<Dependency>kiconthemes-devel</Dependency>
<Dependency>kio-devel</Dependency>
<Dependency>knewstuff-devel</Dependency>
<Dependency>kparts-devel</Dependency>
<Dependency>kwallet-devel</Dependency>
<Dependency>kxmlgui-devel</Dependency>
<Dependency>sqlcipher-devel</Dependency>
<Dependency>qca2-qt5-devel</Dependency>
<Dependency>kdelibs4-support-devel</Dependency>
<Dependency>kemoticons-devel</Dependency>
<Dependency>kitemmodels-devel</Dependency>
<Dependency>kinit-devel</Dependency>
<Dependency>kunitconversion-devel</Dependency>
<Dependency>kactivities-devel</Dependency>
<Dependency>knotifyconfig-devel</Dependency>
<Dependency>krunner-devel</Dependency>
<Dependency>libofx-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">skrooge-gcc-fix.patch</Patch>
</Patches>
</Source>
<Package>
<Name>skrooge</Name>
<RuntimeDependencies>
<Dependency>kio</Dependency>
<Dependency>ki18n</Dependency>
<Dependency>kparts</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>libofx</Dependency>
<Dependency>kconfig</Dependency>
<Dependency>krunner</Dependency>
<Dependency>kwallet</Dependency>
<Dependency>kxmlgui</Dependency>
<Dependency>qt5-svg</Dependency>
<Dependency>karchive</Dependency>
<Dependency>kservice</Dependency>
<Dependency>qca2-qt5</Dependency>
<Dependency>qt5-base</Dependency>
<Dependency>knewstuff</Dependency>
<Dependency>sqlcipher</Dependency>
<Dependency>kitemviews</Dependency>
<Dependency>qt5-script</Dependency>
<Dependency>qt5-webkit</Dependency>
<Dependency>kcompletion</Dependency>
<Dependency>kcoreaddons</Dependency>
<Dependency>kdbusaddons</Dependency>
<Dependency>kiconthemes</Dependency>
<Dependency>grantlee-qt5</Dependency>
<Dependency>ktextwidgets</Dependency>
<Dependency>knotifyconfig</Dependency>
<Dependency>kconfigwidgets</Dependency>
<Dependency>knotifications</Dependency>
<Dependency>kwidgetsaddons</Dependency>
<Dependency>qt5-declarative</Dependency>
<Dependency>kdelibs4-support</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/xdg</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/appdata</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="config">/usr/share/config.kcfg</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/icons</Path>
<Path fileType="data">/usr/share/knotifications5</Path>
<Path fileType="data">/usr/share/kservices5</Path>
<Path fileType="data">/usr/share/kservicetypes5</Path>
<Path fileType="data">/usr/share/kxmlgui5</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="data">/usr/share/mime</Path>
<Path fileType="data">/usr/share/skrooge</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-03-22</Date>
<Version>2.3.0</Version>
<Comment>First release</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>skrooge</Name>
<Summary xml:lang="tr">Kişisel finansal yönetici</Summary>
<Description xml:lang="tr">Skrooge, kişisel finans akışınızı kontrol altında tutmanızı sağlayan bir uygulamadır.</Description>
</Source>
</PISI>
+33
View File
@@ -0,0 +1,33 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
shelltools.export("CFLAGS", "%s -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2" % get.CFLAGS())
shelltools.export("LDFLAGS", "%s -lcrypto" % get.LDFLAGS())
autotools.configure("--prefix=/usr \
--enable-tempstore=yes \
--enable-readline \
--enable-threadsafe \
--enable-cross-thread-connections \
--enable-releasemode \
--disable-static \
--with-crypto-lib")
#for unused
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("CHANGELOG*", "README*", "VERSION", "LICENSE")
+62
View File
@@ -0,0 +1,62 @@
<PISI>
<Source>
<Name>sqlcipher</Name>
<Homepage>https://www.zetetic.net/sqlcipher/</Homepage>
<Packager>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>data</IsA>
<Summary>SQLite extension that provides transparent 256-bit AES encryption of database files</Summary>
<Description>SQLCipher is an SQLite extension that provides transparent 256-bit AES encryption of database files. Pages are encrypted before being written to disk and are decrypted when read back. Due to the small footprint and great performance its ideal for protecting embedded application databases and is well suited for mobile development.</Description>
<BuildDependencies>
<Dependency>readline-devel</Dependency>
<Dependency>tcl-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>ncurses-devel</Dependency>
</BuildDependencies>
<Archive sha1sum="a1104bf45b15b33ef316c24c108f6802b7501cc3" type="targz">https://github.com/sqlcipher/sqlcipher/archive/v3.3.1.tar.gz</Archive>
</Source>
<Package>
<Name>sqlcipher</Name>
<Summary>SQLite extension that provides transparent 256-bit AES encryption of database files.</Summary>
<RuntimeDependencies>
<Dependency>openssl</Dependency>
<Dependency>readline</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>tcl</Dependency>
<Dependency>ncurses</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/tcl8.6</Path>
<Path fileType="library">/usr/lib/lib*</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>sqlcipher-devel</Name>
<Summary>Development files for sqlcipher.</Summary>
<RuntimeDependencies>
<Dependency release="current">sqlcipher</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-03-22</Date>
<Version>3.3.1</Version>
<Comment>First release.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
</History>
</PISI>