aboutsummaryrefslogtreecommitdiffstats
path: root/media-gfx/posterazor
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2015-07-19 19:24:25 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2015-07-19 19:24:25 +0200
commitb4c0a88934bc802170f1776c79d8895043469574 (patch)
tree811ead22199575a5fa741174388acac00bacf006 /media-gfx/posterazor
parent29ef82a4364431d9ddf312b71ec2cf99597d7235 (diff)
downloadoverlay-b4c0a88934bc802170f1776c79d8895043469574.tar.gz
overlay-b4c0a88934bc802170f1776c79d8895043469574.tar.xz
overlay-b4c0a88934bc802170f1776c79d8895043469574.zip
media-gfx/posterazor: add package
Diffstat (limited to '')
-rw-r--r--media-gfx/posterazor/Manifest2
-rw-r--r--media-gfx/posterazor/files/disable-poppler-qt5.patch15
-rw-r--r--media-gfx/posterazor/posterazor-9999.ebuild40
3 files changed, 57 insertions, 0 deletions
diff --git a/media-gfx/posterazor/Manifest b/media-gfx/posterazor/Manifest
new file mode 100644
index 0000000..76ac37f
--- /dev/null
+++ b/media-gfx/posterazor/Manifest
@@ -0,0 +1,2 @@
+AUX disable-poppler-qt5.patch 518 SHA256 3bc2665c4b5ced3017330b703aff073a84b7f36f47df4a63a04418c85d385021 SHA512 2d70feaf74e0d27b51c5c9a92675ec4b9a012c7608314ea597cf01e13162be4888d4a7b45da4bc1c2aadaf915d3e0f12288ce4cafdcc5694f9fb75467cc41421 WHIRLPOOL 1dca51296073ea5c7afd84c4e060f57a06c588242205d15f2cbf7f5663df48632c7605529dd777d3838187d1b7ae3660bf39e54ecacf1e9431cb74c1303b20c7
+EBUILD posterazor-9999.ebuild 863 SHA256 4fc5d926e362f2c2131c1241f1b1cf5fd92455ac382d47a6868f4886fda33e9d SHA512 b00c748e01477a2600a75692b52065e316397a0ca6e37f09cee7109b42b19647a9c7231244177cf3d4b9aa183bc32d8a23c083bfc18001e2eaef4c8f4e97c97b WHIRLPOOL 433c61d51a2ad20243b191e38b1fc41b06fff5444625873ec5ffa52d765ed9dbbe704aea28f560c0f20b5a1ff938f8bf44f98b29ad1e1fe9eb6c20cee3473226
diff --git a/media-gfx/posterazor/files/disable-poppler-qt5.patch b/media-gfx/posterazor/files/disable-poppler-qt5.patch
new file mode 100644
index 0000000..341434f
--- /dev/null
+++ b/media-gfx/posterazor/files/disable-poppler-qt5.patch
@@ -0,0 +1,15 @@
+--- a/src/posterazor.pro 2015-07-19 19:03:26.999334075 +0200
++++ b/src/posterazor.pro 2015-07-19 19:00:59.547695923 +0200
+@@ -30,9 +30,9 @@
+
+ # Poppler-Qt5 is the library we require to be able to process PDF files as input
+ # Comment the following line in order to build PosteRazor without Poppler-Qt5
+-exists( /usr/include/poppler/qt5/poppler-qt5.h ) {
+- DEFINES += POPPLER_QT5_LIB
+-}
++#exists( /usr/include/poppler/qt5/poppler-qt5.h ) {
++# DEFINES += POPPLER_QT5_LIB
++#}
+
+ DEFINES += QT_NO_CAST_FROM_ASCII
+
diff --git a/media-gfx/posterazor/posterazor-9999.ebuild b/media-gfx/posterazor/posterazor-9999.ebuild
new file mode 100644
index 0000000..2bca8a5
--- /dev/null
+++ b/media-gfx/posterazor/posterazor-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=3
+
+inherit git-2 eutils
+
+DESCRIPTION="PosteRazor cuts raster images into multipage PDF documents."
+HOMEPAGE="http://posterazor.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+EGIT_REPO_URI="git://github.com/aportale/posterazor.git"
+SRC_URI=""
+S=${WORKDIR}/${PN}
+
+KEYWORDS="amd64 x86"
+IUSE="poppler-qt5"
+
+RDEPEND="media-libs/freeimage
+ dev-qt/qtgui
+ poppler-qt5? ( app-text/poppler[qt5] )"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ if ! use poppler-qt5; then
+ epatch "${FILESDIR}/disable-poppler-qt5.patch"
+ fi
+}
+
+src_compile() {
+ cd src
+ qmake -o Makefile posterazor.pro
+ make
+}
+
+src_install() {
+ mv ${S}/src/PosteRazor ${S}/src/posterazor
+ exeinto /usr/bin
+ doexe ${S}/src/posterazor
+ dodoc ${S}/CHANGES ${S}/LICENSE ${S}/README
+}