pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/kcalc kcalc: Avoid 'version' namespa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/484b4f1b61d4
branches:  trunk
changeset: 308162:484b4f1b61d4
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 17 11:01:23 2018 +0000

description:
kcalc: Avoid 'version' namespace issue.

diffstat:

 math/kcalc/distinfo                |   3 ++-
 math/kcalc/patches/patch-kcalc.cpp |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r e90db6164844 -r 484b4f1b61d4 math/kcalc/distinfo
--- a/math/kcalc/distinfo       Thu May 17 10:47:52 2018 +0000
+++ b/math/kcalc/distinfo       Thu May 17 11:01:23 2018 +0000
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 23:33:35 agc Exp $
+$NetBSD: distinfo,v 1.10 2018/05/17 11:01:23 jperkin Exp $
 
 SHA1 (kcalc-4.14.3.tar.xz) = 0990a35d1fe97b4d4157b6ce6d8e13d199934dad
 RMD160 (kcalc-4.14.3.tar.xz) = 81822b452042f23e85216ad3e662e797050e0592
 SHA512 (kcalc-4.14.3.tar.xz) = ec8090b6bc8c78e7a63286c797e67617e4d9e335f6b29dce1dcbd41073465e6cf313d485f27f84a06d7cd04acc024051709b00f7be1dc8170e9531281d2deb16
 Size (kcalc-4.14.3.tar.xz) = 81392 bytes
 SHA1 (patch-CMakeLists.txt) = 41012666b695fbaad04261cbf566d875d9f83ed8
+SHA1 (patch-kcalc.cpp) = a318b81b381454fcf1570450c41d6bb7b58cf685
 SHA1 (patch-knumber_knumber_float.cpp) = 678e8d62df1a615f1117c58737da23a95d0e15a9
 SHA1 (patch-knumber_tests_CMakeLists.txt) = 7d159f617903b778e65615cb73a81f40f1d262df
diff -r e90db6164844 -r 484b4f1b61d4 math/kcalc/patches/patch-kcalc.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/kcalc/patches/patch-kcalc.cpp        Thu May 17 11:01:23 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-kcalc.cpp,v 1.1 2018/05/17 11:01:23 jperkin Exp $
+
+Avoid 'version' namespace issue.
+
+--- kcalc.cpp.orig     2014-07-17 13:35:22.000000000 +0000
++++ kcalc.cpp
+@@ -64,7 +64,7 @@ along with this program.  If not, see <h
+ 
+ namespace {
+ const char description[] = I18N_NOOP("KDE Calculator");
+-const char version[]   = KCALCVERSION;
++const char myversion[]         = KCALCVERSION;
+ const int maxprecision   = 1000;
+ }
+ 
+@@ -2284,7 +2284,7 @@ extern "C" KDE_EXPORT int kdemain(int ar
+       KAboutData aboutData("kcalc",
+               0,
+               ki18n("KCalc"),
+-              version,
++              myversion,
+               ki18n(description),
+               KAboutData::License_GPL,
+               ki18n(



Home | Main Index | Thread Index | Old Index