From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-text/convertlit/convertlit-1.8-r3.ebuild | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app-text/convertlit/convertlit-1.8-r3.ebuild (limited to 'app-text/convertlit/convertlit-1.8-r3.ebuild') diff --git a/app-text/convertlit/convertlit-1.8-r3.ebuild b/app-text/convertlit/convertlit-1.8-r3.ebuild new file mode 100644 index 000000000000..dcf0a65454ec --- /dev/null +++ b/app-text/convertlit/convertlit-1.8-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +MY_P="clit${PV//./}" + +DESCRIPTION="CLit converts MS ebook .lit files to .opf (xml+html+png+jpg)" +HOMEPAGE="http://www.convertlit.com/" +SRC_URI="http://www.convertlit.com/${MY_P}src.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="" + +RDEPEND=">=dev-libs/libtommath-0.36-r1" + +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}" + +PATCHES=( + "${FILESDIR}/${P}-respectflags-r1.patch" + "${FILESDIR}/fix-Wformat-security-warnings.patch" + "${FILESDIR}/support-ar-variable.patch" +) + +src_compile() { + tc-export CC + + cd "${S}/lib" || die "failed to change into ${S}/lib directory" + emake + cd "${S}/${MY_P}" || die "failed to change into ${S}/${MY_P} directory" + emake +} + +src_install() { + einstalldocs + dobin "${MY_P}/clit" +} -- cgit v1.2.3