/[gentoo-x86]/media-gfx/luminance-hdr/luminance-hdr-2.4.0.ebuild
Gentoo

Contents of /media-gfx/luminance-hdr/luminance-hdr-2.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jul 10 02:39:49 2015 UTC (2 years, 2 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Version bump (bug #516864, patches by José María Fernández González). Add fits use flag, update HOMEPAGE, and add ilmbase dep (bug #543314).

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
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 https://github.com/LuminanceHDR/LuminanceHDR"
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="cpu_flags_x86_sse2 fits openmp test ${LANGS// / linguas_}"
19
20 RDEPEND="
21 dev-libs/boost:0=
22 dev-qt/linguist-tools:5
23 dev-qt/qtconcurrent:5
24 dev-qt/qtcore:5
25 dev-qt/qtdeclarative:5
26 dev-qt/qtgui:5
27 dev-qt/qtnetwork:5
28 dev-qt/qtprintsupport:5
29 dev-qt/qtsql:5
30 dev-qt/qtwebkit:5
31 >=media-gfx/exiv2-0.14:0=
32 media-libs/lcms:2
33 media-libs/libpng:0=
34 >=media-libs/libraw-0.13.4:=
35 media-libs/ilmbase:=
36 >=media-libs/openexr-1.2.2-r2:=
37 >=media-libs/tiff-3.8.2-r2:0
38 sci-libs/fftw:3.0[threads]
39 fits? ( sci-libs/ccfits )
40 sci-libs/gsl
41 virtual/jpeg:0
42 "
43 DEPEND="${RDEPEND}
44 test? ( dev-cpp/gtest )
45 "
46
47 DOCS=( AUTHORS BUGS Changelog README TODO )
48
49 PATCHES=(
50 "${FILESDIR}"/${PN}-2.3.1-no-git.patch
51 "${FILESDIR}"/${PN}-2.3.1-docs.patch
52 "${FILESDIR}"/${PN}-2.3.1-openmp-automagic.patch
53 "${FILESDIR}"/${P}-fits-automagic.patch
54 "${FILESDIR}"/${P}-qtprinter.patch
55 "${FILESDIR}"/${P}-qtquick.patch
56 )
57
58 pkg_pretend() {
59 if use cpu_flags_x86_sse2 ; then
60 append-flags -msse2
61 else
62 eerror "This package requires a CPU supporting the SSE2 instruction set."
63 die "SSE2 support missing"
64 fi
65
66 if use openmp ; then
67 tc-has-openmp || die "Please switch to an openmp compatible compiler"
68 fi
69 }
70
71 src_configure() {
72 mycmakeargs=(
73 $(cmake-utils_use_use openmp OPENMP)
74 $(cmake-utils_use_use fits FITS)
75 )
76 cmake-utils_src_configure
77 }
78
79 src_install() {
80 cmake-utils_src_install
81
82 for lang in ${LANGS} ; do
83 if ! use linguas_${lang} ; then
84 rm -f "${D}"/usr/share/${PN}/i18n/{lang,qt}_${lang}.qm || die
85 fi
86 done
87 }

  ViewVC Help
Powered by ViewVC 1.1.20