summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2013-09-27 07:20:00 +0000
committerTim Harder <radhermit@gentoo.org>2013-09-27 07:20:00 +0000
commita2962e40dd47502df1f2faae73441f92182b4f8e (patch)
treee06531c9865fed9ecb67f366b72810500cc2b1f0 /media-gfx/luminance-hdr
parentVersion bump. (diff)
downloadhistorical-a2962e40dd47502df1f2faae73441f92182b4f8e.tar.gz
historical-a2962e40dd47502df1f2faae73441f92182b4f8e.tar.bz2
historical-a2962e40dd47502df1f2faae73441f92182b4f8e.zip
Version bump and update to EAPI 5 (bug #466018).
Package-Manager: portage-2.2.6/cvs/Linux x86_64 Manifest-Sign-Key: 0x4AB3E85B4F064CA3
Diffstat (limited to 'media-gfx/luminance-hdr')
-rw-r--r--media-gfx/luminance-hdr/ChangeLog10
-rw-r--r--media-gfx/luminance-hdr/Manifest31
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch15
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch52
-rw-r--r--media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch38
-rw-r--r--media-gfx/luminance-hdr/luminance-hdr-2.3.1.ebuild79
6 files changed, 207 insertions, 18 deletions
diff --git a/media-gfx/luminance-hdr/ChangeLog b/media-gfx/luminance-hdr/ChangeLog
index e5072a1037ca..fcf837682cf1 100644
--- a/media-gfx/luminance-hdr/ChangeLog
+++ b/media-gfx/luminance-hdr/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-gfx/luminance-hdr
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/ChangeLog,v 1.26 2013/03/02 21:37:22 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/ChangeLog,v 1.27 2013/09/27 07:19:58 radhermit Exp $
+
+*luminance-hdr-2.3.1 (27 Sep 2013)
+
+ 27 Sep 2013; Tim Harder <radhermit@gentoo.org> +luminance-hdr-2.3.1.ebuild,
+ +files/luminance-hdr-2.3.1-docs.patch,
+ +files/luminance-hdr-2.3.1-no-git.patch,
+ +files/luminance-hdr-2.3.1-openmp-automagic.patch:
+ Version bump and update to EAPI 5 (bug #466018).
02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> luminance-hdr-2.3.0.ebuild:
Move Qt dependencies to the new category
diff --git a/media-gfx/luminance-hdr/Manifest b/media-gfx/luminance-hdr/Manifest
index afc8ba2ce98d..4102f3c8087d 100644
--- a/media-gfx/luminance-hdr/Manifest
+++ b/media-gfx/luminance-hdr/Manifest
@@ -4,26 +4,23 @@ Hash: SHA256
AUX luminance-hdr-2.2.1-docs.patch 750 SHA256 9d7ab37083944ad4faa813af51301ee896400b7bb38a07b7143a3a4ca08d511c SHA512 9c7732d1985639e5b7f9ec853f3afd0d0e0cd07a143b165b6183a7697b9fb4c5cd494b443f60e81da522fcf2242a62631cf1d30a9ce733aa285874bf63f24555 WHIRLPOOL e873d2a2b15bc71af24df4c52f0a5db3fa182b7971c43936594137ebe60a0c3a3471e6fc709ea8f75036fe2cd2eeebb4da71e5cf68df717afa4f4b2508d4bf9a
AUX luminance-hdr-2.2.1-openmp-automagic.patch 1719 SHA256 45c316653de319d61d47618598fa4e665508311efdf412d9e31ea817acb1e496 SHA512 0045ec1b9b07c0fe91364f93e3cdf5eeb1301da76cbddf97be6651bf4b87f1e5b7eb42c5b82161ebe4592322937ceca468f7e462b31d004ab2e4f17b8183e692 WHIRLPOOL 7b6f9afee3c39684fd0d719470c5a5a1f877e516d0a04cb2b0a87e3b9e49b1eac60a7d294c45acf45a9a5435cc59993dad47fe873d4108fad8930cb777c0adfc
AUX luminance-hdr-2.3.0_beta1-no-git.patch 2361 SHA256 fa49258af1f68972024309804309dec5783e7e04c9984471c14f353c780759ab SHA512 e8dab5ce3de975348e0f75b281e17e1d410ce4d25ced5ff89057369e751bb4ac15e7c73bb7cbf30fdf79536de3c13c3f91a4a891a919ed3da2424bcb6d667769 WHIRLPOOL c058c684837cede728f1b01fea9833f8bcb5c2d66c61f907d6f2ed9cfe6f0f54f03eb32b7ae7ef858874ba5725158e98ae1203d4ca89975f1edd8db7a01560ef
+AUX luminance-hdr-2.3.1-docs.patch 660 SHA256 c9ce6365f1db431ab659fde9bcfae06b2a655b9656ea093add3e01bcd6a7ed18 SHA512 dbb58e36efd1aab3b8f308e512c6727e8f7421b172304bc0608faacde4c0964b77628afda9df658b793ba4a62dd914373590dcecec1c6d9e696e4cbdcdab82f5 WHIRLPOOL c2edc42abd947ed32d9f0e178add6ea908c9a7b18af348e3074b88bd5ae420fc7ea15ae87fbee10420fea9e2f5b21777035a0098de73c5d71ac632e6bce440c8
+AUX luminance-hdr-2.3.1-no-git.patch 2105 SHA256 5c2c64c553f93196daa1e770d47c19f6bea6fe9f3595ef4062d3889c5ff42c42 SHA512 9d29d8484706284757403db309631e9c6e4c8cf4c99e58062f8a4343758c46157fcd432ed668a9e5bdcea9caf27090b120f832787bccd11495d6a099eb56b9f1 WHIRLPOOL 5a75fbd6623701d2f1ad76a414a549da0a4a13c3f380eb43aed9f8e513ab3999430f65c841486f9d427d3d4d75b0e28c8c5d133abe596435c884cdbaba35793b
+AUX luminance-hdr-2.3.1-openmp-automagic.patch 1598 SHA256 6764edaceea13c54641f6a63fccd904e2b5e8723102053476735f6ca737424c7 SHA512 83fcdb0e824fc436d0d2d0ee225ce2539d938445f9f676f4a501cc6379f48dde34acc5d6074360ceec0099f156cc24475b1383a1a9d2461e3ff3da2e3d9fee86 WHIRLPOOL 1f9b752df786c5702b45171397a2ea2172911b10363bb36d18bb450cae886b4251f03e6cfac9a781ba082d73d82b44747045e59973243b9ed163566e60129ccf
DIST luminance-hdr-2.3.0.tar.bz2 5398576 SHA256 dada0795b58843912bcb57ce61dcd615bcb9f9437b610a37ff813ad2c899c676 SHA512 6806782bec25cde92eeafc1e6a6aeb801226c0db27bd9163829b4556209267a9f5f0ecaae934fbb42a25a780cd131bc34880bc48d6d68867fe1ab117bb4cde08 WHIRLPOOL 8f1430b0e46d53e79e7ba565b73e190b0ad6efb9f2937f8612b0ddda4d442fbc4c31b055a4904c48338e00dc8719cefb94b7f43fff040255f403ebeb4e8aac95
+DIST luminance-hdr-2.3.1.tar.bz2 10328308 SHA256 7a2a81cd0f2da6b6780bdd47e5f902c9dfaeb8107d763ea63007b6fcdcb4d23b SHA512 d4c3fd51c802c5fa69e01685d89e113a4086a15f50e6e37e4e7d3520c7e30e67355356fb330b8a52c09c48593c9010fee6bea239b74e313e85dad2e1fe895efe WHIRLPOOL bfd2f6e43b260f89afaadcb9672ad59c1e6b8e5aba5ecbaaffee18fd67f30d626ba9933d30a3dc919dde7640035f3fddce8d3b47d91e4264b0e91d4ebfe02454
EBUILD luminance-hdr-2.3.0.ebuild 1900 SHA256 aa80cfacb43853bce0815746302ff0dc5f498fe76316e4fdefbdd13c2017b880 SHA512 c2bd2f084fd6ba239fcfa428887e9c1a9fcbb0027b3cc5ad43fda54e921b571f8d099b3d1f46606796792948dddbeb742d72e34eadbfc4c0066d113bcb9d283d WHIRLPOOL 1d36c482989addfdc38d789acc453c1be2e2468ab846beac47cb5804677b4635dd5940708afddf38378c716e417e2f56f2d917c998989e2043247128894bdcea
-MISC ChangeLog 7111 SHA256 c70af512d4d521db52e6f848b8de5b2d9a21addace94ade0b15b0ed477bd00fb SHA512 f842be396c6f70842a5a9b7bf0f790254420ba5493f1c17b6100fc5d1f2a15b9341229119d35e004f97e5d8a275506c4666bc3d879754bb0c6792bfb5cdc75a1 WHIRLPOOL 08dc5fe2027c3047015d4b39fa698edfc53224e55382fe68803e58bae23a25ed197abf19d2b079f97b063f7df9db0cbd15e4bfcd3fa7432e5f6f16a63056af0f
+EBUILD luminance-hdr-2.3.1.ebuild 1877 SHA256 fc2c5d79afa448a0a607bd4f4cb55dd3d56c0988db25c0c85b8cfe7a116baee0 SHA512 4138a3b9aa098ca9ecc346e74b7dcd0d774b3d2197acce0b1503fdd5e2f61795462af53e78568565726dd9f272a3c1f7c83f4ee851d0893de9a0180d34f53c61 WHIRLPOOL 2f15fa09f666e49e594d8a6526b527abdbe8ab91350ba367333659d356432a2e5f2f804a8930639d0b262c05174936f4185b0d5bd2ec17e7b619e7414fb32ca0
+MISC ChangeLog 7415 SHA256 5fc38e1cf2d43254bab1a73cf79df51a72b629c49f932f4065531690ca95629c SHA512 68294b0ce7ca5b9cd534a2ada11aac31a8c4a8e929293cce5a9ca6b05d16ea3c4ce7486a9f2451fc8e54485460aa2a03d8199262119103110bb4bb76ff61e4b5 WHIRLPOOL 482bbe80eaaf653f09dc42cd36f96a5c8a328b54081ea8687ffffb1130b6539fa389befe8a878f106831646b378c83c527e54f8a29cb74143169bc1c9346720c
MISC metadata.xml 937 SHA256 03752b3db20bdd5f73b81a4c7ac7a6173b7825c55aef76758cd48db98e778ef6 SHA512 3fe1641ac29499d1558edcfb5d51c461ce3b0da83627b1d4c3ae06adedbad95014d0e31353e207f86d882ae1b9df3b51a1cd8ef1619eac94327afa284eb1b351 WHIRLPOOL 007fce14ede771ed8d8b4e64e0de03837745b5c6a9629e080d41757f5c2d61628a8d0c29b84e5f5720e7bff18ee58b78abb22e503b4e885c5e48a8e977e62dfb
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQJ8BAEBCABmBQJRMnEQXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
-OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88QesQAJ8wvbAYluMPxoLS4uKVYVao
-HOSNGfPs/qPJNgGXATcp1KcPlnD0M3h/LFlmYo6AerYbbVfx7jbTnj9xyxrNvjzN
-0aNs9YUiX00LSEz2SR8NH3NS6TAwp8ZGPA3DwYjzGyNbEDdBNjdnPxybCa6rznET
-8qw2DZPT0s9N+a/WeC96pMN0/iUtsCvdPQdqWHAUQrr/C5+nvdV5GNcsXXlG26Gp
-O0g1EUj8hplWKWuqvMbC3kViQ5SIVpMbsjFOh1n0AVetAPyxLqp0U6jhYQqtosku
-3jPl4++H+z3Dlxwpoo9SBQGR9iM+bj2LTO61FauTujQ2CHATV+u7/1IgHBSx1dSl
-atPeT3l6s9tSeYbdXi/vN73XZT6BMSWV0E+kN3HBi7I9ML+Q4BTfLNzEnSgy16s6
-HwEe2+e5Hsqsg9L9jOxJYLuHbAQQxJuP9ObenMCbs/GpuSFt0LS9yJ44trNlJ19O
-yPptfPIzGlZx5HNg2foeZ7kqZPDD7dFtk/EWAyYIoUhS8P++YnNk08IEtCw0p6wa
-j/dT0ADvbzDjRPwntF//JfByg43sYEcr2Uk8xQYGAe+ILEL0ZodBhz2srbWJVZSO
-1rVwElfLlTPq/JHYgor4cBkMY9bXK1T2e3mzqqpWPnZHCnG3xByiel4MNqolNtF0
-Y+XI49G5j2zJiF8BT9tE
-=HRi9
+iQEcBAEBCAAGBQJSRTGfAAoJEEqz6FtPBkyjWsMH/0AveoVQwINZdmjngv6J88f4
+uAf3NqFq6m/iF+iy8f6b0/2LP1rjygEkehXQFEErpT7iO6gpOHwcosUhpnOwvYke
+EVJ8Bwva5ED8g6KOvqjC9zZBkghN9vkB8pJMp6IciRaJgJ1tsQ+Hy3dQsdu3EdRW
+rElcQ87YkmgdOcdb6OMRFLD32ECEJjSGvrcXp4wuNxVBknPp7NFU5TENJsh4XcVI
+KNqytKVBhkGyG15bjMX/Q2d+I9hTClKUhUTu2iIzApuHq8mRGRxGTUCkQhWAb3xD
+GtyQV3udL6uLlDE1wN2r3PrVFJhrQiVXM5zi5kVSoaALEiKJXAjkO1l5jOsI6S8=
+=b3vs
-----END PGP SIGNATURE-----
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch
new file mode 100644
index 000000000000..08b71c78c6b8
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-docs.patch
@@ -0,0 +1,15 @@
+--- luminance-hdr-2.3.1/CMakeLists.txt
++++ luminance-hdr-2.3.1/CMakeLists.txt
+@@ -250,12 +250,6 @@
+
+ INSTALL(FILES ${CMAKE_SOURCE_DIR}/images/luminance-hdr.png DESTINATION share/icons/hicolor/48x48/apps) # icon
+ INSTALL(FILES ${CMAKE_SOURCE_DIR}/luminance-hdr.desktop DESTINATION share/applications) #desktop entry
+- INSTALL(FILES
+- ${CMAKE_SOURCE_DIR}/AUTHORS
+- ${CMAKE_SOURCE_DIR}/README
+- ${CMAKE_SOURCE_DIR}/LICENSE
+- ${CMAKE_SOURCE_DIR}/Changelog
+- DESTINATION share/luminance-hdr) #info files
+ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/help DESTINATION share/luminance-hdr) # help directory
+ # Microsoft Windows
+ ELSEIF(WIN32)
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch
new file mode 100644
index 000000000000..de4ab4846488
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-no-git.patch
@@ -0,0 +1,52 @@
+--- luminance-hdr-2.3.1/CMakeLists.txt
++++ luminance-hdr-2.3.1/CMakeLists.txt
+@@ -32,12 +32,6 @@
+ ${QT_QTCORE_LIBRARIES} ${QT_QTGUI_LIBRARIES} ${QT_QTNETWORK_LIBRARIES}
+ ${QT_QTWEBKIT_LIBRARIES} ${QT_QTXML_LIBRARIES} ${QT_QTSQL_LIBRARIES})
+
+-FIND_PACKAGE(Git)
+-IF(GIT_FOUND)
+- include(GetGitRevisionDescription)
+- get_git_head_revision(GIT_REFSPEC GIT_SHA1)
+-ENDIF()
+-
+ IF(WIN32)
+ # Windows Section
+
+--- luminance-hdr-2.3.1.orig/src/Common/CMakeLists.txt
++++ luminance-hdr-2.3.1/src/Common/CMakeLists.txt
+@@ -1,5 +1,3 @@
+-CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in
+- ${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp @ONLY)
+ CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/global.hxx.in
+ ${CMAKE_CURRENT_BINARY_DIR}/global.hxx @ONLY)
+ CONFIGURE_FILE( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
+@@ -32,8 +30,7 @@
+
+ ADD_LIBRARY(common ${FILES_H} ${FILES_CPP} ${FILES_MOC} ${FILES_HXX} ${FILES_UI_H}
+ ${CMAKE_CURRENT_BINARY_DIR}/global.hxx
+- ${CMAKE_CURRENT_BINARY_DIR}/config.h
+- ${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp)
++ ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+
+ SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${FILES_CPP} ${FILES_H} ${FILES_UI} ${FILES_HXX} PARENT_SCOPE)
+ SET(LUMINANCE_MODULES_GUI ${LUMINANCE_MODULES_GUI} common PARENT_SCOPE)
+--- luminance-hdr-2.3.1.orig/src/UI/UMessageBox.cpp
++++ luminance-hdr-2.3.1/src/UI/UMessageBox.cpp
+@@ -28,7 +28,6 @@
+
+ #include "UI/UMessageBox.h"
+
+-#include "Common/GitSHA1.h"
+ #include "Common/config.h"
+ #include "Common/archs.h"
+ #include "ui_about.h"
+@@ -92,7 +91,7 @@
+ ui.authorsBox->setOpenExternalLinks(true);
+ ui.thanksToBox->setOpenExternalLinks(true);
+ ui.GPLbox->setTextInteractionFlags(Qt::TextSelectableByMouse);
+- ui.label_version->setText(ui.label_version->text().append(QString(LUMINANCEVERSION)).append(" [Build ").append(QString(g_GIT_SHA1).left(6)).append("]"));
++ ui.label_version->setText(ui.label_version->text().append(QString(LUMINANCEVERSION)));
+
+ bool license_file_not_found=true;
+ QString docDir = QCoreApplication::applicationDirPath();
diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch
new file mode 100644
index 000000000000..d83e64e0c21f
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.3.1-openmp-automagic.patch
@@ -0,0 +1,38 @@
+--- luminance-hdr-2.3.1/cmake/CompilerSettings.cmake
++++ luminance-hdr-2.3.1/cmake/CompilerSettings.cmake
+@@ -8,6 +8,8 @@
+ ENDIF()
+ ENDIF()
+
++OPTION(USE_OPENMP "Use openmp threading support." ON)
++
+ #Activate C++11 support, when available
+ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
+ execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
+@@ -39,16 +41,18 @@
+ endif()
+
+ #OpenMP Support under Linux, Windows with MSVC & MacOS X with GCC >= 4.3
+-IF(MSVC)
+- FIND_PACKAGE(OpenMP REQUIRED)
+- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
+-ELSEIF(CMAKE_COMPILER_IS_GNUCC AND UNIX)
+- EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
+- IF(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
+- MESSAGE(STATUS "GCC >= 4.3")
++IF(USE_OPENMP)
++ IF(MSVC)
+ FIND_PACKAGE(OpenMP REQUIRED)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
++ ELSEIF(CMAKE_COMPILER_IS_GNUCC AND UNIX)
++ EXECUTE_PROCESS(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
++ IF(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
++ MESSAGE(STATUS "GCC >= 4.3")
++ FIND_PACKAGE(OpenMP REQUIRED)
++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
++ ENDIF()
+ ENDIF()
+ ENDIF()
diff --git a/media-gfx/luminance-hdr/luminance-hdr-2.3.1.ebuild b/media-gfx/luminance-hdr/luminance-hdr-2.3.1.ebuild
new file mode 100644
index 000000000000..4ce72e765246
--- /dev/null
+++ b/media-gfx/luminance-hdr/luminance-hdr-2.3.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/luminance-hdr-2.3.1.ebuild,v 1.1 2013/09/27 07:19:58 radhermit Exp $
+
+EAPI=5
+
+inherit cmake-utils toolchain-funcs eutils flag-o-matic
+
+MY_P=${P/_/.}
+DESCRIPTION="Luminance HDR is a graphical user interface that provides a workflow for HDR imaging."
+HOMEPAGE="http://qtpfsgui.sourceforge.net"
+SRC_URI="mirror://sourceforge/qtpfsgui/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+LANGS=" cs de es fi fr hi hu id it pl ro ru sk tr zh"
+IUSE="sse2 ${LANGS// / linguas_} openmp"
+
+DEPEND="
+ >=media-gfx/exiv2-0.14
+ media-libs/lcms:2
+ media-libs/libpng:0=
+ >=media-libs/libraw-0.13.4:=
+ >=media-libs/openexr-1.2.2-r2:=
+ >=media-libs/tiff-3.8.2-r2:0
+ sci-libs/fftw:3.0[threads]
+ sci-libs/gsl
+ virtual/jpeg:0
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsql:4
+ dev-qt/qtwebkit:4"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS BUGS Changelog README TODO )
+
+S=${WORKDIR}
+
+pkg_pretend() {
+ if use 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_prepare() {
+ # don't try to define the git version of the release
+ epatch "${FILESDIR}"/${P}-no-git.patch
+
+ # don't install extra docs and fix install dir
+ epatch "${FILESDIR}"/${P}-docs.patch
+
+ # fix openmp automagic support
+ epatch "${FILESDIR}"/${P}-openmp-automagic.patch
+}
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_use openmp OPENMP)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ for lang in ${LANGS} ; do
+ if ! use linguas_${lang} ; then
+ rm -f "${D}"/usr/share/${PN}/i18n/{lang,qt}_${lang}.qm || die
+ fi
+ done
+}