diff options
author | 2017-08-06 18:30:09 +0200 | |
---|---|---|
committer | 2017-08-07 00:03:10 +0200 | |
commit | f4a7cee26469d2116e815c907e618707054a7467 (patch) | |
tree | 9d754bed40372bf5992d48dfd1b798a9a91d0916 /media-gfx/rawtherapee/rawtherapee-5.2.ebuild | |
parent | xfce-extra/xfce4-whiskermenu-plugin: remove old. (diff) | |
download | gentoo-f4a7cee26469d2116e815c907e618707054a7467.tar.gz gentoo-f4a7cee26469d2116e815c907e618707054a7467.tar.bz2 gentoo-f4a7cee26469d2116e815c907e618707054a7467.zip |
media-gfx/rawtherapee-5.2: version bump + cleanup.
Gentoo-Bug: https://bugs.gentoo.org/626108
Gentoo-Bug: https://bugs.gentoo.org/520932
Gentoo-Bug: https://bugs.gentoo.org/615058
Closes: https://github.com/gentoo/gentoo/pull/5326
Diffstat (limited to 'media-gfx/rawtherapee/rawtherapee-5.2.ebuild')
-rw-r--r-- | media-gfx/rawtherapee/rawtherapee-5.2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/media-gfx/rawtherapee/rawtherapee-5.2.ebuild b/media-gfx/rawtherapee/rawtherapee-5.2.ebuild new file mode 100644 index 000000000000..38848a678a86 --- /dev/null +++ b/media-gfx/rawtherapee/rawtherapee-5.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils toolchain-funcs flag-o-matic + +DESCRIPTION="A powerful cross-platform raw image processing program" +HOMEPAGE="http://www.rawtherapee.com/" + +MY_P=${P/_rc/-rc} +SRC_URI="http://rawtherapee.com/shared/source/${MY_P}.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="openmp" + +RDEPEND="x11-libs/gtk+:3 + dev-libs/expat + dev-libs/libsigc++:2 + media-libs/libcanberra[gtk3] + media-libs/tiff:0 + media-libs/libpng:0 + media-libs/libiptcdata + media-libs/lcms:2 + sci-libs/fftw:3.0 + sys-libs/zlib + virtual/jpeg:0" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/pkgconfig + dev-cpp/gtkmm:3.0" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi + # https://bugs.gentoo.org/show_bug.cgi?id=606896#c2 + # https://github.com/vivo75/vivovl/issues/2 + if [[ $(get-flag -O3) != "-O3" ]] ; then + ewarn "upstream suggest using {C,CXX}FLAGS+=\"-O3\" for better performances" + ewarn "see bug#606896#c2" + ewarn "take a look at https://wiki.gentoo.org/wiki//etc/portage/package.env" + ewarn "for suggestion on how to change environment for a single package" + fi +} + +src_configure() { + filter-flags -ffast-math + # In case we add an ebuild for klt we can (i)use that one, + # see http://cecas.clemson.edu/~stb/klt/ + local mycmakeargs=( + -DOPTION_OMP=$(usex openmp) + -DDOCDIR=/usr/share/doc/${PF} + -DCREDITSDIR=/usr/share/${PN} + -DLICENCEDIR=/usr/share/${PN} + -DCACHE_NAME_SUFFIX="" + -DWITH_SYSTEM_KLT="off" + ) + cmake-utils_src_configure +} |