Add kmymoney
svn path=/nixpkgs/trunk/; revision=28910
This commit is contained in:
parent
50f5c15996
commit
94c6bb3ed4
3 changed files with 41 additions and 0 deletions
22
pkgs/applications/office/kmymoney/default.nix
Normal file
22
pkgs/applications/office/kmymoney/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv, fetchurl, cmake, kdelibs, automoc4, kdepimlibs, gettext,
|
||||
shared_mime_info, perl, boost, gpgme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kmymoney-4.5.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/kmymoney2/${name}.tar.bz2";
|
||||
sha256 = "1yvgyzybfm1ajswwq3w3kdij4y2cyhfkk52xhv7dbp1wrxsp5cx9";
|
||||
};
|
||||
|
||||
buildInputs = [ kdelibs kdepimlibs perl boost gpgme ];
|
||||
buildNativeInputs = [ cmake automoc4 gettext shared_mime_info ];
|
||||
|
||||
patches = [ ./qgpgme.patch ];
|
||||
|
||||
meta = {
|
||||
homepage = http://kmymoney2.sourceforge.net/;
|
||||
description = "KDE personal money manager";
|
||||
inherit (kdelibs.meta) platforms maintainers;
|
||||
};
|
||||
}
|
17
pkgs/applications/office/kmymoney/qgpgme.patch
Normal file
17
pkgs/applications/office/kmymoney/qgpgme.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
KMymoney tries to find qgpgme before kdepimlibs. This is wrong because
|
||||
FindQGpgme is installed by kdepimlibs, thus can be invisible until kdepimlibs
|
||||
found.
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f6d7305..88bac67 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -59,8 +59,8 @@ else (WIN32)
|
||||
find_package(Boost "1.33.1" COMPONENTS graph)
|
||||
endif (WIN32)
|
||||
# needed by libkgpgfile
|
||||
-find_package(QGpgme REQUIRED)
|
||||
find_package(KdepimLibs REQUIRED)
|
||||
+find_package(QGpgme REQUIRED)
|
||||
find_package(SharedMimeInfo REQUIRED)
|
||||
|
||||
add_definitions( ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ${KDEPIM_DEFINITIONS})
|
|
@ -7863,6 +7863,8 @@ let
|
|||
inherit (pkgs.gtkLibs) pango;
|
||||
};
|
||||
|
||||
kmymoney = callPackage ../applications/office/kmymoney { };
|
||||
|
||||
kipi_plugins = callPackage ../applications/graphics/kipi-plugins {
|
||||
inherit (pkgs.gtkLibs) gdk_pixbuf;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue