diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-03-13 07:58:17 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-03-13 07:58:17 +0000 |
commit | 8decee9ec50dfc1bc33dbeee59b6d96e335f3f20 (patch) | |
tree | ae3210f3c8b75a3f23d64c682f4d1a8cfcfba825 /media-gfx | |
parent | Remove old. (diff) | |
download | gentoo-2-8decee9ec50dfc1bc33dbeee59b6d96e335f3f20.tar.gz gentoo-2-8decee9ec50dfc1bc33dbeee59b6d96e335f3f20.tar.bz2 gentoo-2-8decee9ec50dfc1bc33dbeee59b6d96e335f3f20.zip |
Version bump (bug #407967).
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
5 files changed, 198 insertions, 1 deletions
diff --git a/media-gfx/luminance-hdr/ChangeLog b/media-gfx/luminance-hdr/ChangeLog index 046a78a617d6..6d867f17b342 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-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/ChangeLog,v 1.15 2012/02/23 05:24:57 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/ChangeLog,v 1.16 2012/03/13 07:58:17 radhermit Exp $ + +*luminance-hdr-2.2.1 (13 Mar 2012) + + 13 Mar 2012; Tim Harder <radhermit@gentoo.org> +luminance-hdr-2.2.1.ebuild, + +files/luminance-hdr-2.2.1-docs.patch, + +files/luminance-hdr-2.2.1-no-git.patch, + +files/luminance-hdr-2.2.1-openmp-automagic.patch: + Version bump (bug #407967). 23 Feb 2012; Tim Harder <radhermit@gentoo.org> luminance-hdr-2.2.0.ebuild: Respect user CFLAGS and use epatch directly instead of the PATCHES array. diff --git a/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-docs.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-docs.patch new file mode 100644 index 000000000000..d44e635dd1b7 --- /dev/null +++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-docs.patch @@ -0,0 +1,15 @@ +--- luminance-hdr-2.2.1/CMakeLists.txt ++++ luminance-hdr-2.2.1/CMakeLists.txt +@@ -245,12 +245,6 @@ + INSTALL(FILES ${LUMINANCE_QM} DESTINATION share/luminance-hdr/i18n) # i18n
+ 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.2.1-no-git.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-no-git.patch new file mode 100644 index 000000000000..b3392000e288 --- /dev/null +++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-no-git.patch @@ -0,0 +1,68 @@ +--- luminance-hdr-2.2.1/CMakeLists.txt ++++ luminance-hdr-2.2.1/CMakeLists.txt +@@ -34,30 +34,6 @@ +
+ set(LIBS ${LIBS} ${QT_QTCORE_LIBRARIES} ${QT_QTGUI_LIBRARIES} ${QT_QTWEBKIT_LIBRARIES} ${QT_QTXML_LIBRARIES} ${QT_QTSQL_LIBRARIES})
+
+-FIND_PACKAGE(Git)
+-#FIND_PACKAGE(Git QUIET)
+-IF(NOT GIT_FOUND)
+- message(STATUS "Git not found")
+- FIND_FILE(GIT_EXECUTABLE git.exe
+- $ENV{CYGWIN_DIR}\\bin
+- $ENV{CYGWIN_DIR}
+- )
+- IF (EXISTS ${GIT_EXECUTABLE})
+- SET(GIT_FOUND 1)
+- ENDIF()
+- FIND_FILE(GIT_EXE git
+- $ENV{/usr/bin}
+- )
+- IF (EXISTS ${GIT_EXE})
+- SET(GIT_FOUND 1)
+- ENDIF()
+-ENDIF()
+-
+-IF(GIT_FOUND)
+- include(GetGitRevisionDescription)
+- get_git_head_revision(GIT_REFSPEC GIT_SHA1)
+-ENDIF()
+-
+ IF(WIN32)
+ # Windows Section
+ SET(OPENEXR_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../DEPs/include/OpenEXR")
+--- luminance-hdr-2.2.1/src/Common/CMakeLists.txt ++++ luminance-hdr-2.2.1/src/Common/CMakeLists.txt +@@ -1,4 +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) + + #SET(FILES_UI ) +@@ -22,7 +21,6 @@ + + ADD_LIBRARY(common ${FILES_H} ${FILES_CPP} ${FILES_MOC} ${FILES_HXX} ++${CMAKE_CURRENT_BINARY_DIR}/global.hxx) +-${CMAKE_CURRENT_BINARY_DIR}/global.hxx +-${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp) + + 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.2.1/src/UI/UMessageBox.cpp ++++ luminance-hdr-2.2.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" +@@ -78,7 +77,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.2.1-openmp-automagic.patch b/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-openmp-automagic.patch new file mode 100644 index 000000000000..a4fbb13fec7e --- /dev/null +++ b/media-gfx/luminance-hdr/files/luminance-hdr-2.2.1-openmp-automagic.patch @@ -0,0 +1,41 @@ +--- luminance-hdr-2.2.1/CMakeLists.txt ++++ luminance-hdr-2.2.1/CMakeLists.txt +@@ -1,6 +1,8 @@ + PROJECT(luminance-hdr)
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
+
++OPTION(USE_OPENMP "Use openmp threading support." ON)
++
+ # set include path for FindXXX.cmake files
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
+
+@@ -149,18 +151,20 @@ + SET(LIBS ${LIBS} ${EXIV2_LIBRARIES})
+
+ #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_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
+- #MESSAGE(STATUS ${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_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
++ #MESSAGE(STATUS ${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()
+ # END OpenMP Support
diff --git a/media-gfx/luminance-hdr/luminance-hdr-2.2.1.ebuild b/media-gfx/luminance-hdr/luminance-hdr-2.2.1.ebuild new file mode 100644 index 000000000000..08f829c5e3b2 --- /dev/null +++ b/media-gfx/luminance-hdr/luminance-hdr-2.2.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 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.2.1.ebuild,v 1.1 2012/03/13 07:58:17 radhermit Exp $ + +EAPI="4" + +inherit cmake-utils toolchain-funcs eutils + +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/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LANGS=" cs de es fr fi hu id it pl ro ru tr" +IUSE="${LANGS// / linguas_} openmp" + +DEPEND=" + >=media-gfx/exiv2-0.14 + >=media-libs/libraw-0.13.4 + >=media-libs/openexr-1.2.2-r2 + >=media-libs/tiff-3.8.2-r2 + sci-libs/fftw:3.0 + sci-libs/gsl + virtual/jpeg + x11-libs/qt-core:4 + x11-libs/qt-gui:4 + x11-libs/qt-sql:4 + x11-libs/qt-webkit:4" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS BUGS Changelog README TODO ) + +pkg_setup() { + 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 + use linguas_${lang} || { rm "${D}"/usr/share/${PN}/i18n/lang_${lang}.qm || die ; } + done +} |