Skip to content

Commit

Permalink
app-text/ebook-tools: Add lit2epub USE flag
Browse files Browse the repository at this point in the history
Gentoo-bug: 530430
  • Loading branch information
rindeal authored and johu committed Mar 21, 2016
1 parent 086ec84 commit 3a926c8
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions app-text/ebook-tools/ebook-tools-0.2.2-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit cmake-utils multilib

DESCRIPTION="Tools for accessing and converting various ebook file formats"
HOMEPAGE="http://sourceforge.net/projects/ebook-tools"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd"
IUSE="+lit2epub"

DEPEND="
dev-libs/libxml2
dev-libs/libzip
"
RDEPEND="${DEPEND}
lit2epub? ( app-text/convertlit )
"

DOCS=( INSTALL README TODO )

src_prepare() {
default

use lit2epub || sed -i -e '\|lit2epub|d' -- 'src/tools/CMakeLists.txt' || die
}
3 changes: 3 additions & 0 deletions app-text/ebook-tools/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
<upstream>
<remote-id type="sourceforge">ebook-tools</remote-id>
</upstream>
<use>
<flag name="lit2epub">Install lit2epub script</flag>
</use>
</pkgmetadata>

0 comments on commit 3a926c8

Please sign in to comment.