mailcore2: new package
MailCore 2 provides a simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP. Closes #5430
This commit is contained in:
parent
ebe75cf9c1
commit
8127edc335
55
pkgs/development/libraries/mailcore2/default.nix
Normal file
55
pkgs/development/libraries/mailcore2/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ stdenv, lib, fetchFromGitHub, cmake, libetpan, icu, cyrus_sasl, libctemplate
|
||||
, libuchardet, pkgconfig, glib, libtidy, libxml2, libuuid, openssl
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mailcore2-${version}";
|
||||
|
||||
version = "0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MailCore";
|
||||
repo = "mailcore2";
|
||||
rev = version;
|
||||
sha256 = "1f2kpw8ha4j43jlimw0my9b7x1gbik7yyg1m87q6nhbbsci78qly";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
libetpan cmake icu cyrus_sasl libctemplate libuchardet pkgconfig glib
|
||||
libtidy libxml2 libuuid openssl
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace "tidy/tidy.h" "tidy.h" \
|
||||
--replace "/usr/include/tidy" "${libtidy}/include" \
|
||||
--replace "/usr/include/libxml2" "${libxml2}/include/libxml2" \
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r src/include $out
|
||||
|
||||
mkdir $out/lib
|
||||
cp src/libMailCore.so $out/lib
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = ''
|
||||
(
|
||||
cd unittest
|
||||
LD_LIBRARY_PATH="$(cd ../src; pwd)" TZ=PST8PDT ./unittestcpp ../../unittest/data
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP";
|
||||
homepage = http://libmailcore.com;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
};
|
||||
}
|
@ -12597,6 +12597,8 @@ let
|
||||
|
||||
lilypond = callPackage ../misc/lilypond { guile = guile_1_8; };
|
||||
|
||||
mailcore2 = callPackage ../development/libraries/mailcore2 { };
|
||||
|
||||
martyr = callPackage ../development/libraries/martyr { };
|
||||
|
||||
mess = callPackage ../misc/emulators/mess {
|
||||
|
Loading…
Reference in New Issue
Block a user