diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2007-09-27 23:21:03 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2007-09-27 23:21:03 +0000 |
commit | 85f3b7d6cf3da31b612f3722cca49acb40509077 (patch) | |
tree | cedb0e04de71b42d54854b65ab12781f5a6a039e /games-strategy/glest | |
parent | Added a patch to get rid of G*_DISABLE_DEPRECATED. Fixes bug 193467. (diff) | |
download | gentoo-2-85f3b7d6cf3da31b612f3722cca49acb40509077.tar.gz gentoo-2-85f3b7d6cf3da31b612f3722cca49acb40509077.tar.bz2 gentoo-2-85f3b7d6cf3da31b612f3722cca49acb40509077.zip |
old
(Portage version: 2.1.3.9)
Diffstat (limited to 'games-strategy/glest')
-rw-r--r-- | games-strategy/glest/files/digest-glest-2.0.0-r1 | 21 | ||||
-rw-r--r-- | games-strategy/glest/files/glest-2.0.0-gcc41.patch | 11 | ||||
-rw-r--r-- | games-strategy/glest/files/glest-2.0.0-home.patch | 86 | ||||
-rw-r--r-- | games-strategy/glest/glest-2.0.0-r1.ebuild | 106 |
4 files changed, 0 insertions, 224 deletions
diff --git a/games-strategy/glest/files/digest-glest-2.0.0-r1 b/games-strategy/glest/files/digest-glest-2.0.0-r1 deleted file mode 100644 index ee43a79e3625..000000000000 --- a/games-strategy/glest/files/digest-glest-2.0.0-r1 +++ /dev/null @@ -1,21 +0,0 @@ -MD5 266e6aabdaf704e7e409d771d3086eab deutsch_2.0.0.zip 1922 -RMD160 1dbf0dea9cd81cf888533e1b44333159b23dec2d deutsch_2.0.0.zip 1922 -SHA256 5e42bf61a12f4612f4c77e056ea0f6fbdd805343cccd1fa278617a4cb3c7644c deutsch_2.0.0.zip 1922 -MD5 0cc6e7c7029c79f1bf61d3a3bdb441d0 francais_2.0.0.zip 1829 -RMD160 cadacef9e21c8d01435f1d8f28a36e819aaedcc4 francais_2.0.0.zip 1829 -SHA256 812f80b0c322a5387a607d5e73a6cf6942d2918a6308a8900496835d6bb7ec9e francais_2.0.0.zip 1829 -MD5 8b6902e82874011e768c64e20fbeead5 glest_data_2.0.0.zip 64826894 -RMD160 071f0e263b461f342c404acb3ec2548b97277d9c glest_data_2.0.0.zip 64826894 -SHA256 ed0ca1f9e6cbe05b87dee9257e2afbc2401e195a0618f025682dae116c1f59aa glest_data_2.0.0.zip 64826894 -MD5 f7716da7a044dbe108c619b0f52621bb glest_source_2.0.0.zip 503892 -RMD160 face82a3e35c788eb11629f4dcc9556836992b65 glest_source_2.0.0.zip 503892 -SHA256 4dea296c6b3ee0757551eb1a71f00674f5cf2df6095dec6922afb39b42df30d8 glest_source_2.0.0.zip 503892 -MD5 9869a946227b31141b4166c1ca627c9a italiano_2.0.0.zip 1802 -RMD160 5f5ed7b2ff0c7636e9f902fdd815c1457b118941 italiano_2.0.0.zip 1802 -SHA256 6ee6aef72013879248d9b4c2fd028ae95b71a7c65b745de6b1fcbabb704ea322 italiano_2.0.0.zip 1802 -MD5 f133c241ac021ad30d54d0ef48b0f64f portugues_2.0.0.zip 1863 -RMD160 b1886ecad5e2330d3d1a0deabb8e734d573f9951 portugues_2.0.0.zip 1863 -SHA256 0ee3fedcef6ce0725825a7fa6674ad1bde55276d1f3e704a7d74fb1950e3d8cf portugues_2.0.0.zip 1863 -MD5 a31d07ed2c24da87628590e43f6c131f slovak_2.0.0.zip 1721 -RMD160 7b6c23e2c10ccfaa84a457b65f4a3cb0d87a8103 slovak_2.0.0.zip 1721 -SHA256 34a7e7f456d3daed3788bbd2df96389c51cf4cd4dda8348f350d451cdcd0b016 slovak_2.0.0.zip 1721 diff --git a/games-strategy/glest/files/glest-2.0.0-gcc41.patch b/games-strategy/glest/files/glest-2.0.0-gcc41.patch deleted file mode 100644 index 57d4f789c5e0..000000000000 --- a/games-strategy/glest/files/glest-2.0.0-gcc41.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- glest_source_2.0.0/source/shared_lib/include/graphics/particle.h.old 2006-04-14 23:10:39.000000000 +0200 -+++ glest_source_2.0.0/source/shared_lib/include/graphics/particle.h 2006-04-14 23:10:51.000000000 +0200 -@@ -310,7 +310,7 @@ - void setTrajectoryFrequency(float trajectoryFrequency) {this->trajectoryFrequency= trajectoryFrequency;} - void setPath(Vec3f startPos, Vec3f endPos); - -- static Trajectory ProjectileParticleSystem::strToTrajectory(const string &str); -+ static Trajectory strToTrajectory(const string &str); - }; - - // ===================================================== diff --git a/games-strategy/glest/files/glest-2.0.0-home.patch b/games-strategy/glest/files/glest-2.0.0-home.patch deleted file mode 100644 index 8690e47576e4..000000000000 --- a/games-strategy/glest/files/glest-2.0.0-home.patch +++ /dev/null @@ -1,86 +0,0 @@ ---- source/glest_game/main/main.cpp -+++ source/glest_game/main/main.cpp -@@ -13,6 +13,7 @@ - - #include <string> - #include <cstdlib> -+#include <sys/stat.h> - - #include "game.h" - #include "main_menu.h" -@@ -129,6 +130,17 @@ - ExceptionHandler exceptionHandler; - exceptionHandler.install(); - -+ if (!getenv("HOME")) -+ throw runtime_error("HOME not set!"); -+ -+ char str[PATH_MAX]; -+ snprintf(str, PATH_MAX, "%s/.glest", getenv("HOME")); -+ mkdir(str, 0750); -+ chdir(str); -+ mkdir("screens", 0750); -+ -+ chdir("GENTOO_DATADIR"); -+ - try{ - Config &config = Config::getInstance(); - ---- source/glest_game/main/program.cpp -+++ source/glest_game/main/program.cpp -@@ -65,8 +65,11 @@ - updateCameraTimer.init(config.getInt("CameraFps"), maxTimes); - - //log start -+ char str[PATH_MAX]; -+ snprintf(str, PATH_MAX, "%s/.glest/glest.log", getenv("HOME")); -+ - Logger &logger= Logger::getInstance(); -- logger.setFile("glest.log"); -+ logger.setFile(str); - logger.clear(); - - srand(time(NULL)); -@@ -134,9 +137,10 @@ - //save screen - if(key=='T'){ - for(int i=0; i<100; ++i){ -- string path= "screens/screen" + intToStr(i) + ".tga"; -+ char path[PATH_MAX]; -+ snprintf(path, PATH_MAX, "%s/.glest/screens/screen%d.tga", getenv("HOME"), i); - -- FILE *f= fopen(path.c_str(), "rb"); -+ FILE *f= fopen(path, "rb"); - if(f==NULL){ - Renderer::getInstance().saveScreen(path); - break; - ---- source/shared_lib/sources/util/properties.cpp -+++ source/shared_lib/sources/util/properties.cpp -@@ -33,9 +33,13 @@ - - this->path= path; - -- fileStream.open(path.c_str(), ios_base::in); -+ char str[PATH_MAX]; -+ snprintf(str, PATH_MAX, "%s/.glest/%s", getenv("HOME"), path.c_str()); -+ fileStream.open(str, ios_base::in); - if(fileStream.fail()){ -- throw runtime_error("Can't open properties file: " + path); -+ fileStream.open(path.c_str(), ios_base::in); // use defaults -+ if(fileStream.fail()) -+ throw runtime_error("Can't open properties file: " + path); - } - - properties.clear(); -@@ -70,7 +74,9 @@ - void Properties::save(const string &path){ - ofstream fileStream; - -- fileStream.open(path.c_str(), ios_base::out | ios_base::trunc); -+ char str[PATH_MAX]; -+ snprintf(str, PATH_MAX, "%s/.glest/%s", getenv("HOME"), path.c_str()); -+ fileStream.open(str, ios_base::out | ios_base::trunc); - - fileStream << "; === Properties File === \n"; - fileStream << '\n'; diff --git a/games-strategy/glest/glest-2.0.0-r1.ebuild b/games-strategy/glest/glest-2.0.0-r1.ebuild deleted file mode 100644 index ba57a73795e8..000000000000 --- a/games-strategy/glest/glest-2.0.0-r1.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/glest/glest-2.0.0-r1.ebuild,v 1.6 2007/06/27 18:04:35 nyhm Exp $ - -inherit autotools eutils games - -L_URI="http://www.glest.org/files/contrib/translations" -DESCRIPTION="Cross-platform 3D realtime strategy game" -HOMEPAGE="http://www.glest.org/" -SRC_URI="mirror://sourceforge/${PN}/${PN}_source_${PV}.zip - mirror://sourceforge/${PN}/${PN}_data_${PV}.zip - linguas_de? ( ${L_URI}/deutsch_${PV}.zip ) - linguas_fr? ( ${L_URI}/francais_${PV}.zip ) - linguas_it? ( ${L_URI}/italiano_${PV}.zip ) - linguas_pt_BR? ( ${L_URI}/portugues_${PV}.zip ) - linguas_sk? ( ${L_URI}/slovak_${PV}.zip )" - -LICENSE="GPL-2 glest-data" -SLOT="0" -KEYWORDS="~amd64 -ppc ~x86" # ppc: bug #145478 -IUSE="linguas_de linguas_fr linguas_it linguas_pt_BR linguas_sk" - -RDEPEND="media-libs/libsdl - media-libs/libogg - media-libs/libvorbis - media-libs/openal - dev-libs/xerces-c - virtual/opengl - virtual/glu - x11-libs/libX11 - x11-libs/libXt - media-fonts/font-adobe-utopia-75dpi" -DEPEND="${RDEPEND} - app-arch/unzip - dev-util/jam" - -S=${WORKDIR}/${PN}_source_${PV}/mk/linux - -GAMES_USE_SDL="nojoystick" - -src_unpack() { - unpack ${A} - cd ${PN}_source_${PV} - - local file - for file in $(find . -type f) ; do - edos2unix "${file}" - done - - epatch \ - "${FILESDIR}"/${P}-gcc41.patch \ - "${FILESDIR}"/${P}-home.patch - - sed -i \ - -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \ - source/glest_game/main/main.cpp \ - || die "sed main.cpp failed" - - cd "${S}" - # sometimes they package configure, sometimes they don't - if [[ ! -f configure ]] ; then - chmod a+x autogen.sh - ./autogen.sh || die "autogen failed" # FIXME: use autotools.eclass - fi - - sed -i 's:-O3 -g3::' Jamrules || die "sed Jamrules failed" -} - -src_compile() { - # Fails with wx enabled, bug #130011 - egamesconf \ - --with-vorbis=/usr \ - --with-ogg=/usr \ - --with-wx-config=disabled_wx \ - || die - jam -q || die "jam failed" -} - -src_install() { - dogamesbin glest || die "dogamesbin failed" - - insinto "${GAMES_DATADIR}"/${PN} - doins glest.ini || die "doins glest.ini failed" - dodoc ../../docs/README.linux - - cd "${WORKDIR}"/glest_game - doins -r data maps techs tilesets || die "doins data failed" - dodoc docs/readme.txt - - make_desktop_entry glest Glest /usr/share/pixmaps/${PN}.bmp - newicon techs/magitech/factions/magic/units/archmage/images/archmage.bmp \ - ${PN}.bmp - - dolang() { - insinto "${GAMES_DATADIR}"/${PN}/data/lang - doins "${WORKDIR}"/${1} || die "doins ${1} failed" - } - - use linguas_de && dolang deutsch_2.0.0.lng - use linguas_fr && dolang francais.lng - use linguas_it && dolang italiano2_0_0.lng - use linguas_pt_BR && dolang tradu_pt-br.lng - use linguas_sk && dolang slovak.lng - - prepgamesdirs -} |