diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /games-strategy/galaxyhack | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'games-strategy/galaxyhack')
-rw-r--r-- | games-strategy/galaxyhack/Manifest | 14 | ||||
-rw-r--r-- | games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch | 142 | ||||
-rw-r--r-- | games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch | 20 | ||||
-rw-r--r-- | games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch | 20 | ||||
-rw-r--r-- | games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch | 116 | ||||
-rw-r--r-- | games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch | 21 | ||||
-rw-r--r-- | games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch | 4 | ||||
-rw-r--r-- | games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild (renamed from games-strategy/galaxyhack/galaxyhack-1.74-r1.ebuild) | 51 |
8 files changed, 201 insertions, 187 deletions
diff --git a/games-strategy/galaxyhack/Manifest b/games-strategy/galaxyhack/Manifest index c3dd85d53b68..c6c5c38c88da 100644 --- a/games-strategy/galaxyhack/Manifest +++ b/games-strategy/galaxyhack/Manifest @@ -1,10 +1,10 @@ -AUX galaxyhack-1.74-boost-1.50.patch 3206 BLAKE2B c97b67ac602a440eb90ae481e0ef5837e64cf9ad3c07e722899b7e1c6701536df1af3dca5e7e645dc13bd3622b8bf7e1a274c0c0de24cb9f39287f1af2e5e14f SHA512 ce441bd44c44000b28520bba3c76b4e3d37fef5b424ddae1be4ee2e0675859ce22090c9e79a7fca37f46b16312b581201eb413d89cdddab3d6169c97ec0d6304 -AUX galaxyhack-1.74-boost.patch 245 BLAKE2B afb356c6fb7d2f5243466f84d5605e1cc13da00b842c2bc554d791f20de6c37ab6b563e3320b3f0f6ca242987c75ffe6fbaba5ba236bd833a3bc86361be689b9 SHA512 19a6ef4ee430edab619d60d4410d318e07ba3dd75b48036331029ff0de11ad5ccc73970825708764a7da9870d9ae8a7708a22176aa6698fdd4c2837bf3a91885 -AUX galaxyhack-1.74-destdirs.patch 390 BLAKE2B 5c807a22493528f472e3d5e9366ab4b8bacfb7d3a7c31291a3a1e8cf872fcd2cf9c3e373e53bffa9d92af68bf9549c6ebf44a6aaa8d6cd10f6afcfd6e6906690 SHA512 d154eb0b0116fa1e067bae12db82cef5eb3bf882683f624becb54244ffa744a3bdc7ebe77fe6e87c634f42f649cc8dd0fb7067aa5d2cb5b8a72cf50cdbfe7702 -AUX galaxyhack-1.74-format.patch 1768 BLAKE2B 5a0ee8e935c557ac25b470e1914f242da093352321ba34c067ca3997e3892aff3f6330b827bc7d08c7541cc1e9e0cb2e0b4e0d938ddd1f9cfd21916b11f978e3 SHA512 e38280f9a06426a77abea3a10de6ce23868dd2d4df0c398832856bfa5e39c329cf39b39bd4ff766c54fd72813933c502ca9a63750b7a4160e536a40a08bc0ba3 -AUX galaxyhack-1.74-gcc43.patch 309 BLAKE2B f8af1b8b2d4d50bb37eb13237915638d746a79daa621d81958bf99d7071178d3402989fa0fbeb9d67abffea4a15a97d1da263855b5ac17b1caf96213ebddcb31 SHA512 21169edbaf8f4c0d8f4fcd44a494e0121fb332b42cf14ba09818cf871cfdb792e4bbe00c7ae1b9ddc9094c96edda785f2763c76a70dcf92ec7ea163e3248aaa0 -AUX galaxyhack-1.74-gentoo.patch 992 BLAKE2B 63ca6fee15f9f088e2c8a73566d5a7579ed4636d8048771ee01aa40a6f8edd1013e1d6a710d45caa951311709c19ed3d670014bfd1513982c317d6ea5d1b4d34 SHA512 e268019e57c95caf6f24331e0c1f6bb0f47507940e8621cf5307f5cdd24cdd9ab49307208f6914558df35bedd725db38374c04b4f887c89814896ce9902f7b0a +AUX galaxyhack-1.74-boost-1.50.patch 2835 BLAKE2B 3604f846dc2d9dae1dc1cdd95a9bb16dc167d9be0f014a5d8ddbd9c73833f793c278396338a60814622535d9a10902df201831a6ea3e6514682993d3743f4d4c SHA512 9db0c3956590f1040635c5606cd6b96a62ce0c14e7bb1b05030b92ddca578e011a94dea461c75771be5b695813c21f740387a98a2b40cc91f69c5e8153f1f3fa +AUX galaxyhack-1.74-boost.patch 233 BLAKE2B 5c03e01035714028a9e85abbd29b0a74fcc35189b7b4252107850ecdbb2bed4ff94d41f9db47f00e74c9dd6b34322bb1fbf875f2efdb03d23a31d867b562e5ef SHA512 96d05643dd897bef167e41e8e3823b5b15be462ac9a3f2e89ec61abd02feb5ebd2b403f367ae1a2da84fd8eb2bab24c044ffb467a5fddfb9927bfefebf3c80a0 +AUX galaxyhack-1.74-destdirs.patch 306 BLAKE2B b353c01bbdb53f1077a6b9c0943d5998852ebcc81076fe14868615472d3a2dd4fdc7a6ff930d4dea419829545a26534208921e2f6c1e5cc09c78869c78969bb2 SHA512 315a8138d5a0ce35ff4ef915b776b4918530e9e28b4066169960fe20ebb70628a2c8cc7fb1ba19739269ac6adaf9e6271dfd8f294a1e1a9e05ddaabc3d67807a +AUX galaxyhack-1.74-format.patch 1636 BLAKE2B a0f2c534c0431ccf40bbe59d787627254334cb596fa8081c99eb9e1bd82fcbdb6050359cfcf968ce19cebc5a2666aedee69a8ee8db210c669ec504244465898d SHA512 2b550b897fc43e491cbac75c1c07085f444c2d4df9e4b71683c9bc1c1ddf853aaa37d1deb78cb27d2ffcf9b673099a8c10348fb3d6d57febbc974b745de7bf8e +AUX galaxyhack-1.74-gcc43.patch 181 BLAKE2B 4c65af90380a2232eac5b9ba6dce9f2e8d0f1a0d213579f037c2229c864e0d0281265667efb5cf8fff8b2187186d095460bbbb9715ae46e3337d95cbf8694afc SHA512 7bef8937152d9db692613b888e4c62ed70c827b7c771e7cffd7ae69da8e76af228990f5b4f2dd2f2f32f1943c6461baac9de0376eb70b8a2ed2b775d83b99e6a +AUX galaxyhack-1.74-gentoo.patch 916 BLAKE2B 2ac8e2416500bd8048601d39a7b055774737676093c7de9d895f9059b276d95add72f2cde781c89066903dede423d0ce0912c94747be48adb200a4d3ae087d87 SHA512 800e5169daf1e87469aa29dc01a5a7d6e9ba83b18b24c3dd942fcde9c24a8a6b4eff4036a091c4584203124a8ebe553161e5358753850c9751af5a2e413c8ad1 DIST galaxyhack-1.74.tar.bz2 9948336 BLAKE2B 2029e4a27e2995ebd8bb4f7e9192fc353b22a0246e5bca5294a9a09ee936c0050682dcff52a233b87d659a6a4e98f56fcd4b563fb1159b52f6f596a5413a687b SHA512 d708494b1ad572c0243da9e7168b4707112ec3c99a09498b87f8e0cb2e4e5bc9df8dc4631e3fb4d3cd7517ec4b17e937798dec3fcf770de9d0fc1b5e29a0bd58 DIST galaxyhack.png 819 BLAKE2B c19a6c05313eedfd118de0b02b688e98dc011a760da10c5edc6ee15eea3668e7dbf19fcbc7546807221b3b727056c5d5075c91cae699300c6d7b19c939b0f2b6 SHA512 b8ab4dd1c18c079ec3f60b3d04843fbb7a892feb8f872d498c20eb3142e7de26bff90c93b308656e1afe5ee77074fcb3f78542dfd175c27a9b865a512e0b0200 -EBUILD galaxyhack-1.74-r1.ebuild 1592 BLAKE2B afde825de3df81f6b18cce5376f30059763dfeab87c154a8b3f7fa9c4a7d011a66cd53b2a3df165bd3c05eb858317c1f9ee20545b10295fb76eca3691a5c265d SHA512 abd828bf419949722c7261439c6bb386b9f6813da6bd6c68c91d8084ae4a0d04f2b6f6660116a8cc969a742ed62ce05bec3306fa58bca93d79186af3d00c4072 +EBUILD galaxyhack-1.74-r2.ebuild 1806 BLAKE2B 8c1cfa6835995735cf28f1a7992f654178e720f79806f530986b9abee14c0ab9ec82899f0e03345156467e9a29aa616a70c11d1b2a43417df0f200196fd006af SHA512 dfc570dba4ca8582ed1b4551f56c451beab4dd89d83f69d2d4d005ad56394df50de336aba2c4b585c88533a46dc4eb2a938cd0a9e744e403f2f252092c81ae73 MISC metadata.xml 1383 BLAKE2B b358635bd0e1f15560dc84368bc32eb1de4a487ca377924d82f3d2b28912ec702a07fa34565fea4fdf77280599403187b670a103d3d158e0c5ccfa3265257725 SHA512 1857f21b7f01d16e5eaa7fd6f3b653c820837d5b47022bf47c02af44c5bb00f0010c36c722aa1225d0cf0cdec8d85c4f6f14e5c7c0785da8706ea9886a72b285 diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch index ed8ff748aa98..f3468ecf4be8 100644 --- a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch @@ -1,77 +1,77 @@ ---- a/ForceSelectWin.cpp.orig 2012-08-20 17:35:01.000000000 +0200 -+++ b/ForceSelectWin.cpp 2012-08-20 17:47:19.000000000 +0200 +--- a/ForceSelectWin.cpp ++++ b/ForceSelectWin.cpp @@ -1596,15 +1596,15 @@ - fs::directory_iterator directoryEnd; // default construction yields past-the-end
- for (fs::directory_iterator iter(sourcePath); iter != directoryEnd; ++iter) {
- if (is_directory(*iter)) {
-- fs::create_directory(destPath.string() + "/" + iter->leaf());
-- DoCopy(sourcePath.string() + "/" + iter->leaf(), destPath.string() + "/" + iter->leaf());
-+ fs::create_directory(destPath.string() + "/" + iter->path().filename().string());
-+ DoCopy(sourcePath.string() + "/" + iter->path().filename().string(), destPath.string() + "/" + iter->path().filename().string());
- continue;
- }
- string destFile;
-- if (iter->leaf() == sideName + ".dat")
-+ if (iter->path().filename() == sideName + ".dat")
- destFile = theInput + ".dat";
- else
-- destFile = iter->leaf();
-+ destFile = iter->path().filename().string();
-
- fs::copy_file(*iter, destPath.string() + "/" + destFile);
- }
---- a/Main.cpp.orig 2012-08-20 17:48:13.000000000 +0200 -+++ b/Main.cpp 2012-08-20 17:50:51.000000000 +0200 + fs::directory_iterator directoryEnd; // default construction yields past-the-end + for (fs::directory_iterator iter(sourcePath); iter != directoryEnd; ++iter) { + if (is_directory(*iter)) { +- fs::create_directory(destPath.string() + "/" + iter->leaf()); +- DoCopy(sourcePath.string() + "/" + iter->leaf(), destPath.string() + "/" + iter->leaf()); ++ fs::create_directory(destPath.string() + "/" + iter->path().filename().string()); ++ DoCopy(sourcePath.string() + "/" + iter->path().filename().string(), destPath.string() + "/" + iter->path().filename().string()); + continue; + } + string destFile; +- if (iter->leaf() == sideName + ".dat") ++ if (iter->path().filename() == sideName + ".dat") + destFile = theInput + ".dat"; + else +- destFile = iter->leaf(); ++ destFile = iter->path().filename().string(); + + fs::copy_file(*iter, destPath.string() + "/" + destFile); + } +--- a/Main.cpp ++++ b/Main.cpp @@ -339,12 +339,6 @@ -
- void GameInit(char* argv[]) {
- namespace fs = boost::filesystem;
-- //boost is really quite stupid
-- #ifndef WIN32
-- fs::path::default_name_check(fs::windows_name);
-- #else
-- fs::path::default_name_check(fs::native);
-- #endif
-
- FindHomePath();
- LoadSettings(argv);
---- a/Menu_Base.cpp.orig 2012-08-20 17:51:05.000000000 +0200 -+++ b/Menu_Base.cpp 2012-08-20 17:52:15.000000000 +0200 + + void GameInit(char* argv[]) { + namespace fs = boost::filesystem; +- //boost is really quite stupid +- #ifndef WIN32 +- fs::path::default_name_check(fs::windows_name); +- #else +- fs::path::default_name_check(fs::native); +- #endif + + FindHomePath(); + LoadSettings(argv); +--- a/Menu_Base.cpp ++++ b/Menu_Base.cpp @@ -206,7 +206,7 @@ -
- fs::directory_iterator directoryEnd; // default construction yields past-the-end
- for (fs::directory_iterator iter(directory); iter != directoryEnd; ++iter) {
-- string filename = iter->leaf();
-+ string filename = iter->path().filename().string();
-
- if (filename.find('.') == filename.npos)
- continue;
+ + fs::directory_iterator directoryEnd; // default construction yields past-the-end + for (fs::directory_iterator iter(directory); iter != directoryEnd; ++iter) { +- string filename = iter->leaf(); ++ string filename = iter->path().filename().string(); + + if (filename.find('.') == filename.npos) + continue; @@ -237,7 +237,7 @@ - fs::directory_iterator directoryEnd; // default construction yields past-the-end
- for (fs::directory_iterator iter(globalSettings.bdp + "fleets/"); iter != directoryEnd; ++iter) {
- if (fs::is_directory(*iter)) {
-- string fleetName = iter->leaf();
-+ string fleetName = iter->path().filename().string();
-
- if (CheckFleetExists(fleetName)) {
- tempItem.desc = fleetName;
+ fs::directory_iterator directoryEnd; // default construction yields past-the-end + for (fs::directory_iterator iter(globalSettings.bdp + "fleets/"); iter != directoryEnd; ++iter) { + if (fs::is_directory(*iter)) { +- string fleetName = iter->leaf(); ++ string fleetName = iter->path().filename().string(); + + if (CheckFleetExists(fleetName)) { + tempItem.desc = fleetName; @@ -261,7 +261,7 @@ - fs::path iterPath(GetFleetDir(whichSide));
- fs::directory_iterator directoryEnd; // default construction yields past-the-end
- for (fs::directory_iterator iter(iterPath); iter != directoryEnd; ++iter) {
-- string filename = iter->leaf();
-+ string filename = iter->path().filename().string();
-
- if (filename.find('.') == filename.npos)
- continue;
---- a/Stuff.cpp.orig 2012-08-20 17:52:36.000000000 +0200 -+++ b/Stuff.cpp 2012-08-20 17:53:11.000000000 +0200 + fs::path iterPath(GetFleetDir(whichSide)); + fs::directory_iterator directoryEnd; // default construction yields past-the-end + for (fs::directory_iterator iter(iterPath); iter != directoryEnd; ++iter) { +- string filename = iter->leaf(); ++ string filename = iter->path().filename().string(); + + if (filename.find('.') == filename.npos) + continue; +--- a/Stuff.cpp ++++ b/Stuff.cpp @@ -657,7 +657,7 @@ - fs::directory_iterator directoryEnd; // default construction yields past-the-end
- for (fs::directory_iterator iter(tempPath); iter != directoryEnd; ++iter) {
- if (fs::is_directory(*iter) && !fs::is_empty(*iter))
-- RemoveDirectory(iter->string());
-+ RemoveDirectory(iter->path().string());
- else
- fs::remove(*iter);
- }
+ fs::directory_iterator directoryEnd; // default construction yields past-the-end + for (fs::directory_iterator iter(tempPath); iter != directoryEnd; ++iter) { + if (fs::is_directory(*iter) && !fs::is_empty(*iter)) +- RemoveDirectory(iter->string()); ++ RemoveDirectory(iter->path().string()); + else + fs::remove(*iter); + } diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch index c7fd49135dee..0da874e8715e 100644 --- a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch @@ -1,11 +1,11 @@ ---- src/SetupBattle.cpp -+++ src/SetupBattle.cpp +--- a/SetupBattle.cpp ++++ b/SetupBattle.cpp @@ -18,7 +18,7 @@ - #include "PreBattle.h"
-
- #include <sstream>
--#include <boost/filesystem/exception.hpp>
-+#include <boost/filesystem.hpp>
-
- using std::stringstream;
- using std::getline;
+ #include "PreBattle.h" + + #include <sstream> +-#include <boost/filesystem/exception.hpp> ++#include <boost/filesystem.hpp> + + using std::stringstream; + using std::getline; diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch index 7c60c4efa624..01283c5ab50f 100644 --- a/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch @@ -1,11 +1,11 @@ ---- a/Main.cpp.old 2006-07-28 00:04:46.000000000 +0200 -+++ b/Main.cpp 2006-07-28 00:08:28.000000000 +0200 +--- a/Main.cpp ++++ b/Main.cpp @@ -184,7 +184,7 @@ - #ifndef WIN32
- string settingsPath = userHomePath + "settings.dat";
- if (!DoesFileExist(settingsPath))
-- settingsPath = "settings.dat";
-+ settingsPath = "@GAMES_DATADIR@/galaxyhack/settings.dat";
- #else
- string settingsPath = "settings.dat";
- #endif
+ #ifndef WIN32 + string settingsPath = userHomePath + "settings.dat"; + if (!DoesFileExist(settingsPath)) +- settingsPath = "settings.dat"; ++ settingsPath = "@GAMES_DATADIR@/galaxyhack/settings.dat"; + #else + string settingsPath = "settings.dat"; + #endif diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch index 478e58001c73..f878fbd904a5 100644 --- a/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch @@ -1,64 +1,64 @@ ---- a/JSDL.cpp.old 2016-01-04 10:42:56.404316856 +0100 -+++ b/JSDL.cpp 2016-01-04 10:51:16.744255312 +0100 +--- a/JSDL.cpp ++++ b/JSDL.cpp @@ -47,14 +47,14 @@ - if (!globalSettings.batch) {
- if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO) == -1) {
- char output[120];
-- sprintf(output, SDL_GetError());
-+ strcpy(output, SDL_GetError());
- throw runtime_error(output);
- }
-
- if (!globalSettings.disableSound) {
- if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) {
- char error[120];
-- sprintf(error, SDL_GetError());
-+ strcpy(error, SDL_GetError());
- string errorStr = error;
- errorStr += ", continuing without initialising sound.";
- WriteLog(errorStr);
+ if (!globalSettings.batch) { + if (SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO) == -1) { + char output[120]; +- sprintf(output, SDL_GetError()); ++ strcpy(output, SDL_GetError()); + throw runtime_error(output); + } + + if (!globalSettings.disableSound) { + if (SDL_InitSubSystem(SDL_INIT_AUDIO) == -1) { + char error[120]; +- sprintf(error, SDL_GetError()); ++ strcpy(error, SDL_GetError()); + string errorStr = error; + errorStr += ", continuing without initialising sound."; + WriteLog(errorStr); @@ -81,7 +81,7 @@ - //4096 is rather a large chunksize, should be smaller if I add sound effects
- if (Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 4096) == -1) {
- char output[100];
-- sprintf(output, Mix_GetError());
-+ strcpy(output, Mix_GetError());
- throw runtime_error(output);
- }
- }
+ //4096 is rather a large chunksize, should be smaller if I add sound effects + if (Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 4096) == -1) { + char output[100]; +- sprintf(output, Mix_GetError()); ++ strcpy(output, Mix_GetError()); + throw runtime_error(output); + } + } @@ -101,7 +101,7 @@ - if (screen == NULL) {
- SDL_Quit();
- char output[120];
-- sprintf(output, SDL_GetError());
-+ strcpy(output, SDL_GetError());
- throw runtime_error(output);
- }
- }
+ if (screen == NULL) { + SDL_Quit(); + char output[120]; +- sprintf(output, SDL_GetError()); ++ strcpy(output, SDL_GetError()); + throw runtime_error(output); + } + } @@ -114,7 +114,7 @@ -
- if (loadingSurface == NULL) {
- char output[100];
-- sprintf(output, IMG_GetError());
-+ strcpy(output, IMG_GetError());
- throw runtime_error(output);
- }
-
+ + if (loadingSurface == NULL) { + char output[100]; +- sprintf(output, IMG_GetError()); ++ strcpy(output, IMG_GetError()); + throw runtime_error(output); + } + @@ -308,7 +308,7 @@ -
- if (!theMusic) {
- char output[100];
-- sprintf(output, Mix_GetError());
-+ strcpy(output, Mix_GetError());
- throw runtime_error(output);
- }
- }
+ + if (!theMusic) { + char output[100]; +- sprintf(output, Mix_GetError()); ++ strcpy(output, Mix_GetError()); + throw runtime_error(output); + } + } @@ -319,7 +319,7 @@ -
- if (Mix_PlayMusic(theMusic, -1) == -1) {
- char output[100];
-- sprintf(output, Mix_GetError());
-+ strcpy(output, Mix_GetError());
- throw runtime_error(output);
- }
- }
+ + if (Mix_PlayMusic(theMusic, -1) == -1) { + char output[100]; +- sprintf(output, Mix_GetError()); ++ strcpy(output, Mix_GetError()); + throw runtime_error(output); + } + } diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch index eeb64d12e587..817958b0403a 100644 --- a/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch @@ -1,12 +1,11 @@ -diff -aur src.old/JSDL.cpp src/JSDL.cpp ---- src.old/JSDL.cpp 2008-07-17 18:31:38.000000000 +0200 -+++ src/JSDL.cpp 2008-07-17 19:19:39.000000000 +0200 +--- a/JSDL.cpp ++++ b/JSDL.cpp @@ -20,7 +20,7 @@ - #include <cstdlib>
- #include <fstream>
- #include <stdexcept>
--
-+#include <cstring>
- using std::runtime_error;
- using std::memcpy;
-
+ #include <cstdlib> + #include <fstream> + #include <stdexcept> +- ++#include <cstring> + using std::runtime_error; + using std::memcpy; + diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch index 9e55c941bfeb..e9fb838826ec 100644 --- a/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch +++ b/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch @@ -1,5 +1,5 @@ ---- a/Makefile.old 2009-02-11 22:21:26.000000000 +0100 -+++ b/Makefile 2009-02-11 22:20:58.000000000 +0100 +--- a/Makefile ++++ b/Makefile @@ -6,12 +6,11 @@ # James Gregory and Everton da Silva Marques <evertonsm@yahoo.com.br> # diff --git a/games-strategy/galaxyhack/galaxyhack-1.74-r1.ebuild b/games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild index aead3e7b9481..d82d02f9b103 100644 --- a/games-strategy/galaxyhack/galaxyhack-1.74-r1.ebuild +++ b/games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild @@ -1,29 +1,28 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 -inherit eutils flag-o-matic readme.gentoo-r1 +EAPI=7 + +inherit desktop edos2unix toolchain-funcs readme.gentoo-r1 DESCRIPTION="Multiplayer AI script based strategy game" HOMEPAGE="http://galaxyhack.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2 mirror://gentoo/${PN}.png" +S="${WORKDIR}/${PN}/src" LICENSE="GPL-2 galaxyhack" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" -RDEPEND=" +DEPEND=" + >=dev-libs/boost-1.34:= media-libs/libsdl[video] media-libs/sdl-image[png] media-libs/sdl-mixer[mod,vorbis] - >=dev-libs/boost-1.34 " RDEPEND="${DEPEND}" -S="${WORKDIR}/${PN}/src" - DISABLE_AUTOFORMATTING="yes" DOC_CONTENTS=" Settings will default to those found in @@ -35,30 +34,46 @@ Additional user submitted fleets can be downloaded from http://galaxyhack.sourceforge.net/viewfleets.php " +PATCHES=( + "${FILESDIR}"/${P}-destdirs.patch + "${FILESDIR}"/${P}-boost.patch + "${FILESDIR}"/${P}-gcc43.patch + "${FILESDIR}"/${P}-boost-1.50.patch + "${FILESDIR}"/${P}-format.patch + "${FILESDIR}"/${P}-gentoo.patch +) + src_prepare() { + edos2unix *.cpp Makefile + default - edos2unix Makefile - eapply \ - "${FILESDIR}"/${P}-destdirs.patch \ - "${FILESDIR}"/${P}-boost.patch \ - "${FILESDIR}"/${P}-gcc43.patch \ - "${FILESDIR}"/${P}-boost-1.50.patch \ - "${FILESDIR}"/${P}-format.patch \ - "${FILESDIR}"/${P}-gentoo.patch + sed -i "s:@GAMES_DATADIR@:/usr/share:" \ Main.cpp || die sed -i "/Base data path/s:pwd:/usr/share/${PN}:" \ ../settings.dat || die + + sed -i \ + -e 's:INSTALL_DIR="${GAMES_DATADIR}":INSTALL_DIR="/usr/share/":' \ + -e 's:INSTALL_BIN_DIR="${GAMES_BINDIR}":INSTALL_BIN_DIR="/usr/bin":' \ + Makefile || die +} + +src_configure() { + tc-export CXX } src_install() { - dobin "${PN}" - cd .. + dobin ${PN} + cd .. || die + insinto /usr/share/${PN} doins -r fleets gamedata graphics music standardpictures \ settings.dat + dodoc readme.txt readme.gentoo_create_doc + doicon "${DISTDIR}"/${PN}.png make_desktop_entry ${PN} GalaxyHack } |