diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-02-17 22:04:42 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-02-17 22:04:42 +0000 |
commit | f0a79cbcd74206f82e620bed6e91ed6b51a72d7a (patch) | |
tree | df27b84469d7440d39183f9c711ed6efea317145 /games-puzzle | |
parent | Version bump to patchset of Feb 15th. Thanks Antonio Quartulli, bug 457826. (diff) | |
download | historical-f0a79cbcd74206f82e620bed6e91ed6b51a72d7a.tar.gz historical-f0a79cbcd74206f82e620bed6e91ed6b51a72d7a.tar.bz2 historical-f0a79cbcd74206f82e620bed6e91ed6b51a72d7a.zip |
version bump
Package-Manager: portage-2.2.0_alpha162/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/icebreaker/ChangeLog | 11 | ||||
-rw-r--r-- | games-puzzle/icebreaker/Manifest | 33 | ||||
-rw-r--r-- | games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch | 247 | ||||
-rw-r--r-- | games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch | 28 | ||||
-rw-r--r-- | games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch | 34 | ||||
-rw-r--r-- | games-puzzle/icebreaker/icebreaker-1.9.6.ebuild | 44 |
6 files changed, 388 insertions, 9 deletions
diff --git a/games-puzzle/icebreaker/ChangeLog b/games-puzzle/icebreaker/ChangeLog index 65621418abb5..ab548d5638be 100644 --- a/games-puzzle/icebreaker/ChangeLog +++ b/games-puzzle/icebreaker/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-puzzle/icebreaker -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/icebreaker/ChangeLog,v 1.16 2010/10/19 08:48:21 tupone Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/icebreaker/ChangeLog,v 1.17 2013/02/17 22:04:38 hasufell Exp $ + +*icebreaker-1.9.6 (17 Feb 2013) + + 17 Feb 2013; Julian Ospald <hasufell@gentoo.org> +icebreaker-1.9.6.ebuild, + +files/icebreaker-1.9.6-gentoo.patch, +files/icebreaker-1.9.6-ldflags.patch, + +files/icebreaker-1.9.6-parallell-install.patch: + version bump 19 Oct 2010; Tupone Alfredo <tupone@gentoo.org> icebreaker-1.9.5.ebuild, +files/icebreaker-1.9.5-parallell-install.patch: diff --git a/games-puzzle/icebreaker/Manifest b/games-puzzle/icebreaker/Manifest index 25626f8eec9e..08780e756c0e 100644 --- a/games-puzzle/icebreaker/Manifest +++ b/games-puzzle/icebreaker/Manifest @@ -1,7 +1,26 @@ -AUX icebreaker-1.9.5-gentoo.patch 9254 RMD160 6a4e3162d2459b365f49073154bc546913ed7c8a SHA1 1f2d37330dfb07d126da52fb6ce37240ce9fbdb6 SHA256 47d96e3d08b6adb6cdd45ec24373cb9534b797f71b41bcf8a24bf332058700ee -AUX icebreaker-1.9.5-ldflags.patch 870 RMD160 461e1a34726bb817492d186f68f76774a9f0f515 SHA1 f796c634f696825b3db457f1974d8cc941cb324c SHA256 4601d7005773a4800d1ee37e3557ea51ec8364f847286b58260b2ace5a574513 -AUX icebreaker-1.9.5-parallell-install.patch 1183 RMD160 a52b88c21d796a7be235dadf3da8677d3c967196 SHA1 c61d6b2a65ab7cdff8ad6b27d630febb9ad0b7e8 SHA256 af211ff2b611b34dcdcb6b9b961b95b0c94fa82cfe98e4b03831c460316709ce -DIST icebreaker-1.9.5.tgz 116012 RMD160 c498135b286c9d2f85185c7f5343e498ec851cf0 SHA1 430bcc878cfb5c7bb37940c3e07da8a7b6c98174 SHA256 f283bc82df84b5f016efa6b1e6095914379cf2acac9c5692025275ff96102867 -EBUILD icebreaker-1.9.5.ebuild 1159 RMD160 3bca0533bae47cebc3799afb3d98c647792eddd3 SHA1 553860fd34912e98320dc21e5bde7c83f554b279 SHA256 6521cefc9447434b1c6960c24cddc69ad0792b6741964da5aa4340488bca3017 -MISC ChangeLog 2714 RMD160 2847fe31d75df91c28e718fc4222037edcd14d69 SHA1 d7dff69c650cbb7ce5e000100ef7a4ca61c318a8 SHA256 9d2e44ff52f72ca23abd7778197818fce7e8fc1f2e1466dcc9ec59f0d37d941f -MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX icebreaker-1.9.5-gentoo.patch 9254 SHA256 47d96e3d08b6adb6cdd45ec24373cb9534b797f71b41bcf8a24bf332058700ee SHA512 2ff34ee88b62c2bb86a4208602cd9bfcb8c925c9b119953f93c523cac562a3003b775f30b944c00397364f03739a08007cf27a9d1944ac0f1a178df73ec1fc46 WHIRLPOOL 1e7dffabe64dd5c2faf90626e8d2616989047e7430a9d79d45f2ac5e49916eaf29773b0474cb49b9d507c4e01a15152bdf9d350722c398bd5f2038821fd2c91c +AUX icebreaker-1.9.5-ldflags.patch 870 SHA256 4601d7005773a4800d1ee37e3557ea51ec8364f847286b58260b2ace5a574513 SHA512 5f3a2788cad993e625b8a6f848b2b839d07b257dd8c401e2699683a585175d686c25c69b7b477d4062db6fec9f03730c53c90dd92e9854070f9fdd6d17d7cdbf WHIRLPOOL 5971a05c2043f04a8b2ce6b255f05627c373a6e857c617212b1fd7cf6dc12f18b58540fad3a71178aaff45d5da4acbd38a613b8827f1a7e13855e24d7c09920f +AUX icebreaker-1.9.5-parallell-install.patch 1183 SHA256 af211ff2b611b34dcdcb6b9b961b95b0c94fa82cfe98e4b03831c460316709ce SHA512 7eeaa07111ee6443f9ebcb3b0bd55dccb1ed6ca3137df2b5c407dcc696c5946bc7643847d0d347761e4e8311871788cf9120a615da715e602f27af077858cfc7 WHIRLPOOL 0f90e6b9f14345d2ce8e3913adeb4216c79cfa43805a94371ea40cdfbd13912f0ae19049040f49eb82673883dfefa1a4366b21eb086a894d209a1a9c66e1ba74 +AUX icebreaker-1.9.6-gentoo.patch 8571 SHA256 76fd7d5ad7b4e41caf4c935981afae119d0214255b4b42757c0d1b2d037d5fa4 SHA512 11eead6a2c01b45b9ee18d761ca6ddd3fc565f046e03ac32a270232e90251470abf9b02cb179fabd734432ae0d5330f524cc6ce07ff975b9f330f6c6f0d0e0ca WHIRLPOOL dbd8c778e04d98915d3d8746668c8797b4e1bc38ef4a95df5fbaee4064e32271d9733a21fbdad72605a5e0c7852cef2d9c10c023795855d0f5b8e2a289924481 +AUX icebreaker-1.9.6-ldflags.patch 870 SHA256 4601d7005773a4800d1ee37e3557ea51ec8364f847286b58260b2ace5a574513 SHA512 5f3a2788cad993e625b8a6f848b2b839d07b257dd8c401e2699683a585175d686c25c69b7b477d4062db6fec9f03730c53c90dd92e9854070f9fdd6d17d7cdbf WHIRLPOOL 5971a05c2043f04a8b2ce6b255f05627c373a6e857c617212b1fd7cf6dc12f18b58540fad3a71178aaff45d5da4acbd38a613b8827f1a7e13855e24d7c09920f +AUX icebreaker-1.9.6-parallell-install.patch 1183 SHA256 af211ff2b611b34dcdcb6b9b961b95b0c94fa82cfe98e4b03831c460316709ce SHA512 7eeaa07111ee6443f9ebcb3b0bd55dccb1ed6ca3137df2b5c407dcc696c5946bc7643847d0d347761e4e8311871788cf9120a615da715e602f27af077858cfc7 WHIRLPOOL 0f90e6b9f14345d2ce8e3913adeb4216c79cfa43805a94371ea40cdfbd13912f0ae19049040f49eb82673883dfefa1a4366b21eb086a894d209a1a9c66e1ba74 +DIST icebreaker-1.9.5.tgz 116012 SHA256 f283bc82df84b5f016efa6b1e6095914379cf2acac9c5692025275ff96102867 SHA512 22fe11164693f670ed70378e5c53663a8bbe759bcaedab14f03e5aa9d33e1ca17339cd72d191cde75e08ceab9c0be5c69129ccfda41c25021fc0cc50abf8dbc8 WHIRLPOOL 827c8a9dea634e2e3d4f873099137cdde0d50820accfa5efa8d928aba3fbed49394ef1865b23034b8991e25239fbe7b283cdc4a89e233d8f41f0d006f95c920a +DIST icebreaker-1.9.6.tgz 137333 SHA256 e80f3a0c918beeff528ec7e61c04a17019c2afff85f018a04f715f2b401931dc SHA512 c3b085dc42d33757011d6d526016477312c5e1cbab4c5584c1e271a1e43b40d61ad1e7f0c96c8f41348550b2e198b3ee7bca65fbef90125dbfa32544cbdf357b WHIRLPOOL 3616e2cd757c6efc7831dfcbd36cbd1a0ec7b5b1f32022ad7c721e39adde41985c40b7a6529acc60de9b5d8f92d802fe579f5a395d9b1402f6c653929be65698 +EBUILD icebreaker-1.9.5.ebuild 1159 SHA256 6521cefc9447434b1c6960c24cddc69ad0792b6741964da5aa4340488bca3017 SHA512 98a893895fd8614f2276268136a9955fdb2a2312e8b796ec5077e628e4bbd06bec05b5e2f1400dc4ad12b1e5b37395dc3c5c8a023eebc19eda233c90f6f32d8e WHIRLPOOL 96cfb99b6f241ac4bde2eabf4636d763ffc23607de7f8048ab90e6bd5cbd1478eef8ef23c694f78ede157e7d566bd281b4e971d5433c2356fb5a061796de699d +EBUILD icebreaker-1.9.6.ebuild 1148 SHA256 390eac399ff811bbe9823637931e0bc2ad4961f55dcdec0c3ac99323821bd5d6 SHA512 8254f0b047398b26a1bcaa776cfd5aee24766f62c451d3a449cfa64abdd6e0a3f30a3bc58ce8cd1eac0d0020a5cd7ab8b2ea974b335b170644a2da33466ef344 WHIRLPOOL 4cbeb8e02638ddda3dfe8af586856ff62ac1ff160df93c03dd6ab1c9cd6a2dca57b462de2c908c0bf01479578470051a412bb81fe5afe11f947c7aaffb985d1d +MISC ChangeLog 2972 SHA256 abda26a5b26d32496cf4994161348e85ac815a8fc1755af921a1e013661d9981 SHA512 9cfb00a879ee6a513ca7aadaf5e6ab5dfb0bf29baeb867e9f8955cf793957c9538ef45aea163a900e3590d31fef36b467c60dfe80a05bd4e442b10069d942b88 WHIRLPOOL ecce8f339590f4c4bd07f742eb4100c83fa69fd8b475192a8b418876cff6b7f650f361a15f12d90676b6201d1be476a71b7587c0de6e578c8d86c49c595d18ef +MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRIVP3AAoJEFpvPKfnPDWzDFcH/RRofehQ5EQH4eB7ACmvLeqr +0C7toBPXBUbglefZ5hY/4cL976bOMRs2vm//+R/roRS/Kg3nOeisvykkO91bzC1V +OSIxPFHMH4CdJelcHa8EvAVSrfzC1JlRLOTvsi4NNlZY3p4/jcnTlpnJx4hpWV98 +k3SGrwL7T/UTkuzd/egqZBhmQiye7b8OHRSD2hzRJ/D5wgUv3Dgzq3abNGDts7Lw +OMmzmORrZqmlxq5qMCmmMs2FX5kNcu+WVu7rbyF9GByElP2Af8PhpfFVBS0M37mw +/2GFlFY6o0Qt28FhcLfhPerWdXUmMG5ppGOqOVzGFOEPgMN1Y/y8zHHEDw78Cpk= +=qiv0 +-----END PGP SIGNATURE----- diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch new file mode 100644 index 000000000000..d6e16a6c39a6 --- /dev/null +++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch @@ -0,0 +1,247 @@ +--- dialog.c ++++ dialog.c +@@ -279,10 +279,10 @@ PopupReturnType popuphighscores() + + for (i=0;i<HISCORENUM;i++) + { +- snprintf(buf,4,"%d.",i+1); ++ snprintf(buf,sizeof(buf),"%d.",i+1); + puttext(scorelistrect.x+BLOCKWIDTH,scorelistrect.y+45+i*(CHARHEIGHT*2+5),2,color.normaltext,buf); + puttext(scorelistrect.x+BLOCKWIDTH*4,scorelistrect.y+45+i*(CHARHEIGHT*2+5),2,color.normaltext,hiscorename[i]); +- snprintf(buf,30,"%ld",hiscoreval[i]); ++ snprintf(buf,sizeof(buf),"%ld",hiscoreval[i]); + puttext(scorelistrect.x+scorelistrect.w-(BLOCKWIDTH*5),scorelistrect.y+45+i*(CHARHEIGHT*2+5),2,color.normaltext,buf); + } + +@@ -364,7 +364,7 @@ PopupReturnType popuphelp() + { + puttext(helprect.x+BLOCKWIDTH/2,helprect.y+BLOCKHEIGHT/2+i*(CHARHEIGHT*2+4),2,color.normaltext,helptext[i]); + } +- snprintf(buf,80,"v%d.%d.%d %s",VERMAJOR,VERMINOR,VERSUB,"Copyright (c) 2000-2002 Matthew Miller. Released under the GPL."); ++ snprintf(buf,sizeof(buf),"v%d.%d.%d %s",VERMAJOR,VERMINOR,VERSUB,"Copyright (c) 2000-2002 Matthew Miller. Released under the GPL."); + puttext(helprect.x+BLOCKWIDTH/2,helprect.y+helprect.h-CHARHEIGHT*3,1,color.copyrighttext,buf); + puttext(helprect.x+BLOCKWIDTH/2,helprect.y+helprect.h-CHARHEIGHT*1-3,1,color.copyrighttext,"Thanks to my wonderful wife Karen for inspiration (and for patience)!"); + +--- menu.c ++++ menu.c +@@ -193,12 +193,12 @@ PopupReturnType popupoptionsmenu() + + if (strlen(commandline.theme)>0) + { +- snprintf(originaltheme,MAXTHEMENAMELENGTH+1,"%s",commandline.theme); ++ snprintf(originaltheme,sizeof(originaltheme),"%s",commandline.theme); + originalthemecl=true; + } + else + { +- snprintf(originaltheme,MAXTHEMENAMELENGTH+1,"%s",options.theme); ++ snprintf(originaltheme,sizeof(originaltheme),"%s",options.theme); + originalthemecl=false; + } + +@@ -521,7 +521,7 @@ PopupReturnType menuitem_theme(char * va + if (((mbutton==1 || mbutton==4) && t==themecount-1) || ((mbutton!=1 && mbutton!=4) && t==0)) + { // "random", at the end/beginning of the list + +- strncpy(val,"random",MAXMENUVALUELENGTH); ++ strcpy(options.theme,"random"); + snprintf(options.theme,MAXMENUVALUELENGTH,"random"); + + settheme("linux"); // just for pretty +@@ -538,7 +538,7 @@ PopupReturnType menuitem_theme(char * va + if (mbutton==1 || mbutton==4) // left click or scroll forwards + { + strncpy(val,themelist[(t+1)%themecount],MAXMENUVALUELENGTH); +- snprintf(options.theme,MAXMENUVALUELENGTH,themelist[(t+1)%themecount]); ++ snprintf(options.theme,sizeof(options.theme),"%s",themelist[(t+1)%themecount]); + } + else // right or middle or scroll back + { +--- hiscore.c ++++ hiscore.c +@@ -72,7 +72,7 @@ + // make sure all entries are zeroed out to start. + for (i=0;i<HISCORENUM;i++) + { +- snprintf(temphiscorename[i],7,"Nobody"); ++ strcpy(temphiscorename[i],"Nobody"); + temphiscoreval[i]=100; //100 is better than 0. :) + } + +@@ -103,7 +103,7 @@ + // ok, so now, we can copy things over in the proper sorted order + for (i=0;i<HISCORENUM;i++) + { +- snprintf(hiscorename[i],50,temphiscorename[arrayindex[i]]); ++ snprintf(hiscorename[i],50,"%s",temphiscorename[arrayindex[i]]); + hiscoreval[i]=temphiscoreval[arrayindex[i]]; + } + +@@ -201,13 +201,13 @@ + // make sure the temp array contains the right data + for (i=0;i<HISCORENUM;i++) + { +- snprintf(temphiscorename[i],50,hiname[i]); ++ snprintf(temphiscorename[i],50,"%s",hiname[i]); + temphiscoreval[i]=hival[i]; + } + + // and toss in the new data + //(this is why these arrays are size HISCORENUM+1) +- snprintf(temphiscorename[HISCORENUM],50,username); ++ snprintf(temphiscorename[HISCORENUM],50,"%s",username); + temphiscoreval[HISCORENUM]=score; + + // fill the "helper" array. +@@ -221,7 +221,7 @@ + // and take the top ones back. + for (i=0;i<HISCORENUM;i++) + { +- snprintf(hiname[i],50,temphiscorename[arrayindex[i]]); ++ snprintf(hiname[i],50,"%s",temphiscorename[arrayindex[i]]); + hival[i]=temphiscoreval[arrayindex[i]]; + } + } +--- line.c ++++ line.c +@@ -30,8 +30,9 @@ + + Line createline(int linenum) + { +- Line l; ++ static Line l; + ++ memset(&l, 0, sizeof(l)); + switch (linenum) + { + case 1: +--- options.c ++++ options.c +@@ -66,7 +66,7 @@ + options.autopause=AUTOPAUSEOFF; + options.difficulty=NORMAL; + options.fullscreen=FULLSCREENOFF; +- snprintf(options.theme,MAXTHEMENAMELENGTH+1,"linux"); ++ strcpy(options.theme,"linux"); + } + + int readoptions(void) +@@ -81,7 +81,7 @@ + + setdefaultoptions(); + +- snprintf(filename,255,"%s/%s",homedir,OPTIONFILE); ++ snprintf(filename,sizeof(filename),"%s/%s",homedir,OPTIONFILE); + + optionfile=fopen(filename,"r"); + if (optionfile==NULL) +@@ -135,7 +135,7 @@ + } + else if (!strcmp(optbuf,"theme")) + { +- snprintf(options.theme,MAXTHEMENAMELENGTH+1,"%s",valbuf); ++ snprintf(options.theme,sizeof(options.theme),"%s",valbuf); + } + // FIX: add username + } +@@ -150,7 +150,7 @@ + { + FILE * optionfile; + char filename[255]; +- snprintf(filename,255,"%s/%s",homedir,OPTIONFILE); ++ snprintf(filename,sizeof(filename),"%s/%s",homedir,OPTIONFILE); + + optionfile=fopen(filename,"w"); + if (optionfile==NULL) +@@ -292,7 +292,7 @@ + else + { + // fix -- we should probably search for malicious characters here. +- snprintf(commandline.theme,MAXTHEMENAMELENGTH+1,"%s",argv[i]+strlen(FLAGTHEME)); ++ snprintf(commandline.theme,sizeof(commandline.theme),"%s",argv[i]+strlen(FLAGTHEME)); + } + } + else if (strncmp(argv[i],FLAGTHEMELONG "=" ,strlen(FLAGTHEMELONG "=")) == 0) +@@ -312,7 +312,7 @@ + else + { + // fix -- we should probably search for malicious characters here. +- snprintf(commandline.theme,MAXTHEMENAMELENGTH+1,"%s",argv[i]+strlen(FLAGTHEMELONG "=")); ++ snprintf(commandline.theme,sizeof(commandline.theme),"%s",argv[i]+strlen(FLAGTHEMELONG "=")); + } + } + else if (strncmp(argv[i],FLAGTHEMELONG,strlen(FLAGTHEMELONG)) == 0) +--- penguin.c ++++ penguin.c +@@ -40,8 +40,9 @@ + + Penguin createpenguinxy(int x, int y) + { +- Penguin p; ++ static Penguin p; + ++ memset(&p, 0, sizeof(p)); + switch (random() % 4) + { + case 0: +--- themes.c ++++ themes.c +@@ -183,7 +183,7 @@ + + foundcolor.spritetransparent = 0; + +- snprintf(themefilename, 256,"%s/%s%s",DATAPREFIX,themename,THEMEFILEEXTENSION); ++ snprintf(themefilename, sizeof(themefilename),"%s/%s%s",DATAPREFIX,themename,THEMEFILEEXTENSION); + + themefile=fopen(themefilename,"r"); + if (themefile==NULL) +@@ -329,7 +329,7 @@ + "We'll try to load it anyway, but don't be surpised if there's a problem.\n" + "(Filename is %s)\n",themename,valbuf); + } +- snprintf(loadfilebuf, 256,"%s/%s",DATAPREFIX,valbuf); ++ snprintf(loadfilebuf, sizeof(loadfilebuf),"%s/%s",DATAPREFIX,valbuf); + spriteimage=loadsprite(themename,loadfilebuf); + } + else if (!strcmp(optbuf,"spritemirrorbitmap")) +@@ -340,7 +340,7 @@ + "We'll try to load it anyway, but don't be surpised if there's a problem.\n" + "(Filename is %s)\n",themename,valbuf); + } +- snprintf(loadfilebuf, 256,"%s/%s",DATAPREFIX,valbuf); ++ snprintf(loadfilebuf, sizeof(loadfilebuf),"%s/%s",DATAPREFIX,valbuf); + spritemirrorimage=loadsprite(themename,loadfilebuf); + } + else if (!strcmp(optbuf,"soundouch")) +@@ -351,7 +351,7 @@ + "We'll try to load it anyway, but don't be surpised if there's a problem.\n" + "(Filename is %s)\n",themename,valbuf); + } +- snprintf(loadfilebuf, 256,"%s/%s",DATAPREFIX,valbuf); ++ snprintf(loadfilebuf, sizeof(loadfilebuf),"%s/%s",DATAPREFIX,valbuf); + loadsounds(themename,loadfilebuf,NULL); + } + else if (!strcmp(optbuf,"soundcrash")) +@@ -362,7 +362,7 @@ + "We'll try to load it anyway, but don't be surpised if there's a problem.\n" + "(Filename is %s)\n",themename,valbuf); + } +- snprintf(loadfilebuf, 256,"%s/%s",DATAPREFIX,valbuf); ++ snprintf(loadfilebuf, sizeof(loadfilebuf),"%s/%s",DATAPREFIX,valbuf); + loadsounds(themename,NULL,loadfilebuf); + } + } +@@ -474,11 +474,11 @@ + { + fprintf(stderr,"Hey! You can't have a theme named random! Please remove the random.ibt\n" + "file from your themes directory.\n"); +- snprintf(themename,MAXTHEMENAMELENGTH+1,"linux"); ++ strcpy(themename,"linux"); + } + else + { +- snprintf(themename,MAXTHEMENAMELENGTH+1,themelist[random() %themecount]); ++ snprintf(themename,sizeof(themename),"%s",themelist[random() %themecount]); + } + freethemenames(&themelist,themecount); + return settheme(themename); diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch new file mode 100644 index 000000000000..44ef9bdf8631 --- /dev/null +++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch @@ -0,0 +1,28 @@ +--- Makefile.orig 2010-10-11 12:20:01.274684641 -0400 ++++ Makefile 2010-10-11 12:22:02.256897083 -0400 +@@ -1,5 +1,3 @@ +-CC=gcc +- + SDLCONFIG=sdl-config + + ifndef prefix +@@ -177,7 +175,7 @@ + [ -d win32.build ] && rm -rf win32.build || true + + icebreaker: $(SRC:.c=.o) +- $(CC) $(CFLAGS) $^ -o icebreaker $(SDL_LIB) ++ $(CC) $(LDFLAGS) $(CFLAGS) $^ -o icebreaker $(SDL_LIB) + + man: icebreaker.6 + +@@ -202,8 +200,8 @@ + install -m 644 *.wav *.bmp $(datadir)/icebreaker + + install-bin: icebreaker +- install -s -g games -m 2755 icebreaker $(bindir) || \ +- install -s -m 755 icebreaker $(bindir) ++ install -g games -m 2755 icebreaker $(bindir) || \ ++ install -m 755 icebreaker $(bindir) + @test -g $(bindir)/icebreaker || \ + echo -e '*** Note: icebreaker binary not installed set-group-ID "games" -- shared\n*** highscores may be impossible. (Try installing as root.)' + diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch new file mode 100644 index 000000000000..de388d9b5758 --- /dev/null +++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch @@ -0,0 +1,34 @@ +--- Makefile.old 2010-10-19 10:26:18.000000000 +0200 ++++ Makefile 2010-10-19 10:38:28.000000000 +0200 +@@ -196,26 +196,30 @@ + themes-install: install-themes + + install-themes: ++ mkdir -p $(datadir)/icebreaker + install -m 644 *.ibt $(datadir)/icebreaker + install -m 644 *.wav *.bmp $(datadir)/icebreaker + + install-bin: icebreaker ++ mkdir -p $(bindir) + install -g games -m 2755 icebreaker $(bindir) || \ + install -m 755 icebreaker $(bindir) + @test -g $(bindir)/icebreaker || \ + echo -e '*** Note: icebreaker binary not installed set-group-ID "games" -- shared\n*** highscores may be impossible. (Try installing as root.)' + + install-man: icebreaker.6 ++ mkdir -p $(mandir)/man6 + install -m 644 icebreaker.6 $(mandir)/man6 + + install-scorefile: ++ mkdir -p $(highscoredir) + touch $(highscoredir)/icebreaker.scores + chown -f games:games $(highscoredir)/icebreaker.scores && \ + chmod 664 $(highscoredir)/icebreaker.scores || \ + chmod 644 $(highscoredir)/icebreaker.scores + + +-install: all install-mkdirs install-themes install-bin install-man install-scorefile ++install: install-themes install-bin install-man install-scorefile + + %.d: %.c + set -e; $(CC) -M $(CFLAGS) $< \ diff --git a/games-puzzle/icebreaker/icebreaker-1.9.6.ebuild b/games-puzzle/icebreaker/icebreaker-1.9.6.ebuild new file mode 100644 index 000000000000..025f286c43a3 --- /dev/null +++ b/games-puzzle/icebreaker/icebreaker-1.9.6.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/icebreaker/icebreaker-1.9.6.ebuild,v 1.1 2013/02/17 22:04:38 hasufell Exp $ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Trap and capture penguins on Antarctica" +HOMEPAGE="http://www.mattdm.org/icebreaker/" +SRC_URI="http://www.mattdm.org/${PN}/1.9.x/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="media-libs/libsdl[video] + media-libs/sdl-mixer" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-ldflags.patch + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-parallell-install.patch ) + +src_compile() { + emake \ + OPTIMIZE="${CFLAGS}" \ + prefix=/usr \ + bindir="${GAMES_BINDIR}" \ + datadir="${GAMES_DATADIR}" \ + highscoredir="${GAMES_STATEDIR}" +} + +src_install() { + emake \ + prefix="${D}/usr" \ + bindir="${D}${GAMES_BINDIR}" \ + datadir="${D}${GAMES_DATADIR}" \ + highscoredir="${D}${GAMES_STATEDIR}" install + newicon ${PN}_48.bmp ${PN}.bmp + make_desktop_entry ${PN} IceBreaker /usr/share/pixmaps/${PN}.bmp + dodoc ChangeLog README* TODO + prepgamesdirs +} |