diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2006-04-29 01:11:01 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2006-04-29 01:11:01 +0000 |
commit | 5c1b349ab480880b132bde12f46c2dd5b2749123 (patch) | |
tree | 168dad3d7a3be18c20ce4898e014ecd4fb63a2ba /games-board/ggz-kde-games | |
parent | Fix SHA256 digests. (diff) | |
download | historical-5c1b349ab480880b132bde12f46c2dd5b2749123.tar.gz historical-5c1b349ab480880b132bde12f46c2dd5b2749123.tar.bz2 historical-5c1b349ab480880b132bde12f46c2dd5b2749123.zip |
Fixing gcc-4.1 compilation
Package-Manager: portage-2.1_pre9-r5
Diffstat (limited to 'games-board/ggz-kde-games')
-rw-r--r-- | games-board/ggz-kde-games/ChangeLog | 6 | ||||
-rw-r--r-- | games-board/ggz-kde-games/Manifest | 36 | ||||
-rw-r--r-- | games-board/ggz-kde-games/files/digest-ggz-kde-games-0.0.9 | 2 | ||||
-rw-r--r-- | games-board/ggz-kde-games/files/ggz-kde-games-0.0.9-gcc41.patch | 330 | ||||
-rw-r--r-- | games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild | 4 |
5 files changed, 367 insertions, 11 deletions
diff --git a/games-board/ggz-kde-games/ChangeLog b/games-board/ggz-kde-games/ChangeLog index 94742a855579..b54e4600cd87 100644 --- a/games-board/ggz-kde-games/ChangeLog +++ b/games-board/ggz-kde-games/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-board/ggz-kde-games # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-kde-games/ChangeLog,v 1.2 2006/03/24 16:28:42 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-kde-games/ChangeLog,v 1.3 2006/04/29 01:11:00 tupone Exp $ + + 29 Apr 2006; <Tupone@gentoo.org> +files/ggz-kde-games-0.0.9-gcc41.patch, + ggz-kde-games-0.0.9.ebuild: + Fixing gcc-4.1 compilation 24 Mar 2006; Chris Gianelloni <wolf31o2@gentoo.org> ggz-kde-games-0.0.9.ebuild: diff --git a/games-board/ggz-kde-games/Manifest b/games-board/ggz-kde-games/Manifest index 0750557a76c7..98463276d77f 100644 --- a/games-board/ggz-kde-games/Manifest +++ b/games-board/ggz-kde-games/Manifest @@ -1,12 +1,30 @@ -MD5 f6d037d35e4ac57c7c7c2dd08ec654f4 ChangeLog 483 -RMD160 bb589255c222ddf1097d4c1649307b7e77d4b90d ChangeLog 483 -SHA256 1505f508c98a7ad211c7d7f8c3c2c9960ee605d67d197da2252e9e0721804996 ChangeLog 483 -MD5 230107ab0c2b276b464dd2759cc877b9 files/digest-ggz-kde-games-0.0.9 72 -RMD160 4e90f425819ced51f770a3f2f6e6387a66d1fd90 files/digest-ggz-kde-games-0.0.9 72 -SHA256 fb5aff9045fe26c9881dd4d187f1a9826343fcbe3b74a31819b0ca796a89f325 files/digest-ggz-kde-games-0.0.9 72 -MD5 e4be6bd256974c64427e9fbc33ddb489 ggz-kde-games-0.0.9.ebuild 653 -RMD160 8c501f55b0c5197aea3439d5545f50c1b8b602d4 ggz-kde-games-0.0.9.ebuild 653 -SHA256 909b7fd932347585d03c95c80db75d78211109dc7b82dc1ec036c3cef699fc60 ggz-kde-games-0.0.9.ebuild 653 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX ggz-kde-games-0.0.9-gcc41.patch 10319 RMD160 f65c308905f200988bdf7ca68a739c4b8fe3767e SHA1 0a8ed07afcef86bd774ef01648d95ff72ecd56d0 SHA256 bff6550ff0c18fc1b60492dfc326770842d33ab83e3e87753eb1dbe65bdfd083 size 10319 +MD5 e7853f391f37a5547aee672cf4319f97 files/ggz-kde-games-0.0.9-gcc41.patch 10319 +RMD160 f65c308905f200988bdf7ca68a739c4b8fe3767e files/ggz-kde-games-0.0.9-gcc41.patch 10319 +SHA256 bff6550ff0c18fc1b60492dfc326770842d33ab83e3e87753eb1dbe65bdfd083 files/ggz-kde-games-0.0.9-gcc41.patch 10319 +DIST ggz-kde-games-0.0.9.tar.gz 2023088 RMD160 c22bdea98f04e199c36e64a00558f23a76c0528d SHA256 82f72637037ecedb60c42792162cedc25540c14c4c1944b1d254f6cf506d9b32 size 2023088 +EBUILD ggz-kde-games-0.0.9.ebuild 691 RMD160 657ed001dc788e82c3fa6ba88b51b179f8f71c2b SHA1 64212f0bc70575a9e6b1511ba54712f042a688e9 SHA256 e17b5c12eaf12790fa51283868869e3ad01b619ed91d01b1278152216be53c7b size 691 +MD5 e0eaac439312efa62fac25c5a1510455 ggz-kde-games-0.0.9.ebuild 691 +RMD160 657ed001dc788e82c3fa6ba88b51b179f8f71c2b ggz-kde-games-0.0.9.ebuild 691 +SHA256 e17b5c12eaf12790fa51283868869e3ad01b619ed91d01b1278152216be53c7b ggz-kde-games-0.0.9.ebuild 691 +MISC ChangeLog 616 RMD160 0acb6052f38364ff91a4e135b9fc2ff3cc8143da SHA1 2bc991fb1ee439fc44246e699f949695db2bef7b SHA256 bb10b23bf19de73f5eb1ad0f1b18417b45237a2a04fd31ec416cac4d830033c7 size 616 +MD5 5a09a520225fe6a81bfe67a7ceb351a8 ChangeLog 616 +RMD160 0acb6052f38364ff91a4e135b9fc2ff3cc8143da ChangeLog 616 +SHA256 bb10b23bf19de73f5eb1ad0f1b18417b45237a2a04fd31ec416cac4d830033c7 ChangeLog 616 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 size 158 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MD5 a60b43d93c0ac3257e4ab4a46a244aff files/digest-ggz-kde-games-0.0.9 262 +RMD160 5da32944b04b0682c16b671a163c650de3add28d files/digest-ggz-kde-games-0.0.9 262 +SHA256 09f0fa1a7adf22409f30581361410162ff37c9147a94df4153cec56118c0fc0b files/digest-ggz-kde-games-0.0.9 262 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.3 (GNU/Linux) + +iD8DBQFEUr0y2CTtIKiFlQIRApg7AKCH9R36p4lDdPbuPTy95GT2JxUx7QCcDz7K +m8Glm6BRQDveIFPfFnH+kJ0= +=2+/1 +-----END PGP SIGNATURE----- diff --git a/games-board/ggz-kde-games/files/digest-ggz-kde-games-0.0.9 b/games-board/ggz-kde-games/files/digest-ggz-kde-games-0.0.9 index c153266995e8..e6fa612c6eeb 100644 --- a/games-board/ggz-kde-games/files/digest-ggz-kde-games-0.0.9 +++ b/games-board/ggz-kde-games/files/digest-ggz-kde-games-0.0.9 @@ -1 +1,3 @@ MD5 e3fe8da7e0a3d83bc951fac463d06e8a ggz-kde-games-0.0.9.tar.gz 2023088 +RMD160 c22bdea98f04e199c36e64a00558f23a76c0528d ggz-kde-games-0.0.9.tar.gz 2023088 +SHA256 82f72637037ecedb60c42792162cedc25540c14c4c1944b1d254f6cf506d9b32 ggz-kde-games-0.0.9.tar.gz 2023088 diff --git a/games-board/ggz-kde-games/files/ggz-kde-games-0.0.9-gcc41.patch b/games-board/ggz-kde-games/files/ggz-kde-games-0.0.9-gcc41.patch new file mode 100644 index 000000000000..dd5f1c8837c4 --- /dev/null +++ b/games-board/ggz-kde-games/files/ggz-kde-games-0.0.9-gcc41.patch @@ -0,0 +1,330 @@ +--- kdots/kdots.cpp.old 2006-04-29 02:10:41.000000000 +0200 ++++ kdots/kdots.cpp 2006-04-29 02:14:43.000000000 +0200 +@@ -160,39 +160,39 @@ + + switch(op) + { +- case proto->msgseat: ++ case KDotsProto::msgseat: + proto->getSeat(); + if(proto->num == 1) emit signalColor(QColor(0, 0, 250)); + else if(proto->num == 0) emit signalColor(QColor(0, 0, 50)); + else emit signalColor(QColor(255, 255, 255)); + break; +- case proto->msgplayers: ++ case KDotsProto::msgplayers: + proto->getPlayers(); + if(proto->state != proto->statechoose) proto->state = proto->statewait; + break; +- case proto->msgoptions: ++ case KDotsProto::msgoptions: + proto->getOptions(); + dots->resizeBoard(proto->width - 1, proto->height - 1); + dots->refreshBoard(); + break; +- case proto->reqmove: ++ case KDotsProto::reqmove: + emit signalStatus(i18n("Your turn.")); + proto->state = proto->statemove; + proto->turn = proto->num; + break; +- case proto->msgmoveh: ++ case KDotsProto::msgmoveh: + proto->getOppMove(proto->sndmoveh); + dots->setBorderValue(proto->movex, proto->movey, QDots::right, proto->turn, Dots::move); + dots->repaint(); + if(proto->num < 0) proto->turn = !proto->turn; + break; +- case proto->msgmovev: ++ case KDotsProto::msgmovev: + proto->getOppMove(proto->sndmovev); + dots->setBorderValue(proto->movex, proto->movey, QDots::down, proto->turn, Dots::move); + dots->repaint(); + if(proto->num < 0) proto->turn = !proto->turn; + break; +- case proto->rspmove: ++ case KDotsProto::rspmove: + if(proto->getMove() != -1) + { + dots->setBorderValue(proto->m_lastx, proto->m_lasty, proto->m_lastdir, proto->turn, Dots::move); +@@ -204,7 +204,7 @@ + emit signalStatus(i18n("Invalid move, please try again!")); + } + break; +- case proto->msggameover: ++ case KDotsProto::msggameover: + savepath = QDir::home().path() + "/.ggz"; + dir.mkdir(savepath); + savepath += "/games"; +@@ -229,10 +229,10 @@ + exit(-1); + } + break; +- case proto->sndsync: ++ case KDotsProto::sndsync: + gamesync(); + break; +- case proto->reqoptions: ++ case KDotsProto::reqoptions: + slotOptions(); + break; + default: +--- ktictactux/ktictactux.cpp.old 2006-04-29 02:26:43.000000000 +0200 ++++ ktictactux/ktictactux.cpp 2006-04-29 02:34:11.000000000 +0200 +@@ -82,15 +82,15 @@ + QWhiteFrame *tmp; + int id; + +- if(proto->state != proto->statemove) return; ++ if(proto->state != (int)proto->statemove) return; + if(m_turn != proto->num) return; + + //id = widget->winId() - m_firstid; + tmp = reinterpret_cast<QWhiteFrame*>(widget); + id = tmp->id(); + +- if(proto->board[id % 3][id / 3] == proto->player) return; +- if(proto->board[id % 3][id / 3] == proto->opponent) return; ++ if(proto->board[id % 3][id / 3] == (int)proto->player) return; ++ if(proto->board[id % 3][id / 3] == (int)proto->opponent) return; + + if(m_opponent == PLAYER_AI) + { +@@ -110,7 +110,7 @@ + // Prepare your turn + void KTicTacTux::yourTurn() + { +- if((m_opponent == PLAYER_AI) || (proto->state == proto->statemove)) emit signalStatus(i18n("Your turn")); ++ if((m_opponent == PLAYER_AI) || (proto->state == (int)proto->statemove)) emit signalStatus(i18n("Your turn")); + proto->state = proto->statemove; + } + +@@ -166,7 +166,7 @@ + // Check for draw (no empty fields left) + for(int j = 0; j < 3; j++) + for(int i = 0; i < 3; i++) +- if(proto->board[i][j] == proto->none) ++ if(proto->board[i][j] == (int)proto->none) + { + m_x = i; + m_y = j; +@@ -283,14 +283,14 @@ + { + if((proto->board[i][j] == c) + && (proto->board[2 - i][2 - j] != c) +- && (proto->board[2 - i][2 - j] != proto->none)) ++ && (proto->board[2 - i][2 - j] != (int)proto->none)) + { +- if(proto->board[i][2 - j] == proto->none) ++ if(proto->board[i][2 - j] == (int)proto->none) + { + m_x = i; + m_y = 2 - j; + } +- if(proto->board[2 - i][j] == proto->none) ++ if(proto->board[2 - i][j] == (int)proto->none) + { + m_x = 2 - i; + m_y = j; +@@ -319,17 +319,17 @@ + { + x = xo + xp * i; + y = yo + yp * i; +- if((proto->board[trip(x)][trip(y)] != proto->none) ++ if((proto->board[trip(x)][trip(y)] != (int)proto->none) + && (proto->board[trip(x + xp)][trip(y + yp)] == proto->board[trip(x)][trip(y)])) + { + if(proto->board[trip(x + xp * 2)][trip(y + yp * 2)] != proto->board[trip(x)][trip(y)]) + { +- if((proto->board[trip(x + xp * 2)][trip(y + yp * 2)] == proto->none) && (!m_seewinner)) ++ if((proto->board[trip(x + xp * 2)][trip(y + yp * 2)] == (int)proto->none) && (!m_seewinner)) + { + m_x = trip(x + xp * 2); + m_y = trip(y + yp * 2); + // take unlimited chance +- if(proto->board[trip(x)][trip(y)] == proto->opponent) m_seewinner = 1; ++ if(proto->board[trip(x)][trip(y)] == (int)proto->opponent) m_seewinner = 1; + } + } + else m_winner = proto->board[trip(x + xp * 2)][trip(y + yp * 2)]; +@@ -389,33 +389,33 @@ + + switch(op) + { +- case proto->msgseat: ++ case KTicTacTuxProto::msgseat: + proto->getSeat(); + break; +- case proto->msgplayers: ++ case KTicTacTuxProto::msgplayers: + proto->getPlayers(); + proto->state = proto->statewait; + if((proto->num >= 0) && (proto->names[!proto->num][0])) + emit signalScore(i18n("Network game with %1").arg(proto->names[!proto->num])); + break; +- case proto->reqmove: ++ case KTicTacTuxProto::reqmove: + proto->state = proto->statemove; + m_turn = proto->num; + emit signalStatus(i18n("Your move")); + break; +- case proto->rspmove: ++ case KTicTacTuxProto::rspmove: + switch(proto->getMoveStatus()) + { +- case proto->errstate: ++ case KTicTacTuxProto::errstate: + emit signalStatus(i18n("*server*")); + break; +- case proto->errturn: ++ case KTicTacTuxProto::errturn: + emit signalStatus(i18n("*turn*")); + break; +- case proto->errbound: ++ case KTicTacTuxProto::errbound: + emit signalStatus(i18n("*bounds*")); + break; +- case proto->errfull: ++ case KTicTacTuxProto::errfull: + emit signalStatus(i18n("*occupied*")); + break; + default: +@@ -423,18 +423,18 @@ + } + getNextTurn(); + break; +- case proto->msgmove: ++ case KTicTacTuxProto::msgmove: + proto->getOpponentMove(); + if(proto->num < 0) emit signalStatus(i18n("Watching the game")); + break; +- case proto->sndsync: ++ case KTicTacTuxProto::sndsync: + proto->getSync(); + break; + // case proto->sndstats: + // proto->getStatistics(); + // emit signalNetworkScore(proto->stats[0], proto->stats[1]); + // break; +- case proto->msggameover: ++ case KTicTacTuxProto::msggameover: + proto->getGameOver(); + proto->state = proto->statedone; + gameOver(); +@@ -450,10 +450,10 @@ + { + switch(proto->board[i % 3][i / 3]) + { +- case proto->player: ++ case KTicTacTuxProto::player: + frame[i % 3][i / 3]->setPaletteBackgroundPixmap(QPixmap(m_t1)); + break; +- case proto->opponent: ++ case KTicTacTuxProto::opponent: + frame[i % 3][i / 3]->setPaletteBackgroundPixmap(QPixmap(m_t2)); + break; + default: +--- koenig/game.cc.old 2006-04-29 02:41:38.000000000 +0200 ++++ koenig/game.cc 2006-04-29 02:41:48.000000000 +0200 +@@ -95,10 +95,10 @@ + case CHESS_MSG_PLAYERS: + kdDebug(12101) << "Got an MSG_PLAYERS" << endl; + +- if (GGZ_SEAT_OPEN != (chessInfo.assign[0] = ggz->getChar())) ++ if ((int)GGZ_SEAT_OPEN != (chessInfo.assign[0] = ggz->getChar())) + chessInfo.name[0] = ggz->getString(); + +- if (GGZ_SEAT_OPEN != (chessInfo.assign[1] = ggz->getChar())) ++ if ((int)GGZ_SEAT_OPEN != (chessInfo.assign[1] = ggz->getChar())) + chessInfo.name[1] = ggz->getString(); + + kdDebug(12101) << "Got players " << chessInfo.name[0] +--- kcc/kcc.cpp.old 2006-04-29 02:50:16.000000000 +0200 ++++ kcc/kcc.cpp 2006-04-29 02:53:19.000000000 +0200 +@@ -152,7 +152,7 @@ + // Check for draw (no empty fields left) + for(int j = 0; j < 3; j++) + for(int i = 0; i < 3; i++) +- if(proto->board[i][j] == KCCProto::none) ++ if(proto->board[i][j] == (int)KCCProto::none) + { + m_x = i; + m_y = j; +@@ -298,30 +298,30 @@ + + switch(op) + { +- case proto->cc_msg_seat: ++ case KCCProto::cc_msg_seat: + proto->getSeat(); + kdDebug() << "*proto* got my seat: " << proto->num << endl; + break; +- case proto->cc_msg_players: ++ case KCCProto::cc_msg_players: + proto->getPlayers(); + proto->state = KCCProto::statewait; + emit signalScore(i18n("Network game")); + kdDebug() << "*proto* got players " << endl; + break; +- case proto->cc_req_move: ++ case KCCProto::cc_req_move: + proto->state = KCCProto::statemove; + m_turn = proto->num; + emit signalStatus(i18n("Your move")); + kdDebug() << "*proto* move requested" << endl; + break; +- case proto->cc_rsp_move: ++ case KCCProto::cc_rsp_move: + proto->getMoveStatus(); + switch(proto->status) + { +- case proto->errnone: ++ case KCCProto::errnone: + status = i18n("Move accepted"); + break; +- case proto->errstate: ++ case KCCProto::errstate: + status = i18n("Table not yet full"); + break; + default: +@@ -332,7 +332,7 @@ + //getNextTurn(); + kdDebug() << "*proto* rsp_move " << status << ": " << (int)proto->status << endl; + +- if(proto->status == KCCProto::errnone) ++ if(proto->status == (int)KCCProto::errnone) + { + findTarget(QPoint(m_fx, m_fy), QPoint(m_tx, m_ty), false); + tmp = proto->board[m_fx][m_fy]; +@@ -342,7 +342,7 @@ + } + m_fx = -1; + break; +- case proto->cc_msg_move: ++ case KCCProto::cc_msg_move: + kdDebug() << "*proto* msg_move" << endl; + proto->getOpponentMove(); + //if(proto->num < 0) emit signalStatus(i18n("Watching the game")); +@@ -352,11 +352,11 @@ + proto->board[proto->m_ox1][proto->m_oy1] = 1; + proto->board[proto->m_ox2][proto->m_oy2] = tmp; + break; +- case proto->cc_msg_sync: ++ case KCCProto::cc_msg_sync: + proto->getSync(); + kdDebug() << "*proto* sync" << endl; + break; +- case proto->cc_msg_gameover: ++ case KCCProto::cc_msg_gameover: + proto->getGameOver(); + kdDebug() << "*proto* gameover" << endl; + proto->state = KCCProto::statedone; +@@ -376,7 +376,7 @@ + //setMask(QBitmap(QString("%1/kcc/mask.png").arg(GGZDATADIR))); + p.begin(&b); + +- if(proto->state != KCCProto::statenone) ++ if(proto->state != (int)KCCProto::statenone) + for(int j = 0; j < 17; j++) + for(int i = 0; i < 15; i++) + { diff --git a/games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild b/games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild index b5c898c5781b..e108d757debb 100644 --- a/games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild +++ b/games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild,v 1.2 2006/03/24 16:28:42 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-board/ggz-kde-games/ggz-kde-games-0.0.9.ebuild,v 1.3 2006/04/29 01:11:00 tupone Exp $ inherit kde @@ -17,4 +17,6 @@ IUSE="" DEPEND="~dev-games/ggz-client-libs-${PV} ~games-board/ggz-kde-client-${PV}" +PATCHES="${FILESDIR}/${P}"-gcc41.patch + need-kde 3 |