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.
47 lines
1.1 KiB
47 lines
1.1 KiB
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{7,8,9} )
|
|
inherit optfeature python-r1
|
|
|
|
DESCRIPTION="Stylish way of giving presentations with Python"
|
|
HOMEPAGE="http://impressive.sourceforge.net/"
|
|
SRC_URI="mirror://sourceforge/${PN}/${PN^}/${PV/_/-}/${PN^}-${PV/_/-}.tar.gz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
RDEPEND="${PYTHON_DEPS}
|
|
app-text/mupdf
|
|
dev-python/pygame[${PYTHON_USEDEP}]
|
|
dev-python/pillow[${PYTHON_USEDEP}]
|
|
x11-apps/xrandr
|
|
|| (
|
|
media-fonts/dejavu
|
|
media-fonts/corefonts
|
|
)
|
|
"
|
|
|
|
DOCS=( changelog.txt demo.pdf )
|
|
HTML_DOCS=( impressive.html )
|
|
|
|
S="${WORKDIR}/${PN^}-${PV/_/-}"
|
|
|
|
src_install() {
|
|
default
|
|
python_foreach_impl python_doscript ${PN}.py
|
|
doman impressive.1
|
|
}
|
|
|
|
pkg_postinst() {
|
|
optfeature "starting web or e-mail hyperlinks from PDF documents" x11-misc/xdg-utils
|
|
optfeature "sound and video playback" media-video/ffmpeg
|
|
optfeature "sound and video playback" media-video/mplayer
|
|
optfeature "extraction of PDF page titles" app-text/pdftk
|
|
}
|