diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2006-08-28 19:59:17 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2006-08-28 19:59:17 +0000 |
commit | 1df6db716bd56fd6a9ccf27b7da83054f4ddaaaa (patch) | |
tree | 192e048efdfbfbbc64e6867fe0b64939215812c2 /games-strategy/glest | |
parent | Stable on ppc64; bug #145371 (diff) | |
download | historical-1df6db716bd56fd6a9ccf27b7da83054f4ddaaaa.tar.gz historical-1df6db716bd56fd6a9ccf27b7da83054f4ddaaaa.tar.bz2 historical-1df6db716bd56fd6a9ccf27b7da83054f4ddaaaa.zip |
rev bump from Tristan Heaven to fix bug #118911, bug #130011 and bug #144406
Package-Manager: portage-2.1.1_rc1-r1
Diffstat (limited to 'games-strategy/glest')
-rw-r--r-- | games-strategy/glest/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/glest/Manifest | 24 | ||||
-rw-r--r-- | games-strategy/glest/files/digest-glest-2.0.0-r1 | 18 | ||||
-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 | 110 |
5 files changed, 241 insertions, 5 deletions
diff --git a/games-strategy/glest/ChangeLog b/games-strategy/glest/ChangeLog index 3e5e49c4b10f..1b7f8232a79f 100644 --- a/games-strategy/glest/ChangeLog +++ b/games-strategy/glest/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-strategy/glest # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/glest/ChangeLog,v 1.11 2006/06/29 13:29:42 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/glest/ChangeLog,v 1.12 2006/08/28 19:59:17 mr_bones_ Exp $ + +*glest-2.0.0-r1 (28 Aug 2006) + + 28 Aug 2006; Michael Sterrett <mr_bones_@gentoo.org> + +files/glest-2.0.0-home.patch, +glest-2.0.0-r1.ebuild: + rev bump from Tristan Heaven to fix bug #118911, bug #130011 and bug #144406 29 Jun 2006; Chris Gianelloni <wolf31o2@gentoo.org> glest-2.0.0.ebuild: Remove version information from openal dependency for bug #138392. diff --git a/games-strategy/glest/Manifest b/games-strategy/glest/Manifest index 6540400e621d..3ec5ecdd9ef2 100644 --- a/games-strategy/glest/Manifest +++ b/games-strategy/glest/Manifest @@ -6,19 +6,32 @@ AUX glest-2.0.0-gcc41.patch 591 RMD160 b79a8de4a2c909395e1ace156b15decea0472153 MD5 84a7b015e8a18d56af3369e52c8df732 files/glest-2.0.0-gcc41.patch 591 RMD160 b79a8de4a2c909395e1ace156b15decea0472153 files/glest-2.0.0-gcc41.patch 591 SHA256 c4965a02865b3b1a3ced82620a7c311e45157bd620cbf4f96b0a0f17e95e3240 files/glest-2.0.0-gcc41.patch 591 +AUX glest-2.0.0-home.patch 2359 RMD160 d118b45bd421cf98657a0991385e9e4c443016ed SHA1 5cfdd84d8053e46ce1925e3bbe6dc386254ef266 SHA256 870057d3fe3e12341192d792d893f487b743522673ffc85bd68e6fe8587b7b04 +MD5 af8199679f65deed6387ba66301de507 files/glest-2.0.0-home.patch 2359 +RMD160 d118b45bd421cf98657a0991385e9e4c443016ed files/glest-2.0.0-home.patch 2359 +SHA256 870057d3fe3e12341192d792d893f487b743522673ffc85bd68e6fe8587b7b04 files/glest-2.0.0-home.patch 2359 DIST cesky_1.2.1.zip 1843 RMD160 845fb0feee86330aaa4db7025936d3b4c158ccec SHA256 ca95140d89b613111628d1b1ff435b0baae5d2a22f0187c601f093fb98a1acdc +DIST francais_2.0.0.zip 1829 RMD160 cadacef9e21c8d01435f1d8f28a36e819aaedcc4 SHA1 ab5ebef1da42dd80131c690184d7e7630a50995e SHA256 812f80b0c322a5387a607d5e73a6cf6942d2918a6308a8900496835d6bb7ec9e +DIST glest_data_2.0.0.zip 64826894 RMD160 071f0e263b461f342c404acb3ec2548b97277d9c SHA1 92cea5cc0e70bcd58ac4afd8a164bde1a9925bba SHA256 ed0ca1f9e6cbe05b87dee9257e2afbc2401e195a0618f025682dae116c1f59aa DIST glest_data_2.0rc5.zip 64693060 RMD160 e00e11f9635ea6418f349307685f42d2fd8b4f0c SHA1 fb8ab3ec36945b050c9c327617fc063691872488 SHA256 3c667ea28c640ad770d45d212d68a03c7b18412fe1d81d4da9bc2cfdfe0a9e3f DIST glest_source_2.0.0.zip 503892 RMD160 face82a3e35c788eb11629f4dcc9556836992b65 SHA1 a9f05c243eca20e23a8c5324a06cb7323c7b98a7 SHA256 4dea296c6b3ee0757551eb1a71f00674f5cf2df6095dec6922afb39b42df30d8 DIST hebrew_1.2.1.zip 1742 RMD160 cd11f5ec27d35ccbf212bc4cd04d69f933bbcacf SHA256 1f8a9dfb52d2c36b2b7c02387e0f4e8945f2f9677211c278daf600b6c48bdd95 +DIST italiano_2.0.0.zip 1802 RMD160 5f5ed7b2ff0c7636e9f902fdd815c1457b118941 SHA1 2bf832ba931a27d15bf54f7e0a2a4a5a7608995c SHA256 6ee6aef72013879248d9b4c2fd028ae95b71a7c65b745de6b1fcbabb704ea322 +DIST portugues_2.0.0.zip 1863 RMD160 b1886ecad5e2330d3d1a0deabb8e734d573f9951 SHA1 f16ee03ceacbf5873a07001e7f7953bf1aa78694 SHA256 0ee3fedcef6ce0725825a7fa6674ad1bde55276d1f3e704a7d74fb1950e3d8cf DIST slovak_1.2.1.zip 1688 RMD160 be75f0bcd7931a93d17aa066442b5d7b33083467 SHA256 eac9d779340cc0ac9b483c124fa00f4c8862fe2c48bf556f53db7f4eb607f401 +DIST slovak_2.0.0.zip 1721 RMD160 7b6c23e2c10ccfaa84a457b65f4a3cb0d87a8103 SHA1 91b0f3c3fb43d5ee43c155f88ecf1e36d1da237a SHA256 34a7e7f456d3daed3788bbd2df96389c51cf4cd4dda8348f350d451cdcd0b016 +EBUILD glest-2.0.0-r1.ebuild 2679 RMD160 d2fc6bc44a8ac98277e22b9f5ae4cea3291ff931 SHA1 6c36e27392efddd0df872167781efd1ca01fe0c9 SHA256 ca6777c23d1068461484f4e672a380e46e2f3a899ce3512a12a4e7e29c496a7f +MD5 be3c7e3c9a60ea3ae18fded3edf546f6 glest-2.0.0-r1.ebuild 2679 +RMD160 d2fc6bc44a8ac98277e22b9f5ae4cea3291ff931 glest-2.0.0-r1.ebuild 2679 +SHA256 ca6777c23d1068461484f4e672a380e46e2f3a899ce3512a12a4e7e29c496a7f glest-2.0.0-r1.ebuild 2679 EBUILD glest-2.0.0.ebuild 2568 RMD160 f3fca0001b27768e796a99e1812f3f3f90650796 SHA1 d0ba51cd2ea17a2627fd8a465e9f778799cbaf89 SHA256 b98cc377b179732e2eaa7f3ccf8e3020c3d5062ddfbae4c781eec2aeac100f43 MD5 fdc4c06f659cbafcee6f707978f707be glest-2.0.0.ebuild 2568 RMD160 f3fca0001b27768e796a99e1812f3f3f90650796 glest-2.0.0.ebuild 2568 SHA256 b98cc377b179732e2eaa7f3ccf8e3020c3d5062ddfbae4c781eec2aeac100f43 glest-2.0.0.ebuild 2568 -MISC ChangeLog 1930 RMD160 1d9b10cab4f2f23f1187304fcb3bf0a03bcbd359 SHA1 e63906edc081eb8c2bf15d6b305f961326ae45a0 SHA256 bed2c5e6b3db50c4fdf1aad44f2a17d42d703963a52ca06dcd87dec6939e71da -MD5 e9ee049918df9928aebdac390eb28824 ChangeLog 1930 -RMD160 1d9b10cab4f2f23f1187304fcb3bf0a03bcbd359 ChangeLog 1930 -SHA256 bed2c5e6b3db50c4fdf1aad44f2a17d42d703963a52ca06dcd87dec6939e71da ChangeLog 1930 +MISC ChangeLog 2154 RMD160 07bd02572a8da640c67fd7d8d785edd2b7e3176f SHA1 55293f14409960de5a28bcd96c31f3aefe987e69 SHA256 4881b7a16c149ce428d89636b5fb32b5387bd071997508f07fa4bdb59382dca8 +MD5 7c361038f3b4561c9e880760472dfa35 ChangeLog 2154 +RMD160 07bd02572a8da640c67fd7d8d785edd2b7e3176f ChangeLog 2154 +SHA256 4881b7a16c149ce428d89636b5fb32b5387bd071997508f07fa4bdb59382dca8 ChangeLog 2154 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 @@ -26,3 +39,6 @@ SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata MD5 82ff505c3ef8a1ceec2137a388181282 files/digest-glest-2.0.0 1163 RMD160 979fb3901c974e28b00f6071db90008aebafe39a files/digest-glest-2.0.0 1163 SHA256 94fe04a07ee172d447cfd6cbe8d06138cc320407690600130f96c5e7d26e1989 files/digest-glest-2.0.0 1163 +MD5 c607a8dc4b5a651eea6796ffa9c76dd2 files/digest-glest-2.0.0-r1 1407 +RMD160 9a2dd2d301ebfe8d17fe0041658d9b61c4992aad files/digest-glest-2.0.0-r1 1407 +SHA256 cf509d108cea78effee7cdb846b86572a2dc2cd116477d17c70d99abccdf71d5 files/digest-glest-2.0.0-r1 1407 diff --git a/games-strategy/glest/files/digest-glest-2.0.0-r1 b/games-strategy/glest/files/digest-glest-2.0.0-r1 new file mode 100644 index 000000000000..52eb4eeaeb7f --- /dev/null +++ b/games-strategy/glest/files/digest-glest-2.0.0-r1 @@ -0,0 +1,18 @@ +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-home.patch b/games-strategy/glest/files/glest-2.0.0-home.patch new file mode 100644 index 000000000000..8690e47576e4 --- /dev/null +++ b/games-strategy/glest/files/glest-2.0.0-home.patch @@ -0,0 +1,86 @@ +--- 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 new file mode 100644 index 000000000000..9804a2ebf8b2 --- /dev/null +++ b/games-strategy/glest/glest-2.0.0-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2006 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.1 2006/08/28 19:59:17 mr_bones_ Exp $ + +inherit eutils games + +DV="${PV}" +LV="${PV}" +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_${DV}.zip + linguas_fr? ( ${L_URI}/francais_${LV}.zip ) + linguas_it? ( ${L_URI}/italiano_${LV}.zip ) + linguas_pt_BR? ( ${L_URI}/portugues_${LV}.zip ) + linguas_sk? ( ${L_URI}/slovak_${LV}.zip )" + +LICENSE="GPL-2 glest-data" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="linguas_fr linguas_it linguas_pt_BR linguas_sk" + +RDEPEND=">=media-libs/libsdl-1.2.5 + media-libs/libogg + media-libs/libvorbis + media-libs/openal + dev-libs/xerces-c + virtual/opengl + virtual/glu + || ( x11-libs/libX11 virtual/x11 )" +DEPEND="${RDEPEND} + app-arch/unzip + || ( x11-libs/libXt virtual/x11 ) + >=dev-util/jam-2.5" + +S=${WORKDIR}/${PN}_source_${PV}/mk/linux + +src_unpack() { + unpack ${A} + + local file + for file in $(find ${PN}_source_${PV} -type f); do + edos2unix "${file}" + done + + epatch "${FILESDIR}/${P}"-gcc41.patch + + cd ${PN}_source_${PV} + epatch "${FILESDIR}/${P}"-home.patch + + sed -i \ + -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \ + source/glest_game/main/main.cpp \ + || die "sed failed" + + cd "${S}" + chmod a+x *.sh + # sometimes they package configure, sometimes they dont + if [[ ! -e configure ]] ; then + ./autogen.sh || die "autogen failed" + fi + + sed -i \ + -e "/COMPILER_CFLAGS_optimize/s:-O3 -g3::" \ + -e "/COMPILER_C++FLAGS_optimize/s:-O3 -g3::" \ + Jamrules || die "sed flags failed" +} + +src_compile() { + # Fails with wx enabled, bug #130011 + egamesconf \ + --with-vorbis=/usr \ + --with-ogg=/usr \ + --with-wx-config=disabled_wx \ + || die + jam -q ${MAKEOPTS} || die "jam failed" +} + +src_install() { + dogamesbin glest || die "dogamesbin failed" + + insinto "${GAMES_DATADIR}"/${PN} + doins glest.ini || die "config copy failed" + + cd "${WORKDIR}"/glest_game + insinto "${GAMES_DATADIR}"/${PN} + doins -r data maps techs tilesets || die "data copy failed" + dodoc docs/readme.txt + + cd .. + insinto "${GAMES_DATADIR}"/${PN}/data/lang + if use linguas_fr ; then + doins francais.lng || die "doins failed" + fi + if use linguas_it ; then + doins italiano2_0_0.lng || die "doins failed" + fi + if use linguas_pt_BR ; then + doins tradu_pt-br.lng || die "doins failed" + fi + if use linguas_sk ; then + doins slovak.lng || die "doins failed" + fi + + make_desktop_entry glest Glest + + prepgamesdirs +} |