blob: 5b0050533e9fca1900f9dffb11b0794e0a847da7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Tools for accessing and converting various ebook file formats"
HOMEPAGE="https://sourceforge.net/projects/ebook-tools/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~ppc ~ppc64 x86"
IUSE="+lit2epub"
DEPEND="
dev-libs/libxml2
>=dev-libs/libzip-1.7.2:=
"
RDEPEND="${DEPEND}
lit2epub? ( app-text/convertlit )
"
PATCHES=(
"${FILESDIR}/${P}-crashfix.patch"
"${FILESDIR}/${P}-fvisibility-hidden.patch"
"${FILESDIR}/${P}-libzip-cmake.patch"
)
src_prepare() {
cmake_src_prepare
use lit2epub || sed -e "\|lit2epub|d" -i src/tools/CMakeLists.txt || die
}
|