commit:     3a926c800bfbb951cc31c691fb2ee30eb2bf1885
Author:     Jan Chren <dev.rindeal <AT> gmail <DOT> com>
AuthorDate: Sat Mar 19 19:16:57 2016 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 10:47:06 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a926c80

app-text/ebook-tools: Add lit2epub USE flag

Gentoo-bug: 530430

 app-text/ebook-tools/ebook-tools-0.2.2-r1.ebuild | 32 ++++++++++++++++++++++++
 app-text/ebook-tools/metadata.xml                |  3 +++
 2 files changed, 35 insertions(+)

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
index 0000000..6d1374e
--- /dev/null
+++ b/app-text/ebook-tools/ebook-tools-0.2.2-r1.ebuild
@@ -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
+}

diff --git a/app-text/ebook-tools/metadata.xml 
b/app-text/ebook-tools/metadata.xml
index 6e691fb..b2aa1c1 100644
--- a/app-text/ebook-tools/metadata.xml
+++ b/app-text/ebook-tools/metadata.xml
@@ -8,4 +8,7 @@
        <upstream>
                <remote-id type="sourceforge">ebook-tools</remote-id>
        </upstream>
+       <use>
+               <flag name="lit2epub">Install lit2epub script</flag>
+       </use>
 </pkgmetadata>

Reply via email to