You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/chm2pdf/chm2pdf-0.9.1-r2.ebuild

41 lines
884 B

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/chm2pdf/chm2pdf-0.9.1-r2.ebuild,v 1.1 2015/02/26 14:19:59 idella4 Exp $
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit python-single-r1
DESCRIPTION="A script that converts a CHM file into a single PDF file"
HOMEPAGE="http://code.google.com/p/chm2pdf/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE=""
RDEPEND="dev-python/pychm[${PYTHON_USEDEP}]
app-text/htmldoc
>=dev-libs/chmlib-0.40-r1[examples]
${PYTHON_DEPS}"
REQUIRED_USE=${PYTHON_REQUIRED_USE}
PATCHES=( "${FILESDIR}/tempdir.patch" )
pkg_setup() {
python-single-r1_pkg_setup
}
src_prepare(){
python_fix_shebang .
}
src_install() {
default
python_doscript ${PN} || die "failed to create executable"
}