Adding libe-book: a library for importing reflowable e-book formats

This commit is contained in:
Michael Raskin 2014-06-27 16:06:41 +04:00
parent 07e4d6dc83
commit 077aa91822
5 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{stdenv, fetchurl, gperf, pkgconfig, librevenge, libxml2, boost, icu, cppunit
, libwpd}:
let
s = # Generated upstream information
rec {
baseName="libe-book";
version="0.0.3";
name="${baseName}-${version}";
hash="06xhg319wbqrkj8914npasv5lr7k2904mmy7wa78063mkh31365i";
url="mirror://sourceforge/project/libebook/libe-book-0.0.3/libe-book-0.0.3.tar.xz";
sha256="06xhg319wbqrkj8914npasv5lr7k2904mmy7wa78063mkh31365i";
};
buildInputs = [
gperf pkgconfig librevenge libxml2 boost icu cppunit libwpd
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
meta = {
inherit (s) version;
description = ''Library for import of reflowable e-book formats'';
license = stdenv.lib.licenses.lgpl21Plus ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -0,0 +1,4 @@
url http://sourceforge.net/projects/libebook/files/
SF_version_dir libe-book-0.0.
version_link '[.]tar.xz/download$'
SF_redirect

View File

@ -0,0 +1,29 @@
{stdenv, fetchurl, gperf, pkgconfig, librevenge, libxml2, boost, icu, cppunit}:
let
s = # Generated upstream information
rec {
baseName="libe-book";
version="0.1.1";
name="${baseName}-${version}";
hash="0awv96q92qgxk22w2vrf4vg90cab5qfsrkbhgz252722mrkd5p4a";
url="mirror://sourceforge/project/libebook/libe-book-0.1.1/libe-book-0.1.1.tar.xz";
sha256="0awv96q92qgxk22w2vrf4vg90cab5qfsrkbhgz252722mrkd5p4a";
};
buildInputs = [
gperf pkgconfig librevenge libxml2 boost icu cppunit
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
meta = {
inherit (s) version;
description = ''Library for import of reflowable e-book formats'';
license = stdenv.lib.licenses.lgpl21Plus ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}

View File

@ -0,0 +1,4 @@
url http://sourceforge.net/projects/libebook/files/
SF_version_dir libe-book-
version_link '[.]tar.xz/download$'
SF_redirect

View File

@ -5099,6 +5099,9 @@ let
liblscp = callPackage ../development/libraries/liblscp { };
libe-book = callPackage ../development/libraries/libe-book {};
libe-book_00 = callPackage ../development/libraries/libe-book/0.0.nix {};
libev = builderDefsPackage ../development/libraries/libev { };
libevent14 = callPackage ../development/libraries/libevent/1.4.nix { };