Skip to content

Commit

Permalink
media-gfx/rawtherapee: version bump 5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
vivo75 authored and monsieurp committed May 23, 2017
1 parent 11b4cdb commit 0a48418
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 4 deletions.
1 change: 1 addition & 0 deletions media-gfx/rawtherapee/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST rawtherapee-4.2.tar.xz 7787664 SHA256 fa4c13e8842df096b19d2dabaed5a61f5f9d4547f7b4f0dc6b77f80bdec16479 SHA512 feec61aeb84804cf01ff03fa9d7309f0eb3c04c43818c8397cc6f3ee762aca19484bce7594414d2141248b9740bdd4269fd86f76dcf391c61d4647fa169d48f6 WHIRLPOOL 56cc3e95ae7484cb91cd6c5fd32504b3fbfb17b9d50a38fa490300ff1b096e80a1d5060db3619c34f8b214dd413bfaab57a9748f5a365a87d257e75c753f307a
DIST rawtherapee-5.0-gtk3.tar.xz 10442940 SHA256 25c6bb738535d1efa905bd21fb732bdea352d589d9740a730ec409a49e7eacd8 SHA512 febcde98ada1059d6553a1dc2a86235adaf5fb8ca81b9f744748d3e8ef52109048ce43996f261796b2f345f2ce4a27c4ccc219b33ccfb79c2c2fa6476f19b41a WHIRLPOOL 479a7f37f523c533cf268edc8f2c710ded867febc13df3c4156040ca4d36ad86ff4af2613e9155506eb6a4620d4323fdc3d3f1374c4332393ba57b4b01bcc948
DIST rawtherapee-5.1.tar.xz 10785516 SHA256 fb742065a6b2e1b89df67c70395e52ee1ebd537c86dfc473b41e7af171655b67 SHA512 6a881fe24a4109c7db39cb8bee500eb2f9357c479ddb32b3c9b7987aa5d12e4f10083533b5657a0e0f0713fe4ebc58e0dcf204eb8d5c5b656f3e7867a775ab19 WHIRLPOOL 0fc24843015750ab4747311d5ac6f40e5ebd9cedaa9c78e73c7fa7250dcbda9ea1260b7f6fc9a0c91559be4530a84e3826f991d9b9199d7caf25691ad78fd78b
8 changes: 4 additions & 4 deletions media-gfx/rawtherapee/rawtherapee-4.2-r1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand All @@ -21,13 +21,13 @@ RDEPEND="bzip2? ( app-arch/bzip2 )
dev-libs/expat
dev-libs/libsigc++:2
media-libs/libcanberra[gtk]
media-libs/tiff
media-libs/libpng
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"
virtual/jpeg:0"
DEPEND="${RDEPEND}
app-arch/xz-utils
virtual/pkgconfig"
Expand Down
64 changes: 64 additions & 0 deletions media-gfx/rawtherapee/rawtherapee-5.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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="bzip2 openmp"

RDEPEND="bzip2? ( app-arch/bzip2 )
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
local mycmakeargs=(
-DOPTION_OMP=$(usex openmp)
-DBZIP=$(usex bzip2)
-DDOCDIR=/usr/share/doc/${PF}
-DCREDITSDIR=/usr/share/${PN}
-DLICENCEDIR=/usr/share/${PN}
-DCACHE_NAME_SUFFIX=""
-DCMAKE_CXX_FLAGS="-std=c++11"
)
cmake-utils_src_configure
}

0 comments on commit 0a48418

Please sign in to comment.