| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/luminance-hdr-2.3.0.ebuild,v 1.4 2012/09/09 21:10:56 radhermit Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit cmake-utils toolchain-funcs eutils flag-o-matic
|
| 8 |
|
| 9 |
MY_P=${P/_/.}
|
| 10 |
DESCRIPTION="Luminance HDR is a graphical user interface that provides a workflow for HDR imaging."
|
| 11 |
HOMEPAGE="http://qtpfsgui.sourceforge.net"
|
| 12 |
SRC_URI="mirror://sourceforge/qtpfsgui/${MY_P}.tar.bz2"
|
| 13 |
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="amd64 x86"
|
| 17 |
LANGS=" cs de es fi fr hi hu id it pl ro ru sk tr zh"
|
| 18 |
IUSE="sse2 ${LANGS// / linguas_} openmp"
|
| 19 |
|
| 20 |
DEPEND="
|
| 21 |
>=media-gfx/exiv2-0.14
|
| 22 |
media-libs/lcms:2
|
| 23 |
media-libs/libpng
|
| 24 |
>=media-libs/libraw-0.13.4
|
| 25 |
>=media-libs/openexr-1.2.2-r2
|
| 26 |
>=media-libs/tiff-3.8.2-r2
|
| 27 |
sci-libs/fftw:3.0[threads]
|
| 28 |
sci-libs/gsl
|
| 29 |
virtual/jpeg
|
| 30 |
x11-libs/qt-core:4
|
| 31 |
x11-libs/qt-gui:4
|
| 32 |
x11-libs/qt-sql:4
|
| 33 |
x11-libs/qt-webkit:4"
|
| 34 |
RDEPEND="${DEPEND}"
|
| 35 |
|
| 36 |
DOCS=( AUTHORS BUGS Changelog README TODO )
|
| 37 |
|
| 38 |
S=${WORKDIR}/${MY_P}
|
| 39 |
|
| 40 |
pkg_pretend() {
|
| 41 |
if use sse2 ; then
|
| 42 |
append-flags -msse2
|
| 43 |
else
|
| 44 |
eerror "This package requires a CPU supporting the SSE2 instruction set."
|
| 45 |
die "SSE2 support missing"
|
| 46 |
fi
|
| 47 |
|
| 48 |
if use openmp ; then
|
| 49 |
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
| 50 |
fi
|
| 51 |
}
|
| 52 |
|
| 53 |
src_prepare() {
|
| 54 |
# Don't try to define the git version of the release
|
| 55 |
epatch "${FILESDIR}"/${PN}-2.3.0_beta1-no-git.patch
|
| 56 |
|
| 57 |
# Don't install extra docs and fix install dir
|
| 58 |
epatch "${FILESDIR}"/${PN}-2.2.1-docs.patch
|
| 59 |
|
| 60 |
# Fix openmp automagic support
|
| 61 |
epatch "${FILESDIR}"/${PN}-2.2.1-openmp-automagic.patch
|
| 62 |
}
|
| 63 |
|
| 64 |
src_configure() {
|
| 65 |
mycmakeargs=(
|
| 66 |
$(cmake-utils_use_use openmp OPENMP)
|
| 67 |
)
|
| 68 |
cmake-utils_src_configure
|
| 69 |
}
|
| 70 |
|
| 71 |
src_install() {
|
| 72 |
cmake-utils_src_install
|
| 73 |
|
| 74 |
for lang in ${LANGS} ; do
|
| 75 |
if ! use linguas_${lang} ; then
|
| 76 |
rm -f "${D}"/usr/share/${PN}/i18n/{lang,qt}_${lang}.qm || die
|
| 77 |
fi
|
| 78 |
done
|
| 79 |
}
|