aboutsummaryrefslogtreecommitdiffstats
path: root/media-gfx/posterazor/posterazor-9999.ebuild
blob: 2bca8a568fad2d483444b50bed01e9f72c0454cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
}