summaryrefslogtreecommitdiff
path: root/games-strategy/galaxyhack
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:35:26 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:35:26 -0500
commitf716a9fe6455d39eef01e718aae68dae61c19704 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /games-strategy/galaxyhack
parent3f9cf298e89cd5037b982abba06091224ee76daf (diff)
downloadbaldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.gz
baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.tar.xz
baldeagleos-repo-f716a9fe6455d39eef01e718aae68dae61c19704.zip
Adding metadata
Diffstat (limited to 'games-strategy/galaxyhack')
-rw-r--r--games-strategy/galaxyhack/Manifest2
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch77
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch11
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch11
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch64
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch11
-rw-r--r--games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch28
-rw-r--r--games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild83
-rw-r--r--games-strategy/galaxyhack/metadata.xml29
9 files changed, 0 insertions, 316 deletions
diff --git a/games-strategy/galaxyhack/Manifest b/games-strategy/galaxyhack/Manifest
deleted file mode 100644
index 4b8e70e1a1fa..000000000000
--- a/games-strategy/galaxyhack/Manifest
+++ /dev/null
@@ -1,2 +0,0 @@
-DIST galaxyhack-1.74.tar.bz2 9948336 BLAKE2B 2029e4a27e2995ebd8bb4f7e9192fc353b22a0246e5bca5294a9a09ee936c0050682dcff52a233b87d659a6a4e98f56fcd4b563fb1159b52f6f596a5413a687b SHA512 d708494b1ad572c0243da9e7168b4707112ec3c99a09498b87f8e0cb2e4e5bc9df8dc4631e3fb4d3cd7517ec4b17e937798dec3fcf770de9d0fc1b5e29a0bd58
-DIST galaxyhack.png 819 BLAKE2B c19a6c05313eedfd118de0b02b688e98dc011a760da10c5edc6ee15eea3668e7dbf19fcbc7546807221b3b727056c5d5075c91cae699300c6d7b19c939b0f2b6 SHA512 b8ab4dd1c18c079ec3f60b3d04843fbb7a892feb8f872d498c20eb3142e7de26bff90c93b308656e1afe5ee77074fcb3f78542dfd175c27a9b865a512e0b0200
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
deleted file mode 100644
index f3468ecf4be8..000000000000
--- a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost-1.50.patch
+++ /dev/null
@@ -1,77 +0,0 @@
---- 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
-+++ 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
-+++ 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;
-@@ -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;
-@@ -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
-+++ 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);
- }
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch
deleted file mode 100644
index 0da874e8715e..000000000000
--- a/games-strategy/galaxyhack/files/galaxyhack-1.74-boost.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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;
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch
deleted file mode 100644
index 01283c5ab50f..000000000000
--- a/games-strategy/galaxyhack/files/galaxyhack-1.74-destdirs.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch
deleted file mode 100644
index f878fbd904a5..000000000000
--- a/games-strategy/galaxyhack/files/galaxyhack-1.74-format.patch
+++ /dev/null
@@ -1,64 +0,0 @@
---- 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);
-@@ -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);
- }
- }
-@@ -101,7 +101,7 @@
- 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);
- }
-
-@@ -308,7 +308,7 @@
-
- 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);
- }
- }
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch
deleted file mode 100644
index 817958b0403a..000000000000
--- a/games-strategy/galaxyhack/files/galaxyhack-1.74-gcc43.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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;
-
diff --git a/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch b/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch
deleted file mode 100644
index e9fb838826ec..000000000000
--- a/games-strategy/galaxyhack/files/galaxyhack-1.74-gentoo.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -6,12 +6,11 @@
- # James Gregory and Everton da Silva Marques <evertonsm@yahoo.com.br>
- #
-
--INSTALL_DIR=/usr/local/share
--INSTALL_BIN_DIR=/usr/local/bin
-+INSTALL_DIR="${GAMES_DATADIR}"
-+INSTALL_BIN_DIR="${GAMES_BINDIR}"
-
--CXX = g++
--CXXFLAGS = $(shell sdl-config --cflags) -O3
--LDFLAGS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem
-+CXXFLAGS += $(shell sdl-config --cflags)
-+LDLIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_mixer -lboost_filesystem -lboost_system -lm
-
- OBJS = AIInterpreter.o AutoFireUnit.o BCCompiler.o DerivedGroups.o DragWindow.o \
- ForceSelect.o ForceSelectWin.o GenWindow.o GenWindow_Base.o GFX.o Globals.o \
-@@ -40,7 +39,7 @@
- install $(TARGET) $(INSTALL_BIN_DIR)
-
- $(TARGET): $(OBJS)
-- $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^
-+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS)
-
- %.o: %.cpp
- $(CXX) $(CXXFLAGS) -c $< -o $@
diff --git a/games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild b/games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild
deleted file mode 100644
index 12ed25ca6e58..000000000000
--- a/games-strategy/galaxyhack/galaxyhack-1.74-r2.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit desktop edos2unix toolchain-funcs readme.gentoo-r1
-
-DESCRIPTION="Multiplayer AI script based strategy game"
-HOMEPAGE="https://galaxyhack.sourceforge.net/"
-SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.bz2
- mirror://gentoo/${PN}.png"
-S="${WORKDIR}/${PN}/src"
-
-LICENSE="GPL-2 galaxyhack"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-DEPEND="
- dev-libs/boost:=
- media-libs/libsdl[video]
- media-libs/sdl-image[png]
- media-libs/sdl-mixer[mod,vorbis]
-"
-RDEPEND="${DEPEND}"
-
-DISABLE_AUTOFORMATTING="yes"
-DOC_CONTENTS="
-Settings will default to those found in
-/usr/share/galaxyhack/settings.dat
-Per user settings can be specified by creating
-~/.galaxyhack/settings.dat
-
-Additional user submitted fleets can be downloaded from
-https://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
-
- 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 .. || 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
-}
-
-pkg_postinst() {
- readme.gentoo_print_elog
-}
diff --git a/games-strategy/galaxyhack/metadata.xml b/games-strategy/galaxyhack/metadata.xml
deleted file mode 100644
index 4e8913cca97c..000000000000
--- a/games-strategy/galaxyhack/metadata.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>games@gentoo.org</email>
- <name>Gentoo Games Project</name>
- </maintainer>
- <longdescription lang="en">
- GalaxyHack allows you to design a fleet of spaceships which can then be tested
- in AI script based battles against fleets designed by other players. Though
- battles take place in real time, the strategy comes before hand, both in
- writing short AI scripts in a simple scripting language, and also in the set up
- and selection of your fleet. You don't actually have any control over your
- units at all mid-battle, but rather use the time to see where the set up of
- your fleets is working, where your fleets' weaknesses lie and changes are
- needed, and perhaps also to learn from the strategy of your opponent.
-
- The game revolves around very large capital ships, from which smaller ships are
- launched, but which are not designed for attacking themselves, and which cannot
- be moved mid-battle. To win a battle you must destroy of all of your opponent's
- capital ships before they destroy yours.
-
- There can be hundreds of units in any one battle, but there is no harvesting,
- resource management or base building.
- </longdescription>
- <upstream>
- <remote-id type="sourceforge">galaxyhack</remote-id>
- </upstream>
-</pkgmetadata>