From 57f30080d2ca48609e92aa817ca6f1a2a85f41bd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 14 Apr 2014 04:49:24 +0200 Subject: app-text/kindlegen-2.9: add new ebuild for amazon kindlegen --- app-text/kindlegen/kindlegen-2.9.ebuild | 80 +++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 app-text/kindlegen/kindlegen-2.9.ebuild (limited to 'app-text/kindlegen/kindlegen-2.9.ebuild') diff --git a/app-text/kindlegen/kindlegen-2.9.ebuild b/app-text/kindlegen/kindlegen-2.9.ebuild new file mode 100644 index 0000000..6ba9486 --- /dev/null +++ b/app-text/kindlegen/kindlegen-2.9.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit versionator + +DESCRIPTION="Command line tool for Amazon Kindle publishing." +HOMEPAGE="http://www.amazon.com/gp/feature.html?docId=1000765211" + +MY_PV=$(replace_all_version_separators '_') +SRC_FILE="${PN}_linux_2.6_i386_v${MY_PV}.tar.gz" +SRC_URI="http://kindlegen.s3.amazonaws.com/${SRC_FILE}" +RESTRICT="mirror strip" + +LICENSE="KindleGen-EULA" +SLOT="0" +KEYWORDS="~i686 ~amd64" +LANGUAGES="linguas_fr linguas_it linguas_de linguas_en linguas_es linguas_jp linguas_zh" +IUSE="${LANGUAGES}" + +DEPEND="" +RDEPEND="${DEPEND} + sys-libs/glibc + amd64? ( app-emulation/emul-linux-x86-xlibs )" + +S=${WORKDIR} + +src_install() { + dobin kindlegen || die + + if use linguas_en ; then + docinto / + dodoc EULA.txt + docinto english + dodoc docs/english/* + fi + + if use linguas_de ; then + docinto / + dodoc EULA_German.txt + docinto german + dodoc docs/german/* + fi + + if use linguas_it ; then + docinto / + dodoc EULA_Italian.txt + docinto italian + dodoc docs/italian/* + fi + + if use linguas_fr ; then + docinto / + dodoc EULA_Frensh.txt + docinto frensh + dodoc docs/frensh/* + fi + + if use linguas_es ; then + docinto / + dodoc EULA_Spanish.txt + docinto spanish + dodoc docs/spanish/* + fi + + if use linguas_jp ; then + docinto / + dodoc EULA_Japanese.txt + docinto japanese + dodoc docs/japanese/* + fi + + if use linguas_zh ; then + docinto / + dodoc EULA_Chinese.txt + docinto chinese + dodoc docs/chinese/* + fi +} -- cgit v1.2.3