app-office/impressive: initial import of version 0.11.1

This commit is contained in:
Julian Ospald 2016-08-12 13:22:28 +02:00
parent 7cb5443214
commit 5722057479
3 changed files with 86 additions and 0 deletions

View File

@ -2,6 +2,7 @@ app-admin
app-arch app-arch
app-crypt app-crypt
app-ergonomics app-ergonomics
app-office
dev-db dev-db
dev-games dev-games
dev-lang dev-lang

View File

@ -0,0 +1,28 @@
From 098dab2c37dcda09bb89f797ea07275c76844bcc Mon Sep 17 00:00:00 2001
From: Julian Ospald <hasufell@posteo.de>
Date: Fri, 12 Aug 2016 12:55:50 +0200
Subject: [PATCH] Use mpv instead of mplayer
Upstream: no
---
impressive.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/impressive.py b/impressive.py
index 801b364..8a69a0b 100755
--- a/impressive.py
+++ b/impressive.py
@@ -169,8 +169,8 @@ if os.name == "nt":
else:
def FindBinary(x): return x
GhostScriptPlatformOptions = []
- MPlayerPath = "mplayer"
- MPlayerPlatformOptions = [ "-vo", "gl" ]
+ MPlayerPath = "mpv"
+ MPlayerPlatformOptions = [ "--vo=opengl" ]
MPlayerColorKey = False
pdftkPath = "pdftk"
FontPath = ["/usr/share/fonts", "/usr/local/share/fonts", "/usr/X11R6/lib/X11/fonts/TTF"]
--
2.9.2

View File

@ -0,0 +1,57 @@
# Copyright 2016 Julian Ospald
# Distributed under the terms of the GNU General Public License v2
MY_PNV="Impressive-${PV}"
require sourceforge [ suffix=tar.gz ]
require python [ has_bin=true multibuild=false blacklist="3" ]
SUMMARY="A fancy PDF presentation program"
LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
DEPENDENCIES="
run:
app-text/ghostscript
app-text/pdftk
dev-python/Pillow[python_abis:*(-)?]
dev-python/pygame[python_abis:*(-)?]
x11-apps/xrandr
x11-dri/mesa
suggestion:
app-text/mupdf [[ description = [ Alternate PDF rendering ] ]]
app-text/poppler [[ description = [ Alternate PDF rendering ] ]]
media/mpv [[ description = [ For sound and video playback ] ]]
x11-apps/xdg-utils [[ description = [ For starting web or e-mail
hyperlinks from PDF documents ] ]]
"
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/0001-Use-mpv-instead-of-mplayer.patch
)
WORK=${WORKBASE}/${MY_PNV}
src_prepare() {
default
# fix shebang
edo sed -i \
-e "s:/usr/bin/env python:/usr/$(exhost --target)/bin/env ${PYTHON}:" \
${PN}.py
}
src_install() {
dobin ${PN}.py
dosym ${PN}.py /usr/$(exhost --target)/bin/${PN}
# docs
doman ${PN}.1
dodoc changelog.txt demo.pdf
insinto /usr/share/doc/${PNVR}/html
doins ${PN}.html
}