app-text/ebook-tools: Add lit2epub USE flag
authorJan Chren <dev.rindeal@gmail.com>
Sat, 19 Mar 2016 19:16:57 +0000 (20:16 +0100)
committerJohannes Huber <johu@gentoo.org>
Mon, 21 Mar 2016 10:47:06 +0000 (11:47 +0100)
Gentoo-bug: 530430

app-text/ebook-tools/ebook-tools-0.2.2-r1.ebuild [new file with mode: 0644]
app-text/ebook-tools/metadata.xml

diff --git a/app-text/ebook-tools/ebook-tools-0.2.2-r1.ebuild b/app-text/ebook-tools/ebook-tools-0.2.2-r1.ebuild
new file mode 100644 (file)
index 0000000..6d1374e
--- /dev/null
@@ -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
+}
index 6e691fb88987c4104e634148925d4b28aad863cf..b2aa1c1313bdee67627f9168e89c29ee5886f957 100644 (file)
@@ -8,4 +8,7 @@
        <upstream>
                <remote-id type="sourceforge">ebook-tools</remote-id>
        </upstream>
+       <use>
+               <flag name="lit2epub">Install lit2epub script</flag>
+       </use>
 </pkgmetadata>