diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /media-gfx/luminance-hdr/luminance-hdr-2.6.0-r1.ebuild | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'media-gfx/luminance-hdr/luminance-hdr-2.6.0-r1.ebuild')
-rw-r--r-- | media-gfx/luminance-hdr/luminance-hdr-2.6.0-r1.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/media-gfx/luminance-hdr/luminance-hdr-2.6.0-r1.ebuild b/media-gfx/luminance-hdr/luminance-hdr-2.6.0-r1.ebuild new file mode 100644 index 000000000000..6ad066bc4226 --- /dev/null +++ b/media-gfx/luminance-hdr/luminance-hdr-2.6.0-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake toolchain-funcs flag-o-matic xdg-utils + +DESCRIPTION="Graphical user interface that provides a workflow for HDR imaging" +HOMEPAGE="http://qtpfsgui.sourceforge.net https://github.com/LuminanceHDR/LuminanceHDR" +SRC_URI="mirror://sourceforge/qtpfsgui/${P/_/.}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="cpu_flags_x86_sse2 fits openmp test" +RESTRICT="!test? ( test )" + +BDEPEND=" + dev-qt/linguist-tools:5 +" +RDEPEND=" + dev-libs/boost:0= + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtwebengine:5[widgets] + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + media-gfx/exiv2:= + media-libs/ilmbase:= + media-libs/lcms:2 + media-libs/libpng:0= + media-libs/libraw:= + media-libs/openexr:= + media-libs/tiff:0 + sci-libs/fftw:3.0=[threads] + sci-libs/gsl:= + virtual/jpeg:0 + fits? ( sci-libs/cfitsio:= ) +" +DEPEND="${RDEPEND} + dev-cpp/eigen:3 + test? ( dev-cpp/gtest ) +" + +PATCHES=( + "${FILESDIR}"/${P}-cmake.patch + "${FILESDIR}"/${P}-no-git.patch + "${FILESDIR}"/${P}-docs.patch + "${FILESDIR}"/${PN}-2.5.1-openmp-automagic.patch +) + +pkg_pretend() { + if use cpu_flags_x86_sse2 ; then + append-flags -msse2 + else + eerror "This package requires a CPU supporting the SSE2 instruction set." + die "SSE2 support missing" + fi + + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package fits CFITSIO) + -DUSE_OPENMP="$(usex openmp)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + mkdir -p "${D}/usr/share/metainfo" || die + mv "${D}/usr/share/appdata/"* "${D}/usr/share/metainfo/" || die + rmdir "${D}/usr/share/appdata" || die +} + +pkg_postinst() { + xdg_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} |