From 5722057479e928435a7dd8fd71a3894d1999f736 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 12 Aug 2016 13:22:28 +0200 Subject: [PATCH] app-office/impressive: initial import of version 0.11.1 --- metadata/categories.conf | 1 + .../0001-Use-mpv-instead-of-mplayer.patch | 28 +++++++++ .../impressive/impressive-0.11.1.exheres-0 | 57 +++++++++++++++++++ 3 files changed, 86 insertions(+) create mode 100644 packages/app-office/impressive/files/0001-Use-mpv-instead-of-mplayer.patch create mode 100644 packages/app-office/impressive/impressive-0.11.1.exheres-0 diff --git a/metadata/categories.conf b/metadata/categories.conf index 1d46baef..cea8c8c2 100644 --- a/metadata/categories.conf +++ b/metadata/categories.conf @@ -2,6 +2,7 @@ app-admin app-arch app-crypt app-ergonomics +app-office dev-db dev-games dev-lang diff --git a/packages/app-office/impressive/files/0001-Use-mpv-instead-of-mplayer.patch b/packages/app-office/impressive/files/0001-Use-mpv-instead-of-mplayer.patch new file mode 100644 index 00000000..45cf609d --- /dev/null +++ b/packages/app-office/impressive/files/0001-Use-mpv-instead-of-mplayer.patch @@ -0,0 +1,28 @@ +From 098dab2c37dcda09bb89f797ea07275c76844bcc Mon Sep 17 00:00:00 2001 +From: Julian Ospald +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 + diff --git a/packages/app-office/impressive/impressive-0.11.1.exheres-0 b/packages/app-office/impressive/impressive-0.11.1.exheres-0 new file mode 100644 index 00000000..07c6c88f --- /dev/null +++ b/packages/app-office/impressive/impressive-0.11.1.exheres-0 @@ -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 +} +