svn commit: r384169 - in head/graphics/darktable: . files
Jean-Sebastien Pedron
dumbbell at FreeBSD.org
Fri Apr 17 18:54:03 UTC 2015
Author: dumbbell (src committer)
Date: Fri Apr 17 18:54:02 2015
New Revision: 384169
URL: https://svnweb.freebsd.org/changeset/ports/384169
Log:
graphics/darktable: Fix bug with preferences when built with Clang 3.6
The patch was committed upstream. The commit message has a detailed
explanation:
https://github.com/darktable-org/darktable/commit/9d77a28e54f8bc19592a170b1e4b9cf083f7b5a3
Differential Revision: https://reviews.freebsd.org/D2308
Reviewed by: kwm
Approved by: kwm
Added:
head/graphics/darktable/files/
head/graphics/darktable/files/patch-tools_generate__prefs.xsl (contents, props changed)
Modified:
head/graphics/darktable/Makefile
Modified: head/graphics/darktable/Makefile
==============================================================================
--- head/graphics/darktable/Makefile Fri Apr 17 17:15:59 2015 (r384168)
+++ head/graphics/darktable/Makefile Fri Apr 17 18:54:02 2015 (r384169)
@@ -3,6 +3,7 @@
PORTNAME= darktable
PORTVERSION= 1.6.4
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/
Added: head/graphics/darktable/files/patch-tools_generate__prefs.xsl
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/darktable/files/patch-tools_generate__prefs.xsl Fri Apr 17 18:54:02 2015 (r384169)
@@ -0,0 +1,13 @@
+--- tools/generate_prefs.xsl.orig 2015-04-03 13:59:08 UTC
++++ tools/generate_prefs.xsl
+@@ -231,7 +231,9 @@
+ <xsl:text> gint min = 0;
 gint max = G_MAXINT;
</xsl:text>
+ <xsl:apply-templates select="type" mode="range"/>
+ <xsl:text> </xsl:text><xsl:apply-templates select="type" mode="factor"/>
+- <xsl:text> min *= factor; max *= factor;
++ <xsl:text> double tmp;
++ tmp = min * (double)factor; min = tmp;
++ tmp = max * (double)factor; max = tmp;
+ widget = gtk_spin_button_new_with_range(min, max, 1);
+ gtk_spin_button_set_digits(GTK_SPIN_BUTTON(widget), 0);
+ gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget), dt_conf_get_int("</xsl:text><xsl:value-of select="name"/><xsl:text>") * factor);
More information about the svn-ports-head
mailing list