pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/digikam trunc(3) doesn't exist on DragonFly, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2d92c3ca3355
branches: trunk
changeset: 522029:2d92c3ca3355
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Nov 30 21:56:49 2006 +0000
description:
trunc(3) doesn't exist on DragonFly, replace it with ceil/floor based on
sign of argument.
diffstat:
graphics/digikam/distinfo | 3 ++-
graphics/digikam/patches/patch-ab | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r 157c96cee673 -r 2d92c3ca3355 graphics/digikam/distinfo
--- a/graphics/digikam/distinfo Thu Nov 30 21:42:28 2006 +0000
+++ b/graphics/digikam/distinfo Thu Nov 30 21:56:49 2006 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.12 2006/11/29 12:02:10 xtraeme Exp $
+$NetBSD: distinfo,v 1.13 2006/11/30 21:56:49 joerg Exp $
SHA1 (digikam-0.9.0-rc1.tar.bz2) = c037fe8e6a4c5d341fa66c2e02100fdb23a2240e
RMD160 (digikam-0.9.0-rc1.tar.bz2) = 14a48862613f491b7760f85f6baa1b3bc882a61e
Size (digikam-0.9.0-rc1.tar.bz2) = 5575674 bytes
SHA1 (patch-aa) = a14bf50a037be27acbe4f1ae7d7c8de747529644
+SHA1 (patch-ab) = 604890a0187b58d113997667d99b6ffefc94dc18
SHA1 (patch-ac) = 9efde366b391d3510735646664956f48d33bca69
diff -r 157c96cee673 -r 2d92c3ca3355 graphics/digikam/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/digikam/patches/patch-ab Thu Nov 30 21:56:49 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.4 2006/11/30 21:56:49 joerg Exp $
+
+--- digikam/libs/dmetadata/dmetadata.cpp.orig 2006-11-30 18:20:17.000000000 +0000
++++ digikam/libs/dmetadata/dmetadata.cpp
+@@ -2039,6 +2039,16 @@ bool DMetadata::removeGPSInfo()
+ return false;
+ }
+
++#ifdef __DragonFly__
++static double trunc(double val)
++{
++ if (val > 0)
++ return floor(val);
++ else
++ return ceil(val);
++}
++#endif
++
+ void DMetadata::convertToRational(double number, long int* numerator,
+ long int* denominator, int rounding)
+ {
Home |
Main Index |
Thread Index |
Old Index