summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-05-20 10:02:36 +0000
committerjperkin <jperkin@pkgsrc.org>2013-05-20 10:02:36 +0000
commit69513ba7aea91e545d0b14f7fb926a4ffe2fdd36 (patch)
tree182e30798a170d212e027853245538211d677ea4 /games
parenteafa3c4544ba71bd043f3ec8daa3c1bc02bd52e6 (diff)
downloadpkgsrc-69513ba7aea91e545d0b14f7fb926a4ffe2fdd36.tar.gz
Expand typedef which GCC on SunOS does not like.
Fixes package on SunOS.
Diffstat (limited to 'games')
-rw-r--r--games/libkdegames/distinfo3
-rw-r--r--games/libkdegames/patches/patch-kgdifficulty.cpp34
2 files changed, 36 insertions, 1 deletions
diff --git a/games/libkdegames/distinfo b/games/libkdegames/distinfo
index fc07cf37eb4..13841a11dbc 100644
--- a/games/libkdegames/distinfo
+++ b/games/libkdegames/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2013/04/03 12:03:29 markd Exp $
+$NetBSD: distinfo,v 1.2 2013/05/20 10:02:36 jperkin Exp $
SHA1 (libkdegames-4.10.2.tar.xz) = 3a08bf0f98c00a02363da1a61beea61ad1e01b5b
RMD160 (libkdegames-4.10.2.tar.xz) = 824172a81db9d94f71dceac92ef6f170bd26d2ff
Size (libkdegames-4.10.2.tar.xz) = 5843900 bytes
+SHA1 (patch-kgdifficulty.cpp) = 172644e63a9ea027bebb1009a9deca47d552781e
diff --git a/games/libkdegames/patches/patch-kgdifficulty.cpp b/games/libkdegames/patches/patch-kgdifficulty.cpp
new file mode 100644
index 00000000000..2053a986c17
--- /dev/null
+++ b/games/libkdegames/patches/patch-kgdifficulty.cpp
@@ -0,0 +1,34 @@
+$NetBSD: patch-kgdifficulty.cpp,v 1.1 2013/05/20 10:02:36 jperkin Exp $
+
+GCC on SunOS does not like the typedef.
+
+--- kgdifficulty.cpp.orig 2013-03-01 07:19:39.980651883 +0000
++++ kgdifficulty.cpp
+@@ -195,22 +195,22 @@ void KgDifficulty::addLevel(KgDifficulty
+ level->setParent(this);
+ }
+
+-typedef KgDifficultyLevel::StandardLevel DS;
++//typedef KgDifficultyLevel::StandardLevel DS;
+
+-void KgDifficulty::addStandardLevel(DS level, bool isDefault)
++void KgDifficulty::addStandardLevel(KgDifficultyLevel::StandardLevel level, bool isDefault)
+ {
+ addLevel(new KgDifficultyLevel(level, isDefault));
+ }
+
+-void KgDifficulty::addStandardLevelRange(DS from, DS to)
++void KgDifficulty::addStandardLevelRange(KgDifficultyLevel::StandardLevel from, KgDifficultyLevel::StandardLevel to)
+ {
+ //every level in range != Custom, therefore no level is default
+ addStandardLevelRange(from, to, KgDifficultyLevel::Custom);
+ }
+
+-void KgDifficulty::addStandardLevelRange(DS from, DS to, DS defaultLevel)
++void KgDifficulty::addStandardLevelRange(KgDifficultyLevel::StandardLevel from, KgDifficultyLevel::StandardLevel to, KgDifficultyLevel::StandardLevel defaultLevel)
+ {
+- const QVector<DS> levels = QVector<DS>()
++ const QVector<KgDifficultyLevel::StandardLevel> levels = QVector<KgDifficultyLevel::StandardLevel>()
+ << KgDifficultyLevel::RidiculouslyEasy
+ << KgDifficultyLevel::VeryEasy
+ << KgDifficultyLevel::Easy