summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDror Levin <spatz@gentoo.org>2010-06-05 20:15:14 +0000
committerDror Levin <spatz@gentoo.org>2010-06-05 20:15:14 +0000
commit75f9d41a910e70b7567658febce692637bb4319d (patch)
tree82ede6d782730b827bb8afb614655014fedc16d4 /media-gfx/luminance-hdr
parentFix typo. (diff)
downloadgentoo-2-75f9d41a910e70b7567658febce692637bb4319d.tar.gz
gentoo-2-75f9d41a910e70b7567658febce692637bb4319d.tar.bz2
gentoo-2-75f9d41a910e70b7567658febce692637bb4319d.zip
Move package from media-gfx/qtpfsgui. Version bump to 2.0.0 and migrate to qt4-r2, drop old.
(Portage version: 2.2_rc67/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'media-gfx/luminance-hdr')
-rw-r--r--media-gfx/luminance-hdr/ChangeLog86
-rw-r--r--media-gfx/luminance-hdr/files/qtpfsgui-1.9.2-trunk.patch156
-rw-r--r--media-gfx/luminance-hdr/files/qtpfsgui-1.9.3-hdr-save.patch24
-rw-r--r--media-gfx/luminance-hdr/luminance-hdr-1.9.2-r1.ebuild65
-rw-r--r--media-gfx/luminance-hdr/luminance-hdr-1.9.3.ebuild61
-rw-r--r--media-gfx/luminance-hdr/luminance-hdr-2.0.0.ebuild61
-rw-r--r--media-gfx/luminance-hdr/metadata.xml27
7 files changed, 480 insertions, 0 deletions
diff --git a/media-gfx/luminance-hdr/ChangeLog b/media-gfx/luminance-hdr/ChangeLog
new file mode 100644
index 000000000000..32c8dd1cd384
--- /dev/null
+++ b/media-gfx/luminance-hdr/ChangeLog
@@ -0,0 +1,86 @@
+# ChangeLog for media-gfx/luminance-hdr
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/ChangeLog,v 1.1 2010/06/05 20:15:14 spatz Exp $
+
+*luminance-hdr-2.0.0 (05 Jun 2010)
+*luminance-hdr-1.9.3 (05 Jun 2010)
+*luminance-hdr-1.9.2-r1 (05 Jun 2010)
+
+ 05 Jun 2010; Dror Levin <spatz@gentoo.org> +luminance-hdr-1.9.2-r1.ebuild,
+ +files/qtpfsgui-1.9.2-trunk.patch, +luminance-hdr-1.9.3.ebuild,
+ +files/qtpfsgui-1.9.3-hdr-save.patch, +luminance-hdr-2.0.0.ebuild,
+ +metadata.xml:
+ Move package from media-gfx/qtpfsgui. Version bump to 2.0.0 and migrate to
+ qt4-r2, drop old.
+
+*qtpfsgui-2.0_pre691 (14 Feb 2010)
+
+ 14 Feb 2010; Markus Meier <maekke@gentoo.org> +qtpfsgui-2.0_pre691.ebuild:
+ version bump
+
+ 06 Oct 2009; Dominik Kapusta <ayoy@gentoo.org> qtpfsgui-1.9.2-r1.ebuild,
+ qtpfsgui-1.9.3.ebuild:
+ Removed alternative dependency on Qt metapackage
+
+ 23 May 2009; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.3.ebuild,
+ +files/qtpfsgui-1.9.3-hdr-save.patch:
+ fix saving of hdr files
+
+*qtpfsgui-1.9.3 (01 May 2009)
+
+ 01 May 2009; Markus Meier <maekke@gentoo.org> +qtpfsgui-1.9.3.ebuild:
+ version bump
+
+ 14 Feb 2009; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.2-r1.ebuild:
+ remove useless doc USE-flag, assign RDEPEND
+
+ 17 Jan 2009; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.2-r1.ebuild:
+ fix html-doc installation (to make it work inside the application) wrt bug
+ #231599
+
+ 21 Dec 2008; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.2-r1.ebuild:
+ don't pre-strip files, bug #251951
+
+ 15 Aug 2008; Markus Meier <maekke@gentoo.org> -qtpfsgui-1.9.1-r1.ebuild,
+ qtpfsgui-1.9.2-r1.ebuild:
+ amd64/x86 stable, remove old
+
+ 11 Aug 2008; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.2-r1.ebuild:
+ do not install html documentation twice and add support for LINGUAS, bug
+ #231599
+
+*qtpfsgui-1.9.2-r1 (04 Jul 2008)
+
+ 04 Jul 2008; Markus Meier <maekke@gentoo.org>
+ +files/qtpfsgui-1.9.2-trunk.patch, -qtpfsgui-1.9.2.ebuild,
+ +qtpfsgui-1.9.2-r1.ebuild:
+ revision bump for bug #222135; remove broken version
+
+*qtpfsgui-1.9.2 (02 May 2008)
+
+ 02 May 2008; Markus Meier <maekke@gentoo.org> -qtpfsgui-1.9.0.ebuild,
+ -qtpfsgui-1.9.1.ebuild, qtpfsgui-1.9.1-r1.ebuild, +qtpfsgui-1.9.2.ebuild:
+ bump to 1.9.2; 1.9.1-r1 stable on amd64/x86; remove old
+
+*qtpfsgui-1.9.1-r1 (12 Apr 2008)
+
+ 12 Apr 2008; Markus Meier <maekke@gentoo.org> +qtpfsgui-1.9.1-r1.ebuild:
+ add support for split qt4 ebuilds, thanks zlin for the help (bug #217172)
+
+ 16 Mar 2008; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.1.ebuild:
+ add ~amd64
+
+*qtpfsgui-1.9.1 (03 Mar 2008)
+
+ 03 Mar 2008; Markus Meier <maekke@gentoo.org> +qtpfsgui-1.9.1.ebuild:
+ version bump
+
+ 09 Feb 2008; Markus Meier <maekke@gentoo.org> qtpfsgui-1.9.0.ebuild:
+ x86 stable
+
+*qtpfsgui-1.9.0 (17 Dec 2007)
+
+ 17 Dec 2007; Markus Meier <maekke@gentoo.org> +metadata.xml,
+ +qtpfsgui-1.9.0.ebuild:
+ initial import of qtpfsgui, bug #179887 (and bug #162080)
+
diff --git a/media-gfx/luminance-hdr/files/qtpfsgui-1.9.2-trunk.patch b/media-gfx/luminance-hdr/files/qtpfsgui-1.9.2-trunk.patch
new file mode 100644
index 000000000000..b817317b1af2
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/qtpfsgui-1.9.2-trunk.patch
@@ -0,0 +1,156 @@
+Index: trunk/qtpfsgui/src/Fileformat/pfsoutldrimage.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Fileformat/pfsoutldrimage.cpp (revision 319)
++++ trunk/qtpfsgui/src/Fileformat/pfsoutldrimage.cpp (working copy)
+@@ -62,9 +62,9 @@
+ *(data + 2 + (y*width+x)*4) = ( clamp( (*R)( x, y )*255.f, 0, 255) );
+ *(data + 3 + (y*width+x)*4) = 0xff;
+ } else {
+- *(data + 3 + (y*width+x)*4) = ( clamp( (*B)( x, y )*255.f, 0, 255) );
++ *(data + 3 + (y*width+x)*4) = ( clamp( (*R)( x, y )*255.f, 0, 255) );
+ *(data + 2 + (y*width+x)*4) = ( clamp( (*G)( x, y )*255.f, 0, 255) );
+- *(data + 1 + (y*width+x)*4) = ( clamp( (*R)( x, y )*255.f, 0, 255) );
++ *(data + 1 + (y*width+x)*4) = ( clamp( (*B)( x, y )*255.f, 0, 255) );
+ *(data + 0 + (y*width+x)*4) = 0xff;
+ }
+ }
+Index: trunk/qtpfsgui/src/Common/gamma_and_levels.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Common/gamma_and_levels.cpp (revision 319)
++++ trunk/qtpfsgui/src/Common/gamma_and_levels.cpp (working copy)
+@@ -189,12 +189,21 @@
+ return;
+ }
+
+- //increment bins
+- for (int i=0; i<data.width()*data.height(); i+=accuracy) {
+- int v=qGray(*((QRgb*)(data.bits())+i));
+- assert(v>=0 && v<=255);
+- P[v] += 1;
+- }
++// if (data.format()==QImage::Format_Indexed8) {
++// //increment bins
++// for (int i=0; i<data.width()*data.height(); i+=accuracy) {
++// const unsigned char v=*((const unsigned char*)(data.bits())+i);
++// P[v] += 1;
++// }
++//
++// } else {
++ //increment bins
++ for (int i=0; i<data.width()*data.height(); i+=accuracy) {
++ int v=qGray(*((QRgb*)(data.bits())+i));
++ assert(v>=0 && v<=255);
++ P[v] += 1;
++ }
++// }
+
+ //find max
+ float max=-1;
+Index: trunk/qtpfsgui/src/Common/commandline.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Common/commandline.cpp (revision 319)
++++ trunk/qtpfsgui/src/Common/commandline.cpp (working copy)
+@@ -378,7 +378,7 @@
+ if (!saveHdrFilename.isEmpty()) {
+ VERBOSEPRINT("Saving to file %1.",saveHdrFilename);
+ QFileInfo qfi(saveHdrFilename);
+- const char* encodedName=QFile::encodeName(qfi.filePath()).constData();
++ char* encodedName=strdup(QFile::encodeName(qfi.filePath()).constData());
+ if (qfi.suffix().toUpper()=="EXR") {
+ writeEXRfile(HDR,encodedName);
+ } else if (qfi.suffix().toUpper()=="HDR") {
+@@ -397,6 +397,7 @@
+ } else {
+ error("Error, please specify a supported HDR file format.");
+ }
++ free(encodedName);
+ } else {
+ VERBOSEPRINT("NOT Saving HDR image to file. %1","");
+ }
+Index: trunk/qtpfsgui/src/Common/options.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Common/options.cpp (revision 319)
++++ trunk/qtpfsgui/src/Common/options.cpp (working copy)
+@@ -60,8 +60,9 @@
+ if (!settings.contains(KEY_EXTERNAL_DCRAW_OPTIONS))
+ settings.setValue(KEY_EXTERNAL_DCRAW_OPTIONS,"-T");
+ dcraw_options=settings.value(KEY_EXTERNAL_DCRAW_OPTIONS).toStringList();
+- if (!settings.contains(KEY_EXTERNAL_AIS_OPTIONS))
+- settings.setValue(KEY_EXTERNAL_AIS_OPTIONS,"-a aligned_");
++ //bug 2001032, remove spurious default QString "-a aligned_" value set by ver 1.9.2
++ if (!settings.contains(KEY_EXTERNAL_AIS_OPTIONS) || settings.value(KEY_EXTERNAL_AIS_OPTIONS).toString()=="-a aligned_")
++ settings.setValue(KEY_EXTERNAL_AIS_OPTIONS, QStringList() << "-a" << "aligned_");
+ align_image_stack_options=settings.value(KEY_EXTERNAL_AIS_OPTIONS).toStringList();
+ settings.endGroup();
+
+Index: trunk/qtpfsgui/src/Threads/loadHdrThread.cpp
+===================================================================
+--- trunk/qtpfsgui/src/Threads/loadHdrThread.cpp (revision 319)
++++ trunk/qtpfsgui/src/Threads/loadHdrThread.cpp (working copy)
+@@ -58,7 +58,7 @@
+ QString extension = qfi.suffix().toUpper();
+ bool rawinput = (rawextensions.indexOf(extension)!=-1);
+ try {
+- const char* encodedFileName=QFile::encodeName(qfi.filePath()).constData();
++ char* encodedFileName=strdup(QFile::encodeName(qfi.filePath()).constData());
+ if (extension=="EXR") {
+ hdrpfsframe = readEXRfile(encodedFileName);
+ } else if (extension=="HDR") {
+@@ -123,6 +123,7 @@
+ emit load_failed(tr("ERROR: File %1 has unsupported extension.").arg(fname));
+ return;
+ }
++ free(encodedFileName);
+ #if 0
+ pfs::Channel *R,*G,*B;
+ hdrpfsframe->getRGBChannels( R, G, B );
+Index: trunk/qtpfsgui/src/HdrCreation/HdrCreationManager.cpp
+===================================================================
+--- trunk/qtpfsgui/src/HdrCreation/HdrCreationManager.cpp (revision 319)
++++ trunk/qtpfsgui/src/HdrCreation/HdrCreationManager.cpp (working copy)
+@@ -261,7 +261,7 @@
+ clearlists(false);
+ for (int i=0;i<fileList.size();i++) {
+ //align_image_stack can only output tiff files
+- const char* fname=QFile::encodeName(QString(qtpfsgui_options->tempfilespath + "/aligned_" + QString("%1").arg(i,4,10,QChar('0'))+".tif")).constData();
++ char* fname=strdup(QFile::encodeName(QString(qtpfsgui_options->tempfilespath + "/aligned_" + QString("%1").arg(i,4,10,QChar('0'))+".tif")).constData());
+ //qDebug("HCM: Loading back file name=%s", fname);
+ TiffReader reader(fname);
+ //if 8bit ldr tiff
+@@ -279,6 +279,7 @@
+ listmdrB.push_back(B);
+ }
+ QFile::remove(fname);
++ free(fname);
+ }
+ QFile::remove(QString(qtpfsgui_options->tempfilespath + "/hugin_debug_optim_results.txt"));
+ emit finishedAligning();
+Index: trunk/qtpfsgui/src/MainWindow/mainWindow.cpp
+===================================================================
+--- trunk/qtpfsgui/src/MainWindow/mainWindow.cpp (revision 319)
++++ trunk/qtpfsgui/src/MainWindow/mainWindow.cpp (working copy)
+@@ -192,7 +192,8 @@
+ QString fname=(fd->selectedFiles()).at(0);
+ if(!fname.isEmpty()) {
+ QFileInfo qfi(fname);
+- const char* encodedName=QFile::encodeName(qfi.filePath()).constData();
++ QString absoluteFileName=qfi.absoluteFilePath();
++ char* encodedName=strdup(QFile::encodeName(absoluteFileName).constData());
+ // if the new dir, the one just chosen by the user, is different from the one stored in the settings, update the settings.
+ if (RecentDirHDRSetting != qfi.path() )
+ // update internal field variable
+@@ -219,10 +220,11 @@
+ delete fd;
+ return;
+ }
+- setCurrentFile(fname);
++ free(encodedName);
++ setCurrentFile(absoluteFileName);
+ currenthdr->NeedsSaving=false;
+- currenthdr->filename=fname;
+- currenthdr->setWindowTitle(fname);
++ currenthdr->filename=absoluteFileName;
++ currenthdr->setWindowTitle(absoluteFileName);
+ }
+ } //if (fd->exec())
+ delete fd;
diff --git a/media-gfx/luminance-hdr/files/qtpfsgui-1.9.3-hdr-save.patch b/media-gfx/luminance-hdr/files/qtpfsgui-1.9.3-hdr-save.patch
new file mode 100644
index 000000000000..f0ae9a083388
--- /dev/null
+++ b/media-gfx/luminance-hdr/files/qtpfsgui-1.9.3-hdr-save.patch
@@ -0,0 +1,24 @@
+backported from upstream revision 393
+
+diff -ru qtpfsgui-1.9.3.orig/src/MainWindow/mainWindow.cpp qtpfsgui-1.9.3/src/MainWindow/mainWindow.cpp
+--- qtpfsgui-1.9.3.orig/src/MainWindow/mainWindow.cpp 2009-01-08 18:22:41.000000000 +0100
++++ qtpfsgui-1.9.3/src/MainWindow/mainWindow.cpp 2009-05-23 10:56:17.000000000 +0200
+@@ -274,11 +274,13 @@
+ normalSizeAct->setEnabled(true);
+ }
+ } else {
+- currenthdr=NULL;
+- normalSizeAct->setEnabled(false);
+- zoomInAct->setEnabled(false);
+- zoomOutAct->setEnabled(false);
+- fitToWindowAct->setEnabled(false);
++ if (mdiArea->subWindowList().empty()) {
++ currenthdr=NULL;
++ normalSizeAct->setEnabled(false);
++ zoomInAct->setEnabled(false);
++ zoomOutAct->setEnabled(false);
++ fitToWindowAct->setEnabled(false);
++ }
+ }
+ }
+
diff --git a/media-gfx/luminance-hdr/luminance-hdr-1.9.2-r1.ebuild b/media-gfx/luminance-hdr/luminance-hdr-1.9.2-r1.ebuild
new file mode 100644
index 000000000000..95811a260e3b
--- /dev/null
+++ b/media-gfx/luminance-hdr/luminance-hdr-1.9.2-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/luminance-hdr-1.9.2-r1.ebuild,v 1.1 2010/06/05 20:15:14 spatz Exp $
+
+EAPI="1"
+
+inherit eutils qt4
+
+MY_PN="qtpfsgui"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Qtpfsgui is a graphical user interface that provides a workflow for HDR imaging."
+HOMEPAGE="http://qtpfsgui.sourceforge.net"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+LANGS="cs de es fr it pl ru tr"
+for lang in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${lang}"
+done
+
+DEPEND="
+ media-gfx/dcraw
+ >=media-gfx/exiv2-0.14
+ >=media-libs/jpeg-6b-r7
+ >=media-libs/openexr-1.2.2-r2
+ >=media-libs/tiff-3.8.2-r2
+ >=sci-libs/fftw-3.0.1-r2
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${MY_P}-trunk.patch"
+
+ # no insane CXXFLAGS
+ sed -i -e '/QMAKE_CXXFLAGS/d' project.pro || die
+
+ # no stripping
+ sed -i -e 's:TARGET:QMAKE_STRIP = true\nTARGET:' project.pro || die
+}
+
+src_compile() {
+ lrelease project.pro || die
+ eqmake4 project.pro PREFIX=/usr || die
+ emake || die
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die
+ dodoc README TODO || die
+
+ for lang in ${LANGS} ; do
+ use linguas_${lang} || rm "${D}"/usr/share/${MY_PN}/i18n/lang_${lang}.qm
+ done
+}
diff --git a/media-gfx/luminance-hdr/luminance-hdr-1.9.3.ebuild b/media-gfx/luminance-hdr/luminance-hdr-1.9.3.ebuild
new file mode 100644
index 000000000000..bf3a04fe8d78
--- /dev/null
+++ b/media-gfx/luminance-hdr/luminance-hdr-1.9.3.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/luminance-hdr/luminance-hdr-1.9.3.ebuild,v 1.1 2010/06/05 20:15:14 spatz Exp $
+
+EAPI="2"
+
+inherit eutils qt4
+
+MY_PN="qtpfsgui"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Qtpfsgui is a graphical user interface that provides a workflow for HDR imaging."
+HOMEPAGE="http://qtpfsgui.sourceforge.net"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+LANGS=" cs de es fr it pl ru tr"
+IUSE="openmp $(echo ${LANGS//\ /\ linguas_})"
+
+DEPEND="
+ media-gfx/dcraw
+ >=media-gfx/exiv2-0.14
+ >=media-libs/jpeg-6b-r7
+ >=media-libs/openexr-1.2.2-r2
+ >=media-libs/tiff-3.8.2-r2
+ >=sci-libs/fftw-3.0.1-r2
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ >=sys-devel/gcc-4.2[openmp?]"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${MY_P}-hdr-save.patch
+
+ # no insane CXXFLAGS
+ sed -i -e '/QMAKE_CXXFLAGS/d' project.pro || die
+
+ if ! use openmp ; then
+ sed -i -e '/QMAKE_LFLAGS/d' project.pro || die
+ fi
+}
+
+src_compile() {
+ lrelease project.pro || die
+ eqmake4 project.pro PREFIX=/usr || die
+ emake || die
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install || die
+ dodoc README TODO || die
+
+ for lang in ${LANGS} ; do
+ use linguas_${lang} || rm "${D}"/usr/share/${MY_PN}/i18n/lang_${lang}.qm
+ done
+}
diff --git a/media-gfx/luminance-hdr/luminance-hdr-2.0.0.ebuild b/media-gfx/luminance-hdr/luminance-hdr-2.0.0.ebuild
new file mode 100644
index 000000000000..58fbaf70af72
--- /dev/null
+++ b/media-gfx/luminance-hdr/luminance-hdr-2.0.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2010 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.0.0.ebuild,v 1.1 2010/06/05 20:15:14 spatz Exp $
+
+EAPI="2"
+
+LANGS="cs de es fr hu id it pl ru tr"
+inherit eutils qt4-r2
+
+OLD_PN="qtpfsgui"
+
+DESCRIPTION="Qtpfsgui is a graphical user interface that provides a workflow for HDR imaging."
+HOMEPAGE="http://qtpfsgui.sourceforge.net"
+SRC_URI="mirror://sourceforge/${OLD_PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="debug openmp"
+
+DEPEND="
+ media-gfx/dcraw
+ >=media-gfx/exiv2-0.14
+ >=media-libs/jpeg-6b-r7
+ >=media-libs/openexr-1.2.2-r2
+ >=media-libs/tiff-3.8.2-r2
+ >=sci-libs/fftw-3.0.1-r2
+ sci-libs/gsl
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-webkit:4
+ >=sys-devel/gcc-4.2[openmp?]"
+RDEPEND="${DEPEND}"
+
+DOCS="AUTHORS Changelog README TODO"
+
+S="${WORKDIR}/${PN}_${PV}"
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ if ! use openmp ; then
+ sed -i -e '/QMAKE_LFLAGS/d' project.pro || die
+ fi
+}
+
+src_configure() {
+ lrelease project.pro || die
+ eqmake4 project.pro \
+ PREFIX=/usr \
+ ENABLE_DEBUG="$(use debug && echo YES || echo NO)"
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ for lang in ${LANGS} ; do
+ use linguas_${lang} || rm "${D}"/usr/share/${PN}/i18n/lang_${lang}.qm
+ done
+}
diff --git a/media-gfx/luminance-hdr/metadata.xml b/media-gfx/luminance-hdr/metadata.xml
new file mode 100644
index 000000000000..94005e0fffac
--- /dev/null
+++ b/media-gfx/luminance-hdr/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>graphics</herd>
+<longdescription lang="en">
+Qtpfsgui is an open source graphical user interface application that aims to provide a workflow for HDR imaging.
+
+Supported HDR formats:
+ * OpenEXR (extension: exr)
+ * Radiance RGBE (extension: hdr)
+ * Tiff formats: 16bit, 32bit (float) and LogLuv (extension: tiff)
+ * Raw image formats (extension: various)
+ * PFS native format (extension: pfs)
+
+Supported LDR formats:
+ * JPEG, PNG, PPM, PBM, TIFF(8 bit)
+
+Supported features:
+ * Create an HDR file from a set of images (formats: JPEG, TIFF 8bit and 16bit, RAW) of the same scene taken at different exposure setting.
+ * Save and load HDR images.
+ * Rotate and resize HDR images.
+ * Tonemap HDR images.
+ * Copy exif data between sets of images.
+ * Supports internationalization.
+</longdescription>
+</pkgmetadata>
+