diff options
-rw-r--r-- | games-strategy/widelands/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/widelands/Manifest | 28 | ||||
-rw-r--r-- | games-strategy/widelands/files/digest-widelands-0.0.11 | 3 | ||||
-rw-r--r-- | games-strategy/widelands/files/widelands-0.0.11-build.patch | 60 | ||||
-rw-r--r-- | games-strategy/widelands/widelands-0.0.11.ebuild | 73 |
5 files changed, 163 insertions, 9 deletions
diff --git a/games-strategy/widelands/ChangeLog b/games-strategy/widelands/ChangeLog index 30e4b9f36823..3ad0a094eab4 100644 --- a/games-strategy/widelands/ChangeLog +++ b/games-strategy/widelands/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-strategy/widelands # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.11 2007/03/21 20:56:02 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.12 2007/09/14 14:20:29 nyhm Exp $ + +*widelands-0.0.11 (14 Sep 2007) + + 14 Sep 2007; Tristan Heaven <nyhm@gentoo.org> + +files/widelands-0.0.11-build.patch, +widelands-0.0.11.ebuild: + Version bump by Juan Aguado, bug #192244 *widelands-0.0.10 (21 Mar 2007) diff --git a/games-strategy/widelands/Manifest b/games-strategy/widelands/Manifest index 8f8b8a7d9091..d37d94159f94 100644 --- a/games-strategy/widelands/Manifest +++ b/games-strategy/widelands/Manifest @@ -5,6 +5,10 @@ AUX widelands-0.0.10-build.patch 1717 RMD160 201795c2d318dd248d5c0c20bdf495c96da MD5 f24263b7613d77c1fcc65c93c337dfbd files/widelands-0.0.10-build.patch 1717 RMD160 201795c2d318dd248d5c0c20bdf495c96daa2c41 files/widelands-0.0.10-build.patch 1717 SHA256 c8f0f9a112ab18c88e5d9b02a35c4395a5cafb9340c1d5bb30c9e42f244e62b1 files/widelands-0.0.10-build.patch 1717 +AUX widelands-0.0.11-build.patch 1873 RMD160 fe038d69b72813fe779cab3579ca857842a35042 SHA1 2658e12493f26c27bcb50a4f0cde23b9ae0e58c1 SHA256 7acee54e4d3b9eb69e55868e85357f760c7e7da3b03770e5d710ff8a871c7b69 +MD5 195cdfd5696021428135dc2ee32da87e files/widelands-0.0.11-build.patch 1873 +RMD160 fe038d69b72813fe779cab3579ca857842a35042 files/widelands-0.0.11-build.patch 1873 +SHA256 7acee54e4d3b9eb69e55868e85357f760c7e7da3b03770e5d710ff8a871c7b69 files/widelands-0.0.11-build.patch 1873 AUX widelands-0.0.9-amd64.patch 425 RMD160 02a4dcb0c0bb5d962df8347ee4cb6804ac08b3bd SHA1 358de9b0558b5e4643588f33a7a2a1f5d493467f SHA256 878939c6809b5de1e530d4770a9efd8ca309cd45d985e261b566ff159922d3b3 MD5 839d74b86a5e329cbfb77e61c65d6921 files/widelands-0.0.9-amd64.patch 425 RMD160 02a4dcb0c0bb5d962df8347ee4cb6804ac08b3bd files/widelands-0.0.9-amd64.patch 425 @@ -18,19 +22,24 @@ MD5 45ff0d915b222f2ba2a3915c5c01aa1f files/widelands-makefile.patch 1334 RMD160 a9f809392532b757a8b5a30a1ca16b7a5cd29245 files/widelands-makefile.patch 1334 SHA256 3141758eb4fe913fe49c1332e576c68f2cc2a85e2d30d9b8ee9209fd7547038b files/widelands-makefile.patch 1334 DIST widelands-b9half-source.tar.bz2 10989969 RMD160 b9382690dfec3f789c0db7f0163f7392d889cfb0 SHA1 5aea1a225760265cd2b2d34a2fb35a7b875488c5 SHA256 a883b410fbe3089233926f3b2314fb3ccc9262b00a1aadbda9f7d73ea572ea9b +DIST widelands-build-11-source.tar.bz2 35011678 RMD160 0aa009e91ee661b7e7bf04f82c4a136bb1e651e0 SHA1 bb6c730fc956c6451f52577649379fea45ef39f5 SHA256 102a305703070eb20af23f3015c8e1dfc9f87d7f719d71e07fcdbf84e85de0d3 DIST widelands-build10-source.tar.bz2 28526726 RMD160 65f85d7b7ab756560bd0bc1a470ac2b8775caadc SHA1 8d3d12d7d45e44b9fb4be5696ccc8f76c0ed667b SHA256 f67508066db1739839945f8c814a71a0e4a43904ff4a7f4e7cd3c269bcda18af EBUILD widelands-0.0.10.ebuild 1702 RMD160 d6c1e6513abe578c98f91564363fe1235e1e071a SHA1 985429797daf9c1d80b7d307edfb2927a551effe SHA256 141936ab163a238e39cf68b9ec8a1037b0440d6fba8c1fa463decd0d570f8646 MD5 37537d4f1679c8dd2d71d8680f7e8278 widelands-0.0.10.ebuild 1702 RMD160 d6c1e6513abe578c98f91564363fe1235e1e071a widelands-0.0.10.ebuild 1702 SHA256 141936ab163a238e39cf68b9ec8a1037b0440d6fba8c1fa463decd0d570f8646 widelands-0.0.10.ebuild 1702 +EBUILD widelands-0.0.11.ebuild 1829 RMD160 6e9f4124cb374a1aa4fb8d7833a19c7536478f03 SHA1 5fa9308ee4567f32d4141e6ad7fca098ba92ae65 SHA256 92ae0c901658ac0699ffa090dc1e567bf5fa546e29253df08afcc7b20580f322 +MD5 791c1dce0e2faea2d97bf8f243bc4c3b widelands-0.0.11.ebuild 1829 +RMD160 6e9f4124cb374a1aa4fb8d7833a19c7536478f03 widelands-0.0.11.ebuild 1829 +SHA256 92ae0c901658ac0699ffa090dc1e567bf5fa546e29253df08afcc7b20580f322 widelands-0.0.11.ebuild 1829 EBUILD widelands-0.0.9.5-r1.ebuild 1710 RMD160 280302530b869e9e270236be6cdd347501b5b949 SHA1 3d58300a838351a410677cea6d277fd33cd6cd72 SHA256 494a7a8df2947c982747a1f838274c0c449a43f34999c57f52d7f4f842d686e4 MD5 143648ef0b197860c9a93621f80df3e6 widelands-0.0.9.5-r1.ebuild 1710 RMD160 280302530b869e9e270236be6cdd347501b5b949 widelands-0.0.9.5-r1.ebuild 1710 SHA256 494a7a8df2947c982747a1f838274c0c449a43f34999c57f52d7f4f842d686e4 widelands-0.0.9.5-r1.ebuild 1710 -MISC ChangeLog 2311 RMD160 34456cceea11f01421757a232d312ebd6f85c2e5 SHA1 c6ca9247f5dd6f4a350602e2ba80d073685473ef SHA256 57c5b46994134dacfeb1ab24f1aace25d01430a5ad685ea64a1ab2a0e1979d49 -MD5 d4c85c30db8f58c77ff443d6ba0ef862 ChangeLog 2311 -RMD160 34456cceea11f01421757a232d312ebd6f85c2e5 ChangeLog 2311 -SHA256 57c5b46994134dacfeb1ab24f1aace25d01430a5ad685ea64a1ab2a0e1979d49 ChangeLog 2311 +MISC ChangeLog 2501 RMD160 495f49e5a9d44ccb5b9f7c1df2b6ab940687a5d5 SHA1 6f6f117f5de3383c4bce9c33dba07cd618dfe42d SHA256 a767ebe0df4a529702c31418a8f357bd0e12ad547e16fd277231bd05718b876d +MD5 cc71336100c3a8164c498bcadcbf5845 ChangeLog 2501 +RMD160 495f49e5a9d44ccb5b9f7c1df2b6ab940687a5d5 ChangeLog 2501 +SHA256 a767ebe0df4a529702c31418a8f357bd0e12ad547e16fd277231bd05718b876d ChangeLog 2501 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 @@ -38,13 +47,16 @@ SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata MD5 4389515945a809d447098460bf963563 files/digest-widelands-0.0.10 283 RMD160 13dd3c54eda4674fda3d8b1492b20d3ee702e075 files/digest-widelands-0.0.10 283 SHA256 b05d2231539bc02bca620853817058465a3591de3a3daf1d26291c7b338252aa files/digest-widelands-0.0.10 283 +MD5 fa9e05be042973aacdeffdc7ef1f8a61 files/digest-widelands-0.0.11 286 +RMD160 b78e6ee2e778386200aa853b56bd45b0d0e5bb7b files/digest-widelands-0.0.11 286 +SHA256 326dc6cafd914eb4e11b81bdef917a13c04df7b447c89904876a454ffef3daaa files/digest-widelands-0.0.11 286 MD5 e10d5f329e0eb06f44b8569526772ee8 files/digest-widelands-0.0.9.5-r1 280 RMD160 c9e6d18caecb85ff113b76c18da754e0da8c0af8 files/digest-widelands-0.0.9.5-r1 280 SHA256 65b319119c6b4b8653cadf0d12609cfdbb02d3126444a6a2621b99b569ad784a files/digest-widelands-0.0.9.5-r1 280 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.3 (GNU/Linux) +Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFGAZvrdz7hIScOURERAj5vAJ9yWVvaIejKQ1IC8eYR4pnPOaLAJQCg0Z/H -1NrnSp+Sh4UJL0TG/6es6nI= -=3hFQ +iD8DBQFG6pi1dz7hIScOURERApLaAKDgfNUAL1ckk0I8RMIWkDhpRrUr3wCgqP48 +eUFs54nGh196mW2MkdiOUIE= +=PPtX -----END PGP SIGNATURE----- diff --git a/games-strategy/widelands/files/digest-widelands-0.0.11 b/games-strategy/widelands/files/digest-widelands-0.0.11 new file mode 100644 index 000000000000..5c82adf4588c --- /dev/null +++ b/games-strategy/widelands/files/digest-widelands-0.0.11 @@ -0,0 +1,3 @@ +MD5 ad41d917f7895b6212009ac584178b55 widelands-build-11-source.tar.bz2 35011678 +RMD160 0aa009e91ee661b7e7bf04f82c4a136bb1e651e0 widelands-build-11-source.tar.bz2 35011678 +SHA256 102a305703070eb20af23f3015c8e1dfc9f87d7f719d71e07fcdbf84e85de0d3 widelands-build-11-source.tar.bz2 35011678 diff --git a/games-strategy/widelands/files/widelands-0.0.11-build.patch b/games-strategy/widelands/files/widelands-0.0.11-build.patch new file mode 100644 index 000000000000..64f4691b2bc7 --- /dev/null +++ b/games-strategy/widelands/files/widelands-0.0.11-build.patch @@ -0,0 +1,60 @@ +--- Makefile ++++ Makefile +@@ -26,7 +26,7 @@ + + #most current glibc systems implicitly contain libintl.so + ifndef IMPLICIT_LIBINTL +-IMPLICIT_LIBINTL:=NO ++IMPLICIT_LIBINTL:=YES + endif + + # Is this a cross compile? +@@ -64,7 +64,7 @@ + # profile optimized, debugging symbols, profiling + # + ifndef BUILD +-BUILD:=debug ++BUILD:=release + endif + + endif +@@ -108,11 +108,9 @@ + BUILD:=$(strip $(BUILD)) + + ifeq ($(BUILD),release) +-OPTIMIZE:=yes + # heavy optimization + #ADD_CFLAGS:=$(ADD_CFLAGS) -fomit-frame-pointer -finline-functions -ffast-math -funroll-loops -funroll-all-loops -fexpensive-optimizations + # !!!! -fomit-frame-pointer breaks execeptions !!!! +-ADD_CFLAGS:=$(ADD_CFLAGS) -finline-functions -ffast-math -funroll-loops -funroll-all-loops -fexpensive-optimizations + else + ifeq ($(BUILD),profile) + OPTIMIZE:=yes +@@ -151,9 +149,8 @@ + # Object files and directories, final compilation flags + + OBJECT_DIR:=src/$(TARGET)-$(BUILD) +-CFLAGS:=-Wall $(shell $(SDL_CONFIG) --cflags) $(ADD_CFLAGS) +-CXXFLAGS:=$(CFLAGS) +-LDFLAGS:=$(shell $(SDL_CONFIG) --libs) $(ADD_LDFLAGS) -lz -lpng -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_net -lSDL_gfx ++CXXFLAGS+=-Wall $(shell $(SDL_CONFIG) --cflags) $(ADD_CFLAGS) ++LDFLAGS+=$(shell $(SDL_CONFIG) --libs) $(ADD_LDFLAGS) -lz -lpng -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_net -lSDL_gfx + + ############################################################################## + # Building +@@ -208,13 +205,13 @@ + + $(OBJECT_DIR)/widelands: $(OBJ) + @echo "===> LD $@" +- $(Q)$(CXX) $(OBJ) -o $@ $(LDFLAGS) $(CFLAGS) ++ $(CXX) $(OBJ) -o $@ $(LDFLAGS) $(CXXFLAGS) + + -include $(DEP) + + $(OBJECT_DIR)/%.o: src/%.cc src/build_id.h src/config.h + @echo "===> CXX $<" +- $(Q)$(CXX) -pipe $(CXXFLAGS) -MMD -MP -MF $@.d -c -o $@ $< ++ $(CXX) $(CXXFLAGS) -MMD -MP -MF $@.d -c -o $@ $< + $(Q)sed -e 's@^\(.*\)\.o:@\1.d \1.o:@' $@.d > $(OBJECT_DIR)/$*.d + $(Q)rm $@.d + diff --git a/games-strategy/widelands/widelands-0.0.11.ebuild b/games-strategy/widelands/widelands-0.0.11.ebuild new file mode 100644 index 000000000000..128ae683973b --- /dev/null +++ b/games-strategy/widelands/widelands-0.0.11.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.11.ebuild,v 1.1 2007/09/14 14:20:29 nyhm Exp $ + +inherit eutils flag-o-matic toolchain-funcs versionator games + +MY_PV=$(get_version_component_range 3) +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://www.widelands.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-build-${MY_PV}-source.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="nls" + +RDEPEND="media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + media-libs/sdl-gfx + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + rm -f $(find -name SConscript) + + epatch "${FILESDIR}"/${P}-build.patch + + sed -i 's:__ppc__:__PPC__:' src/s2map.cc \ + || die "sed s2map.cc failed" + sed -i "s:/usr/share/games:${GAMES_DATADIR}:" src/wlapplication.cc \ + || die "sed wlapplication.cc failed" + sed -i "s:/l/WiLa/Setup:${GAMES_DATADIR}/${PN}:" src/config.h.default \ + || die "sed config.h.default failed" +} + +src_compile() { + filter-flags -fomit-frame-pointer + emake CXX=$(tc-getCXX) || die "emake failed" + + if use nls ; then + utils/buildlocale.py || die "buildlocale.py failed" + fi +} + +src_install() { + dogamesbin ${PN} || die "dogamesbin failed" + + insinto "${GAMES_DATADIR}"/${PN} + doins -r campaigns fonts maps music pics sound tribes txts worlds \ + || die "doins failed" + + insinto "${GAMES_DATADIR}"/${PN}/locale + local d + for d in locale/* ; do + if [[ -d ${d} ]] ; then + doins -r ${d} || die "doins ${d} failed" + fi + done + + newicon pics/wl-ico-48.png ${PN}.png + make_desktop_entry ${PN} Widelands + + dodoc ChangeLog CREDITS + prepgamesdirs +} |