diff options
author | 2006-12-08 00:21:35 +0000 | |
---|---|---|
committer | 2006-12-08 00:21:35 +0000 | |
commit | b9e2cbf68c030b17c6576f5a662fffd929032976 (patch) | |
tree | f3ab3c9b0b48275c22e36bf8521cc1df49e2f132 | |
parent | fix manifests thanks to bekks (diff) | |
download | genstef-b9e2cbf68c030b17c6576f5a662fffd929032976.tar.gz genstef-b9e2cbf68c030b17c6576f5a662fffd929032976.tar.bz2 genstef-b9e2cbf68c030b17c6576f5a662fffd929032976.zip |
some games live ebuilds/updates
svn path=/; revision=79
68 files changed, 4088 insertions, 0 deletions
diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest new file mode 100644 index 0000000..221b4b6 --- /dev/null +++ b/games-action/armagetronad/Manifest @@ -0,0 +1,43 @@ +AUX 0280_fix-sysinstall.patch 2072 RMD160 d3e67fcd3a88a1fa16f1e27e23cf239edde2a84a SHA1 e8c9483b6f93bd1bfba124ced9853a47b263015c SHA256 077ef38aca1f74c1c84bde11654180673a2596ffd2d15d939e8ad1dd0f08d8ba +MD5 8e0ee678028d0d9ef52677d738c76856 files/0280_fix-sysinstall.patch 2072 +RMD160 d3e67fcd3a88a1fa16f1e27e23cf239edde2a84a files/0280_fix-sysinstall.patch 2072 +SHA256 077ef38aca1f74c1c84bde11654180673a2596ffd2d15d939e8ad1dd0f08d8ba files/0280_fix-sysinstall.patch 2072 +AUX armagetronad 1102 RMD160 e9a7852c6b03010e03d93f1c849e4c582338745b SHA1 bd4feaba945fe12dc47bfae4e8fe18992e4546cd SHA256 b267de50ee8b41028b2fe3e441dd4049d3fd689cb3fa7788427ade03e7851579 +MD5 617e831d7f4c02cd72d67800bcf0144f files/armagetronad 1102 +RMD160 e9a7852c6b03010e03d93f1c849e4c582338745b files/armagetronad 1102 +SHA256 b267de50ee8b41028b2fe3e441dd4049d3fd689cb3fa7788427ade03e7851579 files/armagetronad 1102 +AUX armagetronad-ded 1340 RMD160 508417bcacbf0583513c5407517e79bd15ce06af SHA1 254cb6460fb43a35f8cc8ccf8e6bc51d7312f350 SHA256 24935ddbb1e82b5a0695e03bd5e7f23f3ecae503b61459c6168cb7ae0d62080a +MD5 37312a765833708af1d1712bc4fad0ac files/armagetronad-ded 1340 +RMD160 508417bcacbf0583513c5407517e79bd15ce06af files/armagetronad-ded 1340 +SHA256 24935ddbb1e82b5a0695e03bd5e7f23f3ecae503b61459c6168cb7ae0d62080a files/armagetronad-ded 1340 +DIST armagetronad-0.2.8.1.src.tar.bz2 1441730 RMD160 151681f84cd4694dc79c1653bc6960eef8f63d37 SHA1 452170617eacff82a23e5326677792fbc79b3573 SHA256 f887e00342dc17ee6f85a5b534a7ddb5fc95dc7028c6fab92bde647918ce2a04 +DIST armagetronad-0.2.8.2.1.src.tar.bz2 1623441 RMD160 b09448954dde1005ff0063f7f7a5a4de48aa49c9 SHA1 5df5f1b767ee8dcb0f50ce8459a9acfcdb073a66 SHA256 5ccb12cd07118bb210c8256edf2e33a34dc0e9880c3f1c926a9fe4db87f15940 +DIST moviepack.zip 352253 RMD160 07c8b2aa48ad84092869c90e32d32a96d367afd5 SHA1 2dfe328f325add441a74c79685806d16fddce2c6 SHA256 3de835e1e8af71f1dcbf5ac8405dfa87973eac50d206c12338278fc601cf9d78 +DIST moviesounds_fq.zip 2182021 RMD160 9fe95f3cc31bfdf9149bf850d5ae46ca5253a09a SHA1 357d87ef40e25bec19fdc8a3aac70db53d3820ec SHA256 9f8061eb0fef416885424bdba9f899fc5b4d9a021f46eef4eb821a7f1e08c1ba +DIST spanishvoices.zip 349593 RMD160 13a7b307e1da341fe37e164e36db7778960edaee SHA1 c3a21209dd0bddcc1e50515169ce64504aa485a9 SHA256 fff02f9f002927929dc7ed102d4b01875c20a6e42188fe0a3b2d8b9cfdbad1a4 +EBUILD armagetronad-0.2.8.1.ebuild 5073 RMD160 6e42bf06cb05e46633785f79275db82dc7411b18 SHA1 6690ce71546146c2c272217664b05a5d8ccda212 SHA256 6247b400665aaca7f128de95973cd2f5ed43c25e58a80c9b982d2efe5ce0820a +MD5 3a190ef1ca2c339994bfd3e5b60d178d armagetronad-0.2.8.1.ebuild 5073 +RMD160 6e42bf06cb05e46633785f79275db82dc7411b18 armagetronad-0.2.8.1.ebuild 5073 +SHA256 6247b400665aaca7f128de95973cd2f5ed43c25e58a80c9b982d2efe5ce0820a armagetronad-0.2.8.1.ebuild 5073 +EBUILD armagetronad-0.2.8.2.1.ebuild 3183 RMD160 d90c59eb9c12572d6b0ee1107bf792c8ec37e1b6 SHA1 ee4296e7e4a009fc25db702f405174b4bb8476b2 SHA256 45700de00fae08612ecffa51d1af49e0654508a4536b972f5af443426afae3e3 +MD5 dd36d1f64769f8a7d8337bb106235bd4 armagetronad-0.2.8.2.1.ebuild 3183 +RMD160 d90c59eb9c12572d6b0ee1107bf792c8ec37e1b6 armagetronad-0.2.8.2.1.ebuild 3183 +SHA256 45700de00fae08612ecffa51d1af49e0654508a4536b972f5af443426afae3e3 armagetronad-0.2.8.2.1.ebuild 3183 +MISC armagetronad-0.2.8.2.ebuild.orig 4417 RMD160 cc5d987c3b9c071f3e2d30731fde7461059104ac SHA1 5b2bbe089c37e2f783c69082dff0103b51b84941 SHA256 2f3954d2db8a4a2dc494556e01ccf0fda3b4e55e38f2bf83aff650b41c590f19 +MD5 12e17e89bd2de0c6216bd097836617be armagetronad-0.2.8.2.ebuild.orig 4417 +RMD160 cc5d987c3b9c071f3e2d30731fde7461059104ac armagetronad-0.2.8.2.ebuild.orig 4417 +SHA256 2f3954d2db8a4a2dc494556e01ccf0fda3b4e55e38f2bf83aff650b41c590f19 armagetronad-0.2.8.2.ebuild.orig 4417 +MISC diff 1314 RMD160 3fcbd0f9c537f6af4178a2cdb27be4ff68a123d9 SHA1 9c8a3c6bd01802da4ca40f339b39b61d39ef958c SHA256 119ea736f22cfa1f5db417a41d2a38268dece227070c0c2cba2d7caba659e1b8 +MD5 253f48d59c2060c0063ebc16c63b5f65 diff 1314 +RMD160 3fcbd0f9c537f6af4178a2cdb27be4ff68a123d9 diff 1314 +SHA256 119ea736f22cfa1f5db417a41d2a38268dece227070c0c2cba2d7caba659e1b8 diff 1314 +MISC patch 4926 RMD160 0f9e28d3786f894dd520beaacc06c1f7a0a303ff SHA1 ed04e3d7612c48c0fca9a1f1395ef334649c620f SHA256 a6990f5b357f4ac53508f08b2d3deeb02dfcbff7c609338f20f6a2e3c5268359 +MD5 2f4f5febcda53138eaf3048fe2510095 patch 4926 +RMD160 0f9e28d3786f894dd520beaacc06c1f7a0a303ff patch 4926 +SHA256 a6990f5b357f4ac53508f08b2d3deeb02dfcbff7c609338f20f6a2e3c5268359 patch 4926 +MD5 1e686e85a3e63934852cd363f5d50c19 files/digest-armagetronad-0.2.8.1 970 +RMD160 0c0a5dd7a428b62a1191f61fe29a0d50362987d7 files/digest-armagetronad-0.2.8.1 970 +SHA256 63a49ee8a039c79bcb61f2d3303bd49418052849ccdcd48de386e3df341140f2 files/digest-armagetronad-0.2.8.1 970 +MD5 20dca9e686b13db49f6a27495c013bae files/digest-armagetronad-0.2.8.2.1 976 +RMD160 19ad25ea8d595b87818f77ff13b3c48cdc4f3a69 files/digest-armagetronad-0.2.8.2.1 976 +SHA256 35ed4ceec09d574f4c3cfb702301ceae6dbd3c364ad3864a8a4a272a9a72d3c1 files/digest-armagetronad-0.2.8.2.1 976 diff --git a/games-action/armagetronad/armagetronad-0.2.8.1.ebuild b/games-action/armagetronad/armagetronad-0.2.8.1.ebuild new file mode 100644 index 0000000..8d2cd7a --- /dev/null +++ b/games-action/armagetronad/armagetronad-0.2.8.1.ebuild @@ -0,0 +1,145 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/Attic/armagetronad-0.2.8.1.ebuild,v 1.3 2006/05/01 02:51:37 mr_bones_ Exp $ + +inherit flag-o-matic eutils games + +DESCRIPTION="\"A Tron clone in 3D\"" +HOMEPAGE="http://armagetronad.net/" +SRC_URI="mirror://sourceforge/armagetronad/${P}.src.tar.bz2 + moviesounds? ( + http://beta.armagetronad.net/fetch.php/PreResource/moviesounds_fq.zip + linguas_es? ( !linguas_en? ( + http://beta.armagetronad.net/fetch.php/PreResource/spanishvoices.zip + ) ) + ) + moviepack? ( + http://beta.armagetronad.net/fetch.php/PreResource/moviepack.zip + ) +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug dedicated krawall opengl moviepack moviesounds" + +GLDEPS="|| ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + media-libs/jpeg + media-libs/libpng" +RDEPEND=">=dev-libs/libxml2-2.6.12 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} )" +DEPEND="${RDEPEND} + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) + linguas_es? ( !linguas_en? ( app-arch/unzip ) )" + +src_unpack() { + unpack ${A} + cd "${S}/batch" + epatch "${FILESDIR}/0280_fix-sysinstall.patch" +} + +aabuild() { + MyBUILDDIR="${WORKDIR}/build-$1" + mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario + cd "${MyBUILDDIR}" + ln -s "${S}/configure" . + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + egamesconf ${myconf} \ + --srcdir="${S}" \ + --disable-binreloc \ + --disable-master \ + --enable-main \ + $(use_enable krawall) \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + "${@:2}" || die "egamesconf($1) failed" + [ "$1" == "server" ] && ded='-dedicated' || ded='' + cat >>"config.h" <<EOF +#define DATA_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}" +#define CONFIG_DIR "${GAMES_SYSCONFDIR}/${PN}${ded}${GameSLOT}" +#define RESOURCE_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}/resource" +#define USER_DATA_DIR "~/.${PN}" +#define AUTORESOURCE_DIR "~/.${PN}/resource/automatic" +#define INCLUDEDRESOURCE_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}/resource/included" +EOF + emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" +} + +src_compile() { + # Assume client if they don't want a server + use opengl || ! use dedicated && build_client=true || build_client=false + use dedicated && build_server=true || build_server=false + + [ "$SLOT" == "0" ] && GameSLOT="" || GameSLOT="-${SLOT}" + filter-flags -fno-exceptions + if ${build_client}; then + einfo "Building game client" + aabuild client --enable-glout --disable-initscripts --enable-desktop + fi + if ${build_server}; then + einfo "Building dedicated server" + aabuild server --disable-glout --enable-initscripts --disable-desktop + fi +} + +src_install() { + if ${build_client} && ${build_server}; then + # Setup symlink so both client and server share their common data + dodir "${GAMES_DATADIR}" + dosym "${PN}${GameSLOT}" "${GAMES_DATADIR}/${PN}-dedicated${GameSLOT}" + dodir "${GAMES_SYSCONFDIR}" + dosym "${PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${PN}-dedicated${GameSLOT}" + fi + if ${build_client}; then + einfo "Installing game client" + cd "${WORKDIR}/build-client" + make DESTDIR="${D}" armabindir="${GAMES_BINDIR}" install || die "make(client) install failed" + # copy moviepacks/sounds + cd "${WORKDIR}" + insinto "${GAMES_DATADIR}/${PN}${GameSLOT}" + if use moviepack; then + einfo 'Installing moviepack' + doins -r moviepack || die "copying moviepack" + fi + if use moviesounds; then + einfo 'Installing moviesounds' + doins -r moviesounds || die "copying moviesounds" + if use linguas_es && ! use linguas_en; then + einfo 'Installing Spanish moviesounds' + doins -r ArmageTRON/moviesounds || die "copying spanish moviesounds" + fi + fi + fi + if ${build_server}; then + einfo "Installing dedicated server" + cd "${WORKDIR}/build-server" + make DESTDIR="${D}" armabindir="${GAMES_BINDIR}" install || die "make(server) install failed" + einfo 'Adjusting dedicated server configuration' + dosed "s,^\(user=\).*$,\1${GAMES_USER_DED},; s,^#\(VARDIR=/.*\)$,\\1," "${GAMES_SYSCONFDIR}/${PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + DedHOME="$(eval echo ~${GAMES_USER_DED})" + dodir "${DedHOME}" + dosym "${GAMES_STATEDIR}/${PN}-dedicated${GameSLOT}" "${DedHOME}/.${PN}" + fi + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc/${PN}${ded}${GameSLOT}/html/"* + dodoc "${D}${GAMES_PREFIX}/share/doc/${PN}${ded}${GameSLOT}/html/"*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error + prepgamesdirs +} diff --git a/games-action/armagetronad/armagetronad-0.2.8.2.1.ebuild b/games-action/armagetronad/armagetronad-0.2.8.2.1.ebuild new file mode 100644 index 0000000..5fb3e42 --- /dev/null +++ b/games-action/armagetronad/armagetronad-0.2.8.2.1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/Attic/armagetronad-0.2.8.1.ebuild,v 1.3 2006/05/01 02:51:37 mr_bones_ Exp $ + +inherit flag-o-matic games + +DESCRIPTION="A Tron clone in 3D" +HOMEPAGE="http://armagetronad.net/" + +GLSRC="http://beta.armagetronad.net/fetch.php/PreResource/moviesounds_fq.zip + linguas_es? ( http://beta.armagetronad.net/fetch.php/PreResource/spanishvoices.zip ) + http://beta.armagetronad.net/fetch.php/PreResource/moviepack.zip" +SRC_URI="mirror://sourceforge/armagetronad/${P}.src.tar.bz2 + videos? ( opengl? ( ${GLSRC} ) !dedicated? ( ${GLSRC} ) )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug dedicated krawall opengl linguas_es videos" + +GLDEPS="|| ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + videos? ( app-arch/unzip ) + media-libs/libsdl + media-libs/sdl-image + media-libs/jpeg + media-libs/libpng" +RDEPEND=">=dev-libs/libxml2-2.6.12 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} )" +DEPEND="${RDEPEND}" + +aabuild() { + mkdir "${S}/$1" + cd "${S}/$1" + + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + + ECONF_SOURCE="${S}" egamesconf \ + --srcdir="${S}" \ + --docdir="/usr/share/doc" \ + --disable-binreloc \ + $(use_enable krawall) \ + --disable-useradd \ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + "${@:2}" || die "egamesconf $1 failed" + + emake || die "emake $1 failed" +} + +src_compile() { + if use opengl || ! use dedicated ; then + aabuild client --enable-glout --disable-initscripts --enable-desktop + fi + if use dedicated ; then + aabuild server --disable-glout --enable-initscripts --disable-desktop + fi +} + +src_install() { + if [ -d "${S}/server" ]; then + cd "${S}/server" + + emake DESTDIR="${D}" install || die "emake server install failed" + + # have var data in /var/games instead of /usr/games/.$PN + DedHOME="$(eval echo ~${GAMES_USER_DED})" + dodir "${DedHOME}" + dosym "${GAMES_STATEDIR}/${PN}-dedicated" "${DedHOME}/.${PN}" + + for dir in ${GAMES_DATADIR} ${GAMES_SYSCONFDIR}; do + mv ${D}/${dir}/${PN}-dedicated ${D}/${dir}/${PN} + dosym ${dir}/${PN} ${dir}/${PN}-dedicated + done + fi + + if [ -d "${S}/client" ]; then + cd "${S}/client" + + emake DESTDIR="${D}" install || die "emake client install failed" + + if use videos ; then + cd "${WORKDIR}" + insinto ${GAMES_DATADIR}/${PN} + doins -r moviepack moviesounds || die "copying files failed" + if use linguas_es ; then + doins -r ArmageTRON/moviesounds || die "copying spanish moviesounds failed" + fi + fi + fi + + mv "${D}"/usr/share/doc/{${PN},${PF}} + rm -fr "${D}"/etc/init.d "${D}"/usr/share/doc/${PN}-dedicated + dodir /usr/sbin + dosym ${GAMES_DATADIR}/${PN}/scripts/rcd_server \ + ${GAMES_BINDIR}/${PN}-dedicated-init + + einfo "Adjusting dedicated server configuration" + sed -i -e "s,^\(user=\).*$,\1${GAMES_USER_DED},; s,^#\(VARDIR=/.*\)$,\\1," \ + ${D}/${GAMES_SYSCONFDIR}/${PN}/rc.config \ + || ewarn "adjustments for rc.config FAILED; the defaults may not be suited for your system!" + + prepgamesdirs +} diff --git a/games-action/armagetronad/armagetronad-0.2.8.2.ebuild.orig b/games-action/armagetronad/armagetronad-0.2.8.2.ebuild.orig new file mode 100644 index 0000000..8db54d5 --- /dev/null +++ b/games-action/armagetronad/armagetronad-0.2.8.2.ebuild.orig @@ -0,0 +1,141 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/Attic/armagetronad-0.2.8.1.ebuild,v 1.3 2006/05/01 02:51:37 mr_bones_ Exp $ + +inherit flag-o-matic eutils games + +DESCRIPTION="\"A Tron clone in 3D\"" +HOMEPAGE="http://armagetronad.net/" +SRC_URI="mirror://sourceforge/armagetronad/${P}.src.tar.bz2 + moviesounds? ( + http://beta.armagetronad.net/fetch.php/PreResource/moviesounds_fq.zip + linguas_es? ( !linguas_en? ( + http://beta.armagetronad.net/fetch.php/PreResource/spanishvoices.zip + ) ) + ) + moviepack? ( + http://beta.armagetronad.net/fetch.php/PreResource/moviepack.zip + ) +" + +LICENSE="GPL-2" +SLOT="0" +GameSLOT="" #GameSLOT="-${SLOT}" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug dedicated krawall opengl moviepack moviesounds" + +GLDEPS="|| ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + media-libs/jpeg + media-libs/libpng" +RDEPEND=">=dev-libs/libxml2-2.6.12 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} )" +DEPEND="${RDEPEND} + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) + linguas_es? ( !linguas_en? ( app-arch/unzip ) )" + +aabuild() { + mkdir "${S}/$1" + cd "${S}/$1" + + ln -s "${S}/configure" . + + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + + egamesconf ${myconf} \ + --srcdir="${S}" \ + --disable-binreloc \ + --disable-master \ + --enable-main \ + $(use_enable krawall) \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + "${@:2}" || die "egamesconf $1 failed" + + [ "$1" == "server" ] && ded='-dedicated' || ded='' + cat >>"config.h" <<EOF +#define DATA_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}" +#define CONFIG_DIR "${GAMES_SYSCONFDIR}/${PN}${ded}${GameSLOT}" +#define RESOURCE_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}/resource" +#define USER_DATA_DIR "~/.${PN}" +#define AUTORESOURCE_DIR "~/.${PN}/resource/automatic" +#define INCLUDEDRESOURCE_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}/resource/included" +EOF + + emake armabindir="${GAMES_BINDIR}" || die "emake $1 failed" +} + +src_compile() { + filter-flags -fno-exceptions + + # Assume client if they don't want a server + if use opengl || ! use dedicated; then + aabuild client --enable-glout --disable-initscripts --enable-desktop + fi + if use dedicated; then + aabuild server --disable-glout --enable-initscripts --disable-desktop + fi +} + +src_install() { + if [ -d "${S}/client" ] && [ -d "${S}/server" ]; then + # Setup symlink so both client and server share their common data + for i in ${GAMES_DATADIR} ${GAMES_SYSCONFDIR}; do + dodir ${i} + dosym ${PN}${GameSLOT} ${i}/${PN}-dedicated${GameSLOT} + done + fi + if [ -d "${S}/client" ]; then + cd "${S}/client" + + emake DESTDIR="${D}" armabindir=${GAMES_BINDIR} install || die "emake client install failed" + + # copy moviepacks/sounds + cd "${WORKDIR}" + insinto ${GAMES_DATADIR}/${PN}${GameSLOT} + if use moviepack; then + einfo 'Installing moviepack' + doins -r moviepack || die "copying moviepack" + fi + if use moviesounds; then + einfo 'Installing moviesounds' + doins -r moviesounds || die "copying moviesounds" + if use linguas_es && ! use linguas_en; then + einfo 'Installing Spanish moviesounds' + doins -r ArmageTRON/moviesounds || die "copying spanish moviesounds" + fi + fi + fi + if [ -d "${S}/server" ]; then + cd "${S}/server" + + emake DESTDIR="${D}" armabindir=${GAMES_BINDIR} install || die "emake server install failed" + + einfo 'Adjusting dedicated server configuration' + dosed "s,^\(user=\).*$,\1${GAMES_USER_DED},; s,^#\(VARDIR=/.*\)$,\\1," "${GAMES_SYSCONFDIR}/${PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + DedHOME="$(eval echo ~${GAMES_USER_DED})" + dodir "${DedHOME}" + dosym "${GAMES_STATEDIR}/${PN}-dedicated${GameSLOT}" "${DedHOME}/.${PN}" + fi + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc"/*/html/* + dodoc "${D}${GAMES_PREFIX}/share/doc"/*/html/*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" + prepgamesdirs +} diff --git a/games-action/armagetronad/diff b/games-action/armagetronad/diff new file mode 100644 index 0000000..6137ca0 --- /dev/null +++ b/games-action/armagetronad/diff @@ -0,0 +1,48 @@ +--- client.ebuild 2006-05-01 13:09:11.000000000 +0200 ++++ armagetronad-0.2.8.1.ebuild 2006-05-01 13:19:04.000000000 +0200 +@@ -1,6 +1,6 @@ + # Copyright 1999-2006 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 +-# $Header: /cvsroot/armagetronad/armagetronad_build/gentoo/client.ebuild,v 1.18 2006/05/01 08:59:46 luke-jr Exp $ ++# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/Attic/armagetronad-0.2.8.1.ebuild,v 1.3 2006/05/01 02:51:37 mr_bones_ Exp $ + + inherit flag-o-matic eutils games + +@@ -20,11 +20,10 @@ + + LICENSE="GPL-2" + SLOT="0" +-KEYWORDS="amd64 ppc x86" ++KEYWORDS="~amd64 ~ppc ~x86" + IUSE="debug dedicated krawall opengl moviepack moviesounds" + +-GLDEPS=" +- || ( ++GLDEPS="|| ( + x11-libs/libX11 + virtual/x11 + ) +@@ -33,19 +32,15 @@ + media-libs/libsdl + media-libs/sdl-image + media-libs/jpeg +- media-libs/libpng +- " +-RDEPEND=" +- >=dev-libs/libxml2-2.6.12 ++ media-libs/libpng" ++RDEPEND=">=dev-libs/libxml2-2.6.12 + sys-libs/zlib + opengl? ( ${GLDEPS} ) +- !dedicated? ( ${GLDEPS} ) +- " ++ !dedicated? ( ${GLDEPS} )" + DEPEND="${RDEPEND} + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) +- linguas_es? ( !linguas_en? ( app-arch/unzip ) ) +- " ++ linguas_es? ( !linguas_en? ( app-arch/unzip ) )" + + src_unpack() { + unpack ${A} diff --git a/games-action/armagetronad/files/0280_fix-sysinstall.patch b/games-action/armagetronad/files/0280_fix-sysinstall.patch new file mode 100644 index 0000000..abc58d5 --- /dev/null +++ b/games-action/armagetronad/files/0280_fix-sysinstall.patch @@ -0,0 +1,47 @@ +--- sysinstall.in 2006-03-16 07:35:26.000000000 +0000 ++++ sysinstall.in.fixed 2006-03-18 02:31:02.000000000 +0000 +@@ -103,26 +103,26 @@ + DESTDIR=`echo $SOURCE | sed -e "s,${prefix},,"` + BINDIR=${SOURCE}/bin + else +- SCRIPTDIR=${DESTDIR}`echo @armascriptdir@ | sed -e "s,@prefix@,${PREFIX},"` ++ SCRIPTDIR=`echo @armascriptdir@ | sed -e "s,@prefix@,${PREFIX},"` + #@datasuffix@@scriptsuffix@ +- BINDIR=${DESTDIR}`echo @bindir@ | sed -e "s,@prefix@,${PREFIX},"` ++ BINDIR=`echo @bindir@ | sed -e "s,@prefix@,${PREFIX},"` + fi + + # determine data locations +-EXECUTABLE=${BINDIR}/@progname@@executable_suffix@ +-CONFIGDIR=${SOURCE}`echo @configdir@ | sed -e "s,@prefix@,,"` +-VARDIR=${SOURCE}`echo @vardir@ | sed -e "s,@prefix@,,"` ++EXECUTABLE=${DESTDIR}${BINDIR}/@progname@@executable_suffix@ ++CONFIGDIR=`echo @configdir@ | sed -e "s,@prefix@,${PREFIX},"` ++VARDIR=`echo @vardir@ | sed -e "s,@prefix@,${PREFIX},"` + + # determine location of scripts + +-test -d $SCRIPTDIR || { echo "Script directory not found."; exit -1; } ++test -d $DESTDIR$SCRIPTDIR || { echo "Script directory not found."; exit -1; } + + # transscribe true location into scripts + if test $MODE = install; then + echo "Transscribing scripts..." +- for script in $SCRIPTDIR/*; do +- if test $script != $SCRIPTDIR/sysinstall; then +- sed -e "s,@configdir_reloc\@,$CONFIGDIR,g" -e "s,@prefix_reloc\@,$SOURCE,g" \ ++ for script in $DESTDIR$SCRIPTDIR/*; do ++ if test $script != $DESTDIR$SCRIPTDIR/sysinstall; then ++ sed -e "s,@configdir_reloc\@,$CONFIGDIR,g" -e "s,@prefix_reloc\@,$PREFIX,g" \ + -e "s,@scriptdir_reloc\@,$SCRIPTDIR,g" -e "s,@localstatedir_reloc\@,$VARDIR,g"\ + < $script > $script.trans || exit -1 + mv $script.trans $script +@@ -150,7 +150,7 @@ + fi + + # link executable files +-pushd ${BINDIR} > /dev/null || exit -1 ++pushd ${DESTDIR}${BINDIR} > /dev/null || exit -1 + install_link @progname@-@version@ @progname@ + install_link @prognamebase@-master-@version@ @prognamebase@-master + popd > /dev/null diff --git a/games-action/armagetronad/files/armagetronad b/games-action/armagetronad/files/armagetronad new file mode 100644 index 0000000..fe647e0 --- /dev/null +++ b/games-action/armagetronad/files/armagetronad @@ -0,0 +1,39 @@ +#!/bin/bash +# +# starts Armagetron Advanced from the installation directory + +GAMES_LIBDIR=/usr/games/lib/armagetronad +GAMES_DATADIR=/usr/share/games +GAMES_SYSCONFDIR=/etc/games +PN=armagetronad +if test ! -r $HOME/.armagetronad ; then + mkdir $HOME/.armagetronad + + if test -r $HOME/.ArmageTronrc ; then + #migrage very old configuration + echo "Porting very old configuration..." + mkdir $HOME/.armagetronad/var + mv $HOME/.ArmageTronrc $HOME/.armagetronad/var/user.cfg + fi +fi + +if test ! -r $HOME/.armagetronad/var ; then + #migrate old configuration + files=$( find $HOME/.armagetronad -type f -maxdepth 1 ) + + mkdir $HOME/.armagetronad/var + + test "$files" != "" && echo "Porting old configuration..." && mv $files $HOME/.armagetronad/var +fi + +if test "x$1" = "x-h" ; then + echo -e "\n\nTo uninstall Armagetron Advanced, type armagetronad --uninstall." +fi + +if test "x$1" = "x--uninstall" ; then + emerge unmerge armagetronad +else + $GAMES_LIBDIR/$PN --datadir $GAMES_DATADIR/$PN --configdir $GAMES_SYSCONFDIR/$PN \ + --userdatadir $HOME/.armagetronad $* +fi + diff --git a/games-action/armagetronad/files/armagetronad-ded b/games-action/armagetronad/files/armagetronad-ded new file mode 100644 index 0000000..2f3c447 --- /dev/null +++ b/games-action/armagetronad/files/armagetronad-ded @@ -0,0 +1,50 @@ +#!/bin/bash +# +# starts Armagetron Advanced Dedicated Server from the installation directory + + GAME_CONFDIR=/etc/games/armagetronad-ded + GAME_LIBDIR=/usr/games/lib/armagetronad-ded + GAME_DATADIR=/usr/share/games/armagetronad-ded + USER_DATADIR=/etc/games/armagetronad-ded + CONFIGDIR=/etc/games/armagetronad-ded + + NO=$'\x1b[0;0m' + RD=$'\x1b[31;01m' + GR=$'\x1b[32;01m' + YL=$'\x1b[33;01m' + + echo "${GR} *${NO} Checking Configuration." + if test ! -r $HOME/.armagetronad-ded ; then + mkdir $HOME/.armagetronad-ded + + if test -r $HOME/.ArmageTronrc ; then + echo "${YL} *${NO} Migrating very old configuration." + cp $HOME/.ArmageTronrc $HOME/.armagetronad-ded/user.cfg + fi +fi + if test ! -r $HOME/.armagetronad-ded/var ; then + files=$( ls $HOME/.armagetronad-ded ) + mkdir $HOME/.armagetronad-ded/var + echo "${GR} *${NO} Testing configuration." + test "$files" != "" && mv $files $HOME/.armagetronad-ded/var + fi + + echo "${GR} *${NO} Done." + + + if test "x$1" = "x-h" ; then + echo "${RD} *${NO} Please uninstall Armagetron Advanced via Portage." +fi + + if test "x$1" = "x--uninstall" ; then + echo "${RD} *${NO} Please uninstall Armagetron Advanced via Portage." + else + + while true; do + + $GAME_LIBDIR/armagetronad-dedicated \ + --datadir $GAME_DATADIR \ + --configdir $GAME_CONFDIR \ + --userdatadir $HOME/.armagetronad-ded +done +fi
\ No newline at end of file diff --git a/games-action/armagetronad/files/digest-armagetronad-0.2.8.1 b/games-action/armagetronad/files/digest-armagetronad-0.2.8.1 new file mode 100644 index 0000000..d02335a --- /dev/null +++ b/games-action/armagetronad/files/digest-armagetronad-0.2.8.1 @@ -0,0 +1,12 @@ +MD5 28fa1f66dd09cf96deeb0c78161b1b5c armagetronad-0.2.8.1.src.tar.bz2 1441730 +RMD160 151681f84cd4694dc79c1653bc6960eef8f63d37 armagetronad-0.2.8.1.src.tar.bz2 1441730 +SHA256 f887e00342dc17ee6f85a5b534a7ddb5fc95dc7028c6fab92bde647918ce2a04 armagetronad-0.2.8.1.src.tar.bz2 1441730 +MD5 e2d40309dde7e1339ca6aff7599cdfa3 moviepack.zip 352253 +RMD160 07c8b2aa48ad84092869c90e32d32a96d367afd5 moviepack.zip 352253 +SHA256 3de835e1e8af71f1dcbf5ac8405dfa87973eac50d206c12338278fc601cf9d78 moviepack.zip 352253 +MD5 3c5d04af52eb296cdeb2fba5ecbd8899 moviesounds_fq.zip 2182021 +RMD160 9fe95f3cc31bfdf9149bf850d5ae46ca5253a09a moviesounds_fq.zip 2182021 +SHA256 9f8061eb0fef416885424bdba9f899fc5b4d9a021f46eef4eb821a7f1e08c1ba moviesounds_fq.zip 2182021 +MD5 1ca4f4a4f11c728315250973b8d69ce6 spanishvoices.zip 349593 +RMD160 13a7b307e1da341fe37e164e36db7778960edaee spanishvoices.zip 349593 +SHA256 fff02f9f002927929dc7ed102d4b01875c20a6e42188fe0a3b2d8b9cfdbad1a4 spanishvoices.zip 349593 diff --git a/games-action/armagetronad/files/digest-armagetronad-0.2.8.2.1 b/games-action/armagetronad/files/digest-armagetronad-0.2.8.2.1 new file mode 100644 index 0000000..4fdffaa --- /dev/null +++ b/games-action/armagetronad/files/digest-armagetronad-0.2.8.2.1 @@ -0,0 +1,12 @@ +MD5 b09104b3af550fe590ff11bc1fd46e26 armagetronad-0.2.8.2.1.src.tar.bz2 1623441 +RMD160 b09448954dde1005ff0063f7f7a5a4de48aa49c9 armagetronad-0.2.8.2.1.src.tar.bz2 1623441 +SHA256 5ccb12cd07118bb210c8256edf2e33a34dc0e9880c3f1c926a9fe4db87f15940 armagetronad-0.2.8.2.1.src.tar.bz2 1623441 +MD5 e2d40309dde7e1339ca6aff7599cdfa3 moviepack.zip 352253 +RMD160 07c8b2aa48ad84092869c90e32d32a96d367afd5 moviepack.zip 352253 +SHA256 3de835e1e8af71f1dcbf5ac8405dfa87973eac50d206c12338278fc601cf9d78 moviepack.zip 352253 +MD5 3c5d04af52eb296cdeb2fba5ecbd8899 moviesounds_fq.zip 2182021 +RMD160 9fe95f3cc31bfdf9149bf850d5ae46ca5253a09a moviesounds_fq.zip 2182021 +SHA256 9f8061eb0fef416885424bdba9f899fc5b4d9a021f46eef4eb821a7f1e08c1ba moviesounds_fq.zip 2182021 +MD5 1ca4f4a4f11c728315250973b8d69ce6 spanishvoices.zip 349593 +RMD160 13a7b307e1da341fe37e164e36db7778960edaee spanishvoices.zip 349593 +SHA256 fff02f9f002927929dc7ed102d4b01875c20a6e42188fe0a3b2d8b9cfdbad1a4 spanishvoices.zip 349593 diff --git a/games-action/armagetronad/patch b/games-action/armagetronad/patch new file mode 100644 index 0000000..c3eaf0a --- /dev/null +++ b/games-action/armagetronad/patch @@ -0,0 +1,136 @@ +--- armagetronad-0.2.8.1.ebuild 2006-05-01 13:19:04.000000000 +0200 ++++ armagetronad-0.2.8.2.ebuild 2006-08-14 00:03:10.000000000 +0200 +@@ -20,6 +20,7 @@ + + LICENSE="GPL-2" + SLOT="0" ++GameSLOT="" #GameSLOT="-${SLOT}" + KEYWORDS="~amd64 ~ppc ~x86" + IUSE="debug dedicated krawall opengl moviepack moviesounds" + +@@ -42,20 +43,16 @@ + moviesounds? ( app-arch/unzip ) + linguas_es? ( !linguas_en? ( app-arch/unzip ) )" + +-src_unpack() { +- unpack ${A} +- cd "${S}/batch" +- epatch "${FILESDIR}/0280_fix-sysinstall.patch" +-} +- + aabuild() { +- MyBUILDDIR="${WORKDIR}/build-$1" +- mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario +- cd "${MyBUILDDIR}" ++ mkdir "${S}/$1" ++ cd "${S}/$1" ++ + ln -s "${S}/configure" . ++ + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" ++ + egamesconf ${myconf} \ + --srcdir="${S}" \ + --disable-binreloc \ +@@ -68,7 +65,8 @@ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ +- "${@:2}" || die "egamesconf($1) failed" ++ "${@:2}" || die "egamesconf $1 failed" ++ + [ "$1" == "server" ] && ded='-dedicated' || ded='' + cat >>"config.h" <<EOF + #define DATA_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}" +@@ -78,41 +76,38 @@ + #define AUTORESOURCE_DIR "~/.${PN}/resource/automatic" + #define INCLUDEDRESOURCE_DIR "${GAMES_DATADIR}/${PN}${ded}${GameSLOT}/resource/included" + EOF +- emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" ++ ++ emake armabindir="${GAMES_BINDIR}" || die "emake $1 failed" + } + + src_compile() { +- # Assume client if they don't want a server +- use opengl || ! use dedicated && build_client=true || build_client=false +- use dedicated && build_server=true || build_server=false +- +- [ "$SLOT" == "0" ] && GameSLOT="" || GameSLOT="-${SLOT}" + filter-flags -fno-exceptions +- if ${build_client}; then +- einfo "Building game client" +- aabuild client --enable-glout --disable-initscripts --enable-desktop ++ ++ # Assume client if they don't want a server ++ if use opengl || ! use dedicated; then ++ aabuild client --enable-glout --disable-initscripts --enable-desktop + fi +- if ${build_server}; then +- einfo "Building dedicated server" +- aabuild server --disable-glout --enable-initscripts --disable-desktop ++ if use dedicated; then ++ aabuild server --disable-glout --enable-initscripts --disable-desktop + fi + } + + src_install() { +- if ${build_client} && ${build_server}; then ++ if [ -d "${S}/client" ] && [ -d "${S}/server" ]; then + # Setup symlink so both client and server share their common data +- dodir "${GAMES_DATADIR}" +- dosym "${PN}${GameSLOT}" "${GAMES_DATADIR}/${PN}-dedicated${GameSLOT}" +- dodir "${GAMES_SYSCONFDIR}" +- dosym "${PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${PN}-dedicated${GameSLOT}" ++ for i in ${GAMES_DATADIR} ${GAMES_SYSCONFDIR}; do ++ dodir ${i} ++ dosym ${PN}${GameSLOT} ${i}/${PN}-dedicated${GameSLOT} ++ done + fi +- if ${build_client}; then +- einfo "Installing game client" +- cd "${WORKDIR}/build-client" +- make DESTDIR="${D}" armabindir="${GAMES_BINDIR}" install || die "make(client) install failed" ++ if [ -d "${S}/client" ]; then ++ cd "${S}/client" ++ ++ emake DESTDIR="${D}" armabindir=${GAMES_BINDIR} install || die "emake client install failed" ++ + # copy moviepacks/sounds + cd "${WORKDIR}" +- insinto "${GAMES_DATADIR}/${PN}${GameSLOT}" ++ insinto ${GAMES_DATADIR}/${PN}${GameSLOT} + if use moviepack; then + einfo 'Installing moviepack' + doins -r moviepack || die "copying moviepack" +@@ -126,10 +121,11 @@ + fi + fi + fi +- if ${build_server}; then +- einfo "Installing dedicated server" +- cd "${WORKDIR}/build-server" +- make DESTDIR="${D}" armabindir="${GAMES_BINDIR}" install || die "make(server) install failed" ++ if [ -d "${S}/server" ]; then ++ cd "${S}/server" ++ ++ emake DESTDIR="${D}" armabindir=${GAMES_BINDIR} install || die "emake server install failed" ++ + einfo 'Adjusting dedicated server configuration' + dosed "s,^\(user=\).*$,\1${GAMES_USER_DED},; s,^#\(VARDIR=/.*\)$,\\1," "${GAMES_SYSCONFDIR}/${PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + DedHOME="$(eval echo ~${GAMES_USER_DED})" +@@ -137,9 +133,9 @@ + dosym "${GAMES_STATEDIR}/${PN}-dedicated${GameSLOT}" "${DedHOME}/.${PN}" + fi + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually +- dohtml -r "${D}${GAMES_PREFIX}/share/doc/${PN}${ded}${GameSLOT}/html/"* +- dodoc "${D}${GAMES_PREFIX}/share/doc/${PN}${ded}${GameSLOT}/html/"*.txt ++ dohtml -r "${D}${GAMES_PREFIX}/share/doc"/*/html/* ++ dodoc "${D}${GAMES_PREFIX}/share/doc"/*/html/*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" +- rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error ++ rmdir "${D}${GAMES_PREFIX}/share" + prepgamesdirs + } diff --git a/games-sports/blobby2/Manifest b/games-sports/blobby2/Manifest new file mode 100644 index 0000000..d9d29a6 --- /dev/null +++ b/games-sports/blobby2/Manifest @@ -0,0 +1,8 @@ +DIST blobby2-linux-0.6a.tar.gz 2110392 RMD160 81347078fc040b3de236f8b8f2ed68f424e62124 SHA1 0cd6000e4e39878b4c8f4213ae8a9158d341aa3b SHA256 da070839fd2c99269fcb0d4dfc0de10bb9fab980ca28408d2a27490244bce526 +EBUILD blobby2-0.6a.ebuild 1469 RMD160 1f679bc9f0225f9b8c7be967390603ffca8e7c9b SHA1 26f37e24e46f3e337f41bcb9cb893c8bfaff4786 SHA256 9f0c34a8d28fe27815d4107a6e6dde2886c4ace84bcd3830e5c6de8bad8b0a00 +MD5 548398b60d5402754c0ba72d6d9917bd blobby2-0.6a.ebuild 1469 +RMD160 1f679bc9f0225f9b8c7be967390603ffca8e7c9b blobby2-0.6a.ebuild 1469 +SHA256 9f0c34a8d28fe27815d4107a6e6dde2886c4ace84bcd3830e5c6de8bad8b0a00 blobby2-0.6a.ebuild 1469 +MD5 b7a576290d2cf7dc1ba270f26839a09a files/digest-blobby2-0.6a 259 +RMD160 2e4d07b72f77aaa298bb380ca0d4f258278283da files/digest-blobby2-0.6a 259 +SHA256 64292e42551ea9864feebf6f2b62f7cdb539782c99c727ee0b011a18ae34c573 files/digest-blobby2-0.6a 259 diff --git a/games-sports/blobby2/blobby2-0.6a.ebuild b/games-sports/blobby2/blobby2-0.6a.ebuild new file mode 100644 index 0000000..4f37aac --- /dev/null +++ b/games-sports/blobby2/blobby2-0.6a.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit autotools eutils games + +DESCRIPTION="Blobby Volley 2 - 1-on-1 volleyball" +HOMEPAGE="http://blobby.redio.de" +SRC_URI="mirror://sourceforge/blobby/${PN}-linux-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-games/physfs + virtual/opengl + media-libs/libsdl" +DEPEND="${RDEPEND}" + +dir=${GAMES_DATADIR}/${PN} + +src_unpack() { + unpack ${A} + + # Standardize the directory name + mv blobby* ${P} || die + cd "${S}" + + # Look in shared directory for server.xml + sed -i \ + -e "s:PHYSFS_addToSearchPath(\"data\":PHYSFS_addToSearchPath(\"${dir}\":" \ + src/DedicatedServer.cpp || die "sed DedicatedServer.cpp failed" +} + +src_compile() { + eautoreconf || die + + # Fix broken opengl recognition. + # There's probably a better way of doing this. + sed -i \ + -e "s:HAVE_LIBGL = @HAVE_LIBGL@:HAVE_LIBGL = 1:" \ + Makefile.in || die "sed Makefile.in failed" + + sed -i \ + -e "s:-lSDL:-lSDL -lGL:" \ + configure || die "sed configure failed" + + egamesconf \ + HAVE_LIBGL=1 \ + || die "egamesconf failed" + + emake \ + GAMEDATADIR="${dir}" \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" \ + || die "emake failed" +} + +src_install() { + dogamesbin src/blobby{,-server} || die + make_desktop_entry blobby "Blobby Volley" + + insinto "${dir}" + doins -r data/* || die + rm -f "${D}/${dir}"/Makefile* + + dodoc AUTHORS ChangeLog NEWS README TODO +} diff --git a/games-sports/blobby2/files/digest-blobby2-0.6a b/games-sports/blobby2/files/digest-blobby2-0.6a new file mode 100644 index 0000000..1545847 --- /dev/null +++ b/games-sports/blobby2/files/digest-blobby2-0.6a @@ -0,0 +1,3 @@ +MD5 fdef3e59f0870d890be8dffaccd773ca blobby2-linux-0.6a.tar.gz 2110392 +RMD160 81347078fc040b3de236f8b8f2ed68f424e62124 blobby2-linux-0.6a.tar.gz 2110392 +SHA256 da070839fd2c99269fcb0d4dfc0de10bb9fab980ca28408d2a27490244bce526 blobby2-linux-0.6a.tar.gz 2110392 diff --git a/games-strategy/freeciv/Manifest b/games-strategy/freeciv/Manifest new file mode 100644 index 0000000..32a43fc --- /dev/null +++ b/games-strategy/freeciv/Manifest @@ -0,0 +1,108 @@ +AUX freeciv-2.0.8-DoS.patch 1065 RMD160 f4a383a17a6508f7e95966d63bc03785156398e8 SHA1 9106687bf60cc1d321d57277e8a465402d85b99b SHA256 c3e3f83440b581aea1d2d9f46f10f4daeded8fa0f822f974439c6a7d783b190a +MD5 6f66d4ce889a078a7a154b6e5c9842c9 files/freeciv-2.0.8-DoS.patch 1065 +RMD160 f4a383a17a6508f7e95966d63bc03785156398e8 files/freeciv-2.0.8-DoS.patch 1065 +SHA256 c3e3f83440b581aea1d2d9f46f10f4daeded8fa0f822f974439c6a7d783b190a files/freeciv-2.0.8-DoS.patch 1065 +AUX freeciv-20050318.ebuild 2193 RMD160 57c33dffe1d2381a7591f71fd04e8c8f2702ae22 SHA1 d6cd86cd134fdb265f0d7b981c23bd1f1ec7c292 SHA256 ab57117fc8c954dfc55fd7abf7aac51001f1c47a1ccc56416929f1dfb22fe8e9 +MD5 a0fa10b1e2168bd4826bce0e145c4051 files/freeciv-20050318.ebuild 2193 +RMD160 57c33dffe1d2381a7591f71fd04e8c8f2702ae22 files/freeciv-20050318.ebuild 2193 +SHA256 ab57117fc8c954dfc55fd7abf7aac51001f1c47a1ccc56416929f1dfb22fe8e9 files/freeciv-20050318.ebuild 2193 +AUX freeciv-20050325.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050325.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050325.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050325.ebuild 2193 +AUX freeciv-20050408.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050408.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050408.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050408.ebuild 2193 +AUX freeciv-20050413.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050413.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050413.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050413.ebuild 2193 +AUX freeciv-20050414.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050414.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050414.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050414.ebuild 2193 +AUX freeciv-20050415.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050415.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050415.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050415.ebuild 2193 +AUX freeciv-20050421.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050421.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050421.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050421.ebuild 2193 +AUX freeciv-20050425.ebuild 2193 RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 SHA1 46c52e56ead05c059e69041643fea6b4ae89dd0e SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 +MD5 b97bbbc31cdbd7bf8fbd3f3c481cab0b files/freeciv-20050425.ebuild 2193 +RMD160 400d3ef956ec5699d03b6afdab593d9024a67e87 files/freeciv-20050425.ebuild 2193 +SHA256 d7ee2d49d7363c1a325a74216912fad85b46649677e2ee19abe23b46d2e43bf0 files/freeciv-20050425.ebuild 2193 +AUX freeciv-20050429.ebuild 4677 RMD160 36c686dd220b38083901aef82ac5d998390e1236 SHA1 bc6d023665cad87dc90a590b574f35336d499155 SHA256 e5669862404094ff0a026f31421388071ef89f9bcd2769c662f23240ce39cf09 +MD5 318b7e024d9e1344911d5e055d8ef0f7 files/freeciv-20050429.ebuild 4677 +RMD160 36c686dd220b38083901aef82ac5d998390e1236 files/freeciv-20050429.ebuild 4677 +SHA256 e5669862404094ff0a026f31421388071ef89f9bcd2769c662f23240ce39cf09 files/freeciv-20050429.ebuild 4677 +AUX freeciv-20050430.ebuild 4677 RMD160 36c686dd220b38083901aef82ac5d998390e1236 SHA1 bc6d023665cad87dc90a590b574f35336d499155 SHA256 e5669862404094ff0a026f31421388071ef89f9bcd2769c662f23240ce39cf09 +MD5 318b7e024d9e1344911d5e055d8ef0f7 files/freeciv-20050430.ebuild 4677 +RMD160 36c686dd220b38083901aef82ac5d998390e1236 files/freeciv-20050430.ebuild 4677 +SHA256 e5669862404094ff0a026f31421388071ef89f9bcd2769c662f23240ce39cf09 files/freeciv-20050430.ebuild 4677 +AUX freeciv.png 3657 RMD160 6f283d6031b7b4ae3da21ddd5145084f147a7acd SHA1 929520ea26f3e3093f8ab1984ffd61c99c154511 SHA256 50af34df5f43fb90844561ea5f91bbf1fbb762d15ea56811e39c7ad3f2cc0160 +MD5 42ae5aa07b3e176f81dfa905bcc0eb4f files/freeciv.png 3657 +RMD160 6f283d6031b7b4ae3da21ddd5145084f147a7acd files/freeciv.png 3657 +SHA256 50af34df5f43fb90844561ea5f91bbf1fbb762d15ea56811e39c7ad3f2cc0160 files/freeciv.png 3657 +DIST freeciv-2.0.0-beta6.tar.bz2 8202213 +DIST freeciv-2.0.0-beta7.tar.bz2 8425168 +DIST freeciv-2.0.7.tar.bz2 8473763 RMD160 5cdc70f1c3fc67180edeb905eda75b245cf412e2 SHA1 4b4a7f2169e5cc8c3b1db79177c721d75e9e8f23 SHA256 2d578418b5be354eabb31b754e3617f837090bccea9e03b6da4593e06361e798 +DIST freeciv-2.0.8.tar.bz2 8535513 RMD160 7ab93442cf63db22e9e660d2c1955990a1376d26 SHA1 b9098dc46ed169e053f9c7405cc3abf9cebe9792 SHA256 85b396c86f977b85f03fa1309733d21f7cc953e005ff1475f9981b77fa9f28f3 +DIST stdsounds2.tar.gz 1223738 +DIST stdsounds3.tar.gz 118278 RMD160 46bb5fef4b2d3acf9959b3228c962bdf6591ea09 SHA1 103d02a0702687fb038f5187a321f8074b4ebfb5 SHA256 a3cc2be93c006c3a9492349aa4552bf059e45efc94135f09241877c221ae1bfa +EBUILD freeciv-2.0.0_beta6.ebuild 2181 RMD160 b9320b3ba62b7381fc80cf6b2a1d6e62ec3d28d2 SHA1 99243b4f75967dfbc4892eccb26f4e9b6173b042 SHA256 74539808f96b05e14dd04e73bde3f492f3d4a73543eb4bc11476fa84521abce0 +MD5 db8c9286aacbbc1408cae6f32aad47a2 freeciv-2.0.0_beta6.ebuild 2181 +RMD160 b9320b3ba62b7381fc80cf6b2a1d6e62ec3d28d2 freeciv-2.0.0_beta6.ebuild 2181 +SHA256 74539808f96b05e14dd04e73bde3f492f3d4a73543eb4bc11476fa84521abce0 freeciv-2.0.0_beta6.ebuild 2181 +EBUILD freeciv-2.0.0_beta7.ebuild 2181 RMD160 b9320b3ba62b7381fc80cf6b2a1d6e62ec3d28d2 SHA1 99243b4f75967dfbc4892eccb26f4e9b6173b042 SHA256 74539808f96b05e14dd04e73bde3f492f3d4a73543eb4bc11476fa84521abce0 +MD5 db8c9286aacbbc1408cae6f32aad47a2 freeciv-2.0.0_beta7.ebuild 2181 +RMD160 b9320b3ba62b7381fc80cf6b2a1d6e62ec3d28d2 freeciv-2.0.0_beta7.ebuild 2181 +SHA256 74539808f96b05e14dd04e73bde3f492f3d4a73543eb4bc11476fa84521abce0 freeciv-2.0.0_beta7.ebuild 2181 +EBUILD freeciv-2.0.1.ebuild 4569 RMD160 a4af621031c83ff98473afb297fe33bec986965b SHA1 a260b5f1cdf20a9a1b7bbd065b05544d66df9f46 SHA256 184a3f608b418c71c664eeccbe44dbcb5f880ee4e39194477f9407a59f2073e1 +MD5 80e78e916ce342288f15516911a8f3e5 freeciv-2.0.1.ebuild 4569 +RMD160 a4af621031c83ff98473afb297fe33bec986965b freeciv-2.0.1.ebuild 4569 +SHA256 184a3f608b418c71c664eeccbe44dbcb5f880ee4e39194477f9407a59f2073e1 freeciv-2.0.1.ebuild 4569 +EBUILD freeciv-2.0.7.ebuild 4304 RMD160 9b9ebb42bd695932f9042a985400ba78037bdf80 SHA1 3d4e7af407d9df33729d0c47bbce0bf39bb1fd6b SHA256 938de112f1b3648bcbeff47ca8ba1bd6c2d2d7577eba6d0a88d358e58e74fe85 +MD5 e36c2ec015e11570c7ad9e8950d3cc3b freeciv-2.0.7.ebuild 4304 +RMD160 9b9ebb42bd695932f9042a985400ba78037bdf80 freeciv-2.0.7.ebuild 4304 +SHA256 938de112f1b3648bcbeff47ca8ba1bd6c2d2d7577eba6d0a88d358e58e74fe85 freeciv-2.0.7.ebuild 4304 +EBUILD freeciv-2.0.8-r1.ebuild 5169 RMD160 8e685496b6c5ab5e668866553b4f93d61ebb4182 SHA1 5d8387235396cb6672f8a80d8a49472cd4bedc99 SHA256 1d969873db3c175b4d9b619fa837ada2e73914e8a5b13d373a5264f108f59b30 +MD5 9f1ac12d3d352cf98d389ba714be570f freeciv-2.0.8-r1.ebuild 5169 +RMD160 8e685496b6c5ab5e668866553b4f93d61ebb4182 freeciv-2.0.8-r1.ebuild 5169 +SHA256 1d969873db3c175b4d9b619fa837ada2e73914e8a5b13d373a5264f108f59b30 freeciv-2.0.8-r1.ebuild 5169 +EBUILD freeciv-9999.ebuild 5037 RMD160 50b49c69b1d1daa9bc221ac2fc8df6e7c7276c4a SHA1 29e9b60d7f55a5e0985220fc1f58fbf6078a46f7 SHA256 a1cd526734658d9a43ab0919204f4074f31637e437db43b35693c04d4e412f06 +MD5 3f67ba556a5ec3b13cf4d7c879e8436f freeciv-9999.ebuild 5037 +RMD160 50b49c69b1d1daa9bc221ac2fc8df6e7c7276c4a freeciv-9999.ebuild 5037 +SHA256 a1cd526734658d9a43ab0919204f4074f31637e437db43b35693c04d4e412f06 freeciv-9999.ebuild 5037 +MISC freeciv-9999.ebuild.old 4736 RMD160 c7a643c22e88937c198b924ffbf956b881a488c6 SHA1 21e2bfae02f59054475674c2827dc093885cde83 SHA256 a0e50dc3bb92d3048c2450c109569c9f6c4a0e4409da29e2703a6a229c6e1fe6 +MD5 d38a30e0a4753d811833331daabb8674 freeciv-9999.ebuild.old 4736 +RMD160 c7a643c22e88937c198b924ffbf956b881a488c6 freeciv-9999.ebuild.old 4736 +SHA256 a0e50dc3bb92d3048c2450c109569c9f6c4a0e4409da29e2703a6a229c6e1fe6 freeciv-9999.ebuild.old 4736 +MISC freeciv-9999.ebuild.or 5060 RMD160 136d3bef73589bb38ebb37b57b8e5b7e7eb3f1b7 SHA1 9195a53f90b93d4ee4b2c8fd3a3ecebfdfa40c1b SHA256 79f1459c2ea4e04c898791d6e18c8314f29a6ce728481e93e90d2faca454e57c +MD5 dcd080157772ab10a5d7c0cfb7c6f002 freeciv-9999.ebuild.or 5060 +RMD160 136d3bef73589bb38ebb37b57b8e5b7e7eb3f1b7 freeciv-9999.ebuild.or 5060 +SHA256 79f1459c2ea4e04c898791d6e18c8314f29a6ce728481e93e90d2faca454e57c freeciv-9999.ebuild.or 5060 +MISC stdsounds.soundspec 5948 RMD160 00cf76220ef5977828a6ed1ae6c7c28bbf575296 SHA1 d8c907385622fcb2e630f6cd09e2fe1bb16b7a57 SHA256 71ccb7d680f47ef3a4f6f18fa2f1d5430cae0e46aeb30fc186f4154e0cb97675 +MD5 6e3e2bc551eb49ca87c4f0085991db15 stdsounds.soundspec 5948 +RMD160 00cf76220ef5977828a6ed1ae6c7c28bbf575296 stdsounds.soundspec 5948 +SHA256 71ccb7d680f47ef3a4f6f18fa2f1d5430cae0e46aeb30fc186f4154e0cb97675 stdsounds.soundspec 5948 +MD5 3954d0e65f4557786d6ff80c11022b23 files/digest-freeciv-2.0.0_beta6 136 +RMD160 d2f4afa4c4dd122e25d0ea03996a8eabbcdf9157 files/digest-freeciv-2.0.0_beta6 136 +SHA256 c276acf6c2d4f8def52b70ef75c014015940e39f4b323ecbb79934a8886203c7 files/digest-freeciv-2.0.0_beta6 136 +MD5 0369ecadb6f4932f054f8bf78c3c19ba files/digest-freeciv-2.0.0_beta7 136 +RMD160 536d27add273c0284025fc1506b9536d3e9130c4 files/digest-freeciv-2.0.0_beta7 136 +SHA256 4aa23769ea851d7352f036d7608fffe50a919e6464dc2a11ca2597b7120f64e2 files/digest-freeciv-2.0.0_beta7 136 +MD5 21412e5af420cd6f541584d28d5bb04c files/digest-freeciv-2.0.1 63 +RMD160 644f7853127de897e537f43b561d809a51ce6ad6 files/digest-freeciv-2.0.1 63 +SHA256 4dae3e84aed8a36fcb5e44cd8a3932dd6e1fd38cdc45c99ec1ba0e5efa6fbc93 files/digest-freeciv-2.0.1 63 +MD5 fadf61a5f02259d391faa065cb4eef33 files/digest-freeciv-2.0.7 479 +RMD160 d3cc0e1a943861d453a13c7c9f27918395b299c4 files/digest-freeciv-2.0.7 479 +SHA256 56841783a4c61268ddd0a1f602fc7ef8b6b0b888aa44140dd728b13793245be8 files/digest-freeciv-2.0.7 479 +MD5 40f3883d3eefecb900a217e2dc40e3da files/digest-freeciv-2.0.8-r1 479 +RMD160 d6332b47a3075ae2b93849528921b9e3672197b5 files/digest-freeciv-2.0.8-r1 479 +SHA256 2d5e6d0e14506a64b40ca97b8bec34a97483796d45226cbe1b316d617377bdf2 files/digest-freeciv-2.0.8-r1 479 +MD5 59c62ba90eb237185af9298635762c0c files/digest-freeciv-9999 232 +RMD160 57cf4842490464c870f0159c2bb56973b0c04bb4 files/digest-freeciv-9999 232 +SHA256 e482d08bdfa6c7d3f81c65dec1474ce237731b491dcdc889e385fe85b9ae54af files/digest-freeciv-9999 232 diff --git a/games-strategy/freeciv/files/digest-freeciv-2.0.0_beta6 b/games-strategy/freeciv/files/digest-freeciv-2.0.0_beta6 new file mode 100644 index 0000000..9367d8b --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-2.0.0_beta6 @@ -0,0 +1,2 @@ +MD5 6fbcb6a6094fb0d308c27eb34da73cc7 freeciv-2.0.0-beta6.tar.bz2 8202213 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-2.0.0_beta7 b/games-strategy/freeciv/files/digest-freeciv-2.0.0_beta7 new file mode 100644 index 0000000..35f5ced --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-2.0.0_beta7 @@ -0,0 +1,2 @@ +MD5 f5f7faf457d5139249d64c3c91ffd2f5 freeciv-2.0.0-beta7.tar.bz2 8425168 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-2.0.1 b/games-strategy/freeciv/files/digest-freeciv-2.0.1 new file mode 100644 index 0000000..c588dd9 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-2.0.1 @@ -0,0 +1 @@ +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-2.0.7 b/games-strategy/freeciv/files/digest-freeciv-2.0.7 new file mode 100644 index 0000000..ef19a1d --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-2.0.7 @@ -0,0 +1,6 @@ +MD5 7a60ea8f39822036b86640532accc5ce freeciv-2.0.7.tar.bz2 8473763 +RMD160 5cdc70f1c3fc67180edeb905eda75b245cf412e2 freeciv-2.0.7.tar.bz2 8473763 +SHA256 2d578418b5be354eabb31b754e3617f837090bccea9e03b6da4593e06361e798 freeciv-2.0.7.tar.bz2 8473763 +MD5 77215914712f2f351092918f5e41e39e stdsounds3.tar.gz 118278 +RMD160 46bb5fef4b2d3acf9959b3228c962bdf6591ea09 stdsounds3.tar.gz 118278 +SHA256 a3cc2be93c006c3a9492349aa4552bf059e45efc94135f09241877c221ae1bfa stdsounds3.tar.gz 118278 diff --git a/games-strategy/freeciv/files/digest-freeciv-2.0.8-r1 b/games-strategy/freeciv/files/digest-freeciv-2.0.8-r1 new file mode 100644 index 0000000..fd5043d --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-2.0.8-r1 @@ -0,0 +1,6 @@ +MD5 9ebd5899c2c78362e0e2c68791673a88 freeciv-2.0.8.tar.bz2 8535513 +RMD160 7ab93442cf63db22e9e660d2c1955990a1376d26 freeciv-2.0.8.tar.bz2 8535513 +SHA256 85b396c86f977b85f03fa1309733d21f7cc953e005ff1475f9981b77fa9f28f3 freeciv-2.0.8.tar.bz2 8535513 +MD5 77215914712f2f351092918f5e41e39e stdsounds3.tar.gz 118278 +RMD160 46bb5fef4b2d3acf9959b3228c962bdf6591ea09 stdsounds3.tar.gz 118278 +SHA256 a3cc2be93c006c3a9492349aa4552bf059e45efc94135f09241877c221ae1bfa stdsounds3.tar.gz 118278 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050318 b/games-strategy/freeciv/files/digest-freeciv-20050318 new file mode 100644 index 0000000..4fbe7d8 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050318 @@ -0,0 +1,2 @@ +MD5 448e7ac6368bf64f6d407e96b9abc896 freeciv-cvs-Mar-18.tar.bz2 8810709 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050325 b/games-strategy/freeciv/files/digest-freeciv-20050325 new file mode 100644 index 0000000..3bddff9 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050325 @@ -0,0 +1,2 @@ +MD5 d06137189655c9f3a8ffd142772ae29b freeciv-cvs-Mar-25.tar.bz2 8582248 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050408 b/games-strategy/freeciv/files/digest-freeciv-20050408 new file mode 100644 index 0000000..e328d2e --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050408 @@ -0,0 +1,2 @@ +MD5 7e5334b9f0eeb6b80117f6bce545a661 freeciv-cvs-Apr-08.tar.bz2 8603672 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050413 b/games-strategy/freeciv/files/digest-freeciv-20050413 new file mode 100644 index 0000000..674d52b --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050413 @@ -0,0 +1,2 @@ +MD5 20381acb0eba5b5f15ea1b9436ccc985 freeciv-cvs-Apr-13.tar.bz2 8596614 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050414 b/games-strategy/freeciv/files/digest-freeciv-20050414 new file mode 100644 index 0000000..c9f2f00 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050414 @@ -0,0 +1,2 @@ +MD5 41bdee920755afdf1f82cccf260df734 freeciv-cvs-Apr-14.tar.bz2 8596295 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050415 b/games-strategy/freeciv/files/digest-freeciv-20050415 new file mode 100644 index 0000000..fa55bc6 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050415 @@ -0,0 +1,2 @@ +MD5 bd3aa9900082ebbdb362dcd19fee22c9 freeciv-cvs-Apr-15.tar.bz2 8608048 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050421 b/games-strategy/freeciv/files/digest-freeciv-20050421 new file mode 100644 index 0000000..3a081ba --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050421 @@ -0,0 +1,2 @@ +MD5 1a858019d9b449dfc578797c8a14fe3d freeciv-cvs-Apr-21.tar.bz2 8579129 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050425 b/games-strategy/freeciv/files/digest-freeciv-20050425 new file mode 100644 index 0000000..77d1b4f --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050425 @@ -0,0 +1,2 @@ +MD5 ab6c573ebc9a802f256640d7cabe517b freeciv-cvs-Apr-25.tar.bz2 8588770 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050429 b/games-strategy/freeciv/files/digest-freeciv-20050429 new file mode 100644 index 0000000..7a4e176 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050429 @@ -0,0 +1,2 @@ +MD5 4940fd69086ab38b201ee3ba9f8f6927 freeciv-cvs-Apr-29.tar.bz2 8750956 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-20050430 b/games-strategy/freeciv/files/digest-freeciv-20050430 new file mode 100644 index 0000000..7b8e472 --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-20050430 @@ -0,0 +1,2 @@ +MD5 cc56d9852f98c7e4e0c843a6dfc1b078 freeciv-cvs-Apr-30.tar.bz2 8751918 +MD5 63b06631addeaccf45bc4bf6b8ddf7b3 stdsounds2.tar.gz 1223738 diff --git a/games-strategy/freeciv/files/digest-freeciv-9999 b/games-strategy/freeciv/files/digest-freeciv-9999 new file mode 100644 index 0000000..706394e --- /dev/null +++ b/games-strategy/freeciv/files/digest-freeciv-9999 @@ -0,0 +1,3 @@ +MD5 77215914712f2f351092918f5e41e39e stdsounds3.tar.gz 118278 +RMD160 46bb5fef4b2d3acf9959b3228c962bdf6591ea09 stdsounds3.tar.gz 118278 +SHA256 a3cc2be93c006c3a9492349aa4552bf059e45efc94135f09241877c221ae1bfa stdsounds3.tar.gz 118278 diff --git a/games-strategy/freeciv/files/freeciv-2.0.8-DoS.patch b/games-strategy/freeciv/files/freeciv-2.0.8-DoS.patch new file mode 100644 index 0000000..83a61dd --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-2.0.8-DoS.patch @@ -0,0 +1,26 @@ +--- trunk/server/unithand.c 2006/07/12 17:18:43 12065 ++++ trunk/server/unithand.c 2006/07/16 12:15:25 12106 +@@ -1622,7 +1622,8 @@ + struct tile *src_tile = map_pos_to_tile(packet->src_x, packet->src_y); + int i; + +- if (!punit || packet->length < 0 || punit->activity != ACTIVITY_IDLE) { ++ if (!punit || packet->length < 0 || punit->activity != ACTIVITY_IDLE ++ || packet->length > MAX_LEN_ROUTE) { + return; + } + +--- trunk/common/packets.c 2006/03/04 02:42:00 11710 ++++ trunk/common/packets.c 2006/07/24 08:37:08 12146 +@@ -562,8 +562,11 @@ + chunk->total_length, chunk->chunk_length); + + if (chunk->total_length < 0 ++ || chunk->chunk_length < 0 + || chunk->total_length >= MAX_ATTRIBUTE_BLOCK + || chunk->offset < 0 ++ || chunk->offset > chunk->total_length /* necessary check on 32 bit systems */ ++ || chunk->chunk_length > chunk->total_length + || chunk->offset + chunk->chunk_length > chunk->total_length + || (chunk->offset != 0 + && chunk->total_length != pplayer->attribute_block_buffer.length)) { diff --git a/games-strategy/freeciv/files/freeciv-20050318.ebuild b/games-strategy/freeciv/files/freeciv-20050318.ebuild new file mode 100644 index 0000000..12da4f1 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050318.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Mar-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050325.ebuild b/games-strategy/freeciv/files/freeciv-20050325.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050325.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050408.ebuild b/games-strategy/freeciv/files/freeciv-20050408.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050408.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050413.ebuild b/games-strategy/freeciv/files/freeciv-20050413.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050413.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050414.ebuild b/games-strategy/freeciv/files/freeciv-20050414.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050414.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050415.ebuild b/games-strategy/freeciv/files/freeciv-20050415.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050415.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050421.ebuild b/games-strategy/freeciv/files/freeciv-20050421.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050421.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050425.ebuild b/games-strategy/freeciv/files/freeciv-20050425.ebuild new file mode 100644 index 0000000..e4f77a7 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050425.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050429.ebuild b/games-strategy/freeciv/files/freeciv-20050429.ebuild new file mode 100644 index 0000000..4c44e02 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050429.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + !dedicated? ( + alsa? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + esd? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + sdl? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="Xaw3d gtk gtk2 nls readline dedicated alsa esd sdl" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + virtual/x11 + !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + >=sys-apps/sed-4" + + +pkg_setup() { + if use '!dedicated' ; then + if use gtk && use gtk2 ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + elif use gtk ; then + einfo "The Freeciv Client will be built with the GTK+-1.2 toolkit" + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if use '!esd' && use '!alsa' && use '!sdl' ; then + ewarn "" + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn "" + fi + fi +} + +src_unpack() { + unpack ${A} + + # install locales in /usr/share/locale + sed -i 's:^\(localedir = \).*:\1/usr/share/locale:' \ + ${S}/intl/Makefile.in ${S}/po/Makefile.in.in || die "sed failed" + sed -i '/^#define LOCALEDIR/s:".*":"/usr/share/locale":' \ + ${S}/configure || die "sed failed" + + # install the .desktop in /usr/share/applications + sed -i 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + ${S}/client/Makefile.in || die "sed failed" + + # remove civclient manpage if dedicated server + use dedicated && { + sed -i '/man_MANS = /s:civclient.6::' \ + ${S}/doc/man/Makefile.in || die "sed failed" + } +} + +src_compile() { + # Configure the client toolkit + local myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + use dedicated && myclient="no" + + # Configure the sound plugins + local mysoundconf + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + else + #XXX --enable-{alsa,esd,sdl-mixer} actually disable them... + #XXX ==> use --disable-* only, and autodetect to enable. + #XXX mysoundconf="${mysoundconf} $(use_enable alsa)" + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + #XXX mysoundconf="${mysoundconf} $(use_enable esd)" + use esd || mysoundconf="${mysoundconf} --disable-esd" + #XXX mysoundconf="${mysoundconf} $(use_enable sdl sdl-mixer)" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_with readline) \ + $(use_enable nls) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if use '!dedicated' ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if use '!gtk'; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../stdsounds* ${D}${GAMES_DATADIR}/${PN} \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f ${D}/${GAMES_BINDIR}/civmanual + fi + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} \ + || die "dodoc failed" + + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv-20050430.ebuild b/games-strategy/freeciv/files/freeciv-20050430.ebuild new file mode 100644 index 0000000..4c44e02 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv-20050430.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-cvs-Apr-${PV:6:2} +S=${WORKDIR}/${MY_P} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/latest/${MY_P}.tar.bz2 + !dedicated? ( + alsa? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + esd? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + sdl? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="Xaw3d gtk gtk2 nls readline dedicated alsa esd sdl" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + virtual/x11 + !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + >=sys-apps/sed-4" + + +pkg_setup() { + if use '!dedicated' ; then + if use gtk && use gtk2 ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + elif use gtk ; then + einfo "The Freeciv Client will be built with the GTK+-1.2 toolkit" + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if use '!esd' && use '!alsa' && use '!sdl' ; then + ewarn "" + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn "" + fi + fi +} + +src_unpack() { + unpack ${A} + + # install locales in /usr/share/locale + sed -i 's:^\(localedir = \).*:\1/usr/share/locale:' \ + ${S}/intl/Makefile.in ${S}/po/Makefile.in.in || die "sed failed" + sed -i '/^#define LOCALEDIR/s:".*":"/usr/share/locale":' \ + ${S}/configure || die "sed failed" + + # install the .desktop in /usr/share/applications + sed -i 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + ${S}/client/Makefile.in || die "sed failed" + + # remove civclient manpage if dedicated server + use dedicated && { + sed -i '/man_MANS = /s:civclient.6::' \ + ${S}/doc/man/Makefile.in || die "sed failed" + } +} + +src_compile() { + # Configure the client toolkit + local myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + use dedicated && myclient="no" + + # Configure the sound plugins + local mysoundconf + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + else + #XXX --enable-{alsa,esd,sdl-mixer} actually disable them... + #XXX ==> use --disable-* only, and autodetect to enable. + #XXX mysoundconf="${mysoundconf} $(use_enable alsa)" + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + #XXX mysoundconf="${mysoundconf} $(use_enable esd)" + use esd || mysoundconf="${mysoundconf} --disable-esd" + #XXX mysoundconf="${mysoundconf} $(use_enable sdl sdl-mixer)" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_with readline) \ + $(use_enable nls) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if use '!dedicated' ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if use '!gtk'; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../stdsounds* ${D}${GAMES_DATADIR}/${PN} \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f ${D}/${GAMES_BINDIR}/civmanual + fi + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} \ + || die "dodoc failed" + + prepgamesdirs +} diff --git a/games-strategy/freeciv/files/freeciv.png b/games-strategy/freeciv/files/freeciv.png Binary files differnew file mode 100644 index 0000000..52d8c90 --- /dev/null +++ b/games-strategy/freeciv/files/freeciv.png diff --git a/games-strategy/freeciv/freeciv-2.0.0_beta6.ebuild b/games-strategy/freeciv/freeciv-2.0.0_beta6.ebuild new file mode 100644 index 0000000..6222fda --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.0.0_beta6.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-${PV/_/-} +S="${WORKDIR}/${MY_P}" +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/freeciv/beta/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-2.0.0_beta7.ebuild b/games-strategy/freeciv/freeciv-2.0.0_beta7.ebuild new file mode 100644 index 0000000..6222fda --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.0.0_beta7.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games + +MY_P=${PN}-${PV/_/-} +S="${WORKDIR}/${MY_P}" +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/freeciv/beta/${MY_P}.tar.bz2 + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~ppc" +IUSE="X Xaw3d gtk gtk2 nls readline esd imlib alsa zlib" + +RDEPEND="X? ( virtual/x11 ) + Xaw3d? ( x11-libs/Xaw3d ) + readline? ( sys-libs/readline ) + zlib? ( sys-libs/zlib ) + imlib? ( media-libs/imlib ) + esd? ( media-sound/esound ) + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + alsa? ( media-libs/alsa-lib )" + +# 2.0 dependancies added by AD Rutledge, not sure exactly what versions, +# this should be fixed if it requires a specific version or later +DEPEND="${RDEPEND} + nls? ( + sys-devel/gettext + >=sys-apps/sed-4 + )" + +src_compile() { + local myclient="no" + use X && myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + + egamesconf \ + --disable-dependency-tracking \ + $(use_with zlib) \ + $(use_with readline) \ + $(use_with imlib) \ + $(use_enable nls) \ + $(use_enable alsa) \ + --enable-client=${myclient} \ + || die "configure failed" + + # Grrrr, the locale location is hard-coded in configure.in to be + # '${prefix}/share/locale'. That is so wrong. (Bug 40253) + if use nls ; then + sed -i \ + -e "/LOCALEDIR/ s:\".*:\"${GAMES_DATADIR}/locale\":" config.h \ + || die "locale fixup failed" + fi + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + insinto /usr/X11R6/lib/X11/app-defaults + doins data/Freeciv || die "doins failed" + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + # install sounds + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-2.0.1.ebuild b/games-strategy/freeciv/freeciv-2.0.1.ebuild new file mode 100644 index 0000000..e511a7d --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.0.1.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.0.1.ebuild,v 1.3 2005/05/17 11:36:22 yoswink Exp $ + +inherit games + +MY_P=${PN}-${PV/_/-} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/stable/${MY_P}.tar.bz2 + !dedicated? ( + alsa? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + esd? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + sdl? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds2.tar.gz ) + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~ppc ~x86 ~alpha" +IUSE="alsa dedicated esd gtk gtk2 nls readline sdl Xaw3d" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + virtual/x11 + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + games_pkg_setup + if ! use dedicated ; then + if use gtk ; then + if use gtk2 ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + else + einfo "The Freeciv Client will be built with the GTK+-1.2 toolkit" + fi + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if ! use esd && ! use alsa && ! use sdl ; then + ewarn + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn + fi + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # install locales in /usr/share/locale + sed -i \ + -e 's:^\(localedir = \).*:\1/usr/share/locale:' \ + intl/Makefile.in po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e '/^#define LOCALEDIR/s:".*":"/usr/share/locale":' \ + configure \ + || die "sed failed" + + # install the .desktop in /usr/share/applications + sed -i \ + -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + client/Makefile.in \ + || die "sed failed" + + # remove civclient manpage if dedicated server + if use dedicated ; then + sed -i \ + -e '/man_MANS = /s:civclient.6::' \ + doc/man/Makefile.in \ + || die "sed failed" + fi +} + +src_compile() { + local mysoundconf + local myclient + + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + myclient="no" + else + myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them... + #FIXME ==> use --disable-* only, and autodetect to enable. + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + use esd || mysoundconf="${mysoundconf} --disable-esd" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_enable nls) \ + $(use_with readline) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if ! use dedicated ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if ! use gtk ; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../stdsounds* "${D}${GAMES_DATADIR}/${PN}" \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f "${D}/${GAMES_BINDIR}/civmanual" + fi + + dodoc ChangeLog INSTALL NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-2.0.7.ebuild b/games-strategy/freeciv/freeciv-2.0.7.ebuild new file mode 100644 index 0000000..3a84024 --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.0.7.ebuild @@ -0,0 +1,158 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.0.7.ebuild,v 1.1 2005/11/07 09:11:35 mr_bones_ Exp $ + +inherit games + +MY_P=${PN}-${PV/_/-} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/stable/${MY_P}.tar.bz2 + !dedicated? ( + alsa? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + esd? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + sdl? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="alsa dedicated esd gtk nls readline sdl Xaw3d" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + virtual/x11 + gtk? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk? ( + Xaw3d? ( x11-libs/Xaw3d ) + ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + games_pkg_setup + if ! use dedicated ; then + if use gtk ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if ! use esd && ! use alsa && ! use sdl ; then + ewarn + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn + fi + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # install locales in /usr/share/locale + sed -i \ + -e 's:^\(localedir = \).*:\1/usr/share/locale:' \ + intl/Makefile.in po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e '/^#define LOCALEDIR/s:".*":"/usr/share/locale":' \ + configure \ + || die "sed failed" + + # install the .desktop in /usr/share/applications + sed -i \ + -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + client/Makefile.in \ + || die "sed failed" + + # remove civclient manpage if dedicated server + if use dedicated ; then + sed -i \ + -e '/man_MANS = /s:civclient.6::' \ + doc/man/Makefile.in \ + || die "sed failed" + fi +} + +src_compile() { + local mysoundconf + local myclient + + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + myclient="no" + else + myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + myclient="gtk-2.0" + fi + #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them... + #FIXME ==> use --disable-* only, and autodetect to enable. + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + use esd || mysoundconf="${mysoundconf} --disable-esd" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_enable nls) \ + $(use_with readline) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if ! use dedicated ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if ! use gtk ; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../data/stdsounds* "${D}${GAMES_DATADIR}/${PN}" \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f "${D}/${GAMES_BINDIR}/civmanual" + fi + + dodoc ChangeLog NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-2.0.8-r1.ebuild b/games-strategy/freeciv/freeciv-2.0.8-r1.ebuild new file mode 100644 index 0000000..ce9952a --- /dev/null +++ b/games-strategy/freeciv/freeciv-2.0.8-r1.ebuild @@ -0,0 +1,192 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freeciv/freeciv-2.0.8-r1.ebuild,v 1.2 2006/08/28 00:43:00 kumba Exp $ + +inherit eutils games + +MY_P=${PN}-${PV/_/-} +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="ftp://ftp.freeciv.org/pub/freeciv/stable/${MY_P}.tar.bz2 + !dedicated? ( + alsa? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + esd? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + sdl? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 mips ppc sparc x86" +IUSE="alsa dedicated esd gtk nls readline sdl Xaw3d" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + gtk? ( + >=dev-util/pkgconfig-0.9 + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk? ( + Xaw3d? ( + x11-libs/Xaw3d ) + !Xaw3d? ( + || ( + x11-libs/libXaw + virtual/x11 ) ) + || ( ( + x11-libs/libX11 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm ) + virtual/x11 ) ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + || ( ( x11-proto/xextproto ) + virtual/x11 )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + games_pkg_setup + if ! use dedicated ; then + if use gtk ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if ! use esd && ! use alsa && ! use sdl ; then + ewarn + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn + fi + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + # bug #141563 DoS attack + # https://bugs.gentoo.org/show_bug.cgi?id=141563 + epatch "${FILESDIR}/${P}-DoS.patch" + + # install locales in /usr/share/locale + sed -i \ + -e 's:^\(localedir = \).*:\1/usr/share/locale:' \ + intl/Makefile.in po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e '/^#define LOCALEDIR/s:".*":"/usr/share/locale":' \ + configure \ + || die "sed failed" + + # change .desktop icon to the freeciv icon rather than the gnome globe + sed -i \ + -e 's:^\(Icon=\).*:\1freeciv.png:' \ + bootstrap/freeciv.desktop.in \ + || die "sed failed" + + # change .desktop category so it is not gnome specific + sed -i \ + -e 's:^\(Categories=GNOME;Application;Game;Strategy;\):Categories=Application;Game;StrategyGame;:' \ + bootstrap/freeciv.desktop.in \ + || die "sed failed" + # install the .desktop in /usr/share/applications + sed -i \ + -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + client/Makefile.in \ + || die "sed failed" + + # remove civclient manpage if dedicated server + if use dedicated ; then + sed -i \ + -e '/man_MANS = /s:civclient.6::' \ + doc/man/Makefile.in \ + || die "sed failed" + fi +} + +src_compile() { + local mysoundconf + local myclient + + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + myclient="no" + else + myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + myclient="gtk-2.0" + fi + #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them... + #FIXME ==> use --disable-* only, and autodetect to enable. + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + use esd || mysoundconf="${mysoundconf} --disable-esd" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_enable nls) \ + $(use_with readline) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if ! use dedicated ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if ! use gtk ; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../data/stdsounds* "${D}${GAMES_DATADIR}/${PN}" \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f "${D}/${GAMES_BINDIR}/civmanual" + fi + + dodoc ChangeLog NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + doicon "${FILESDIR}/${PN}.png" + + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-9999.ebuild b/games-strategy/freeciv/freeciv-9999.ebuild new file mode 100644 index 0000000..3e36168 --- /dev/null +++ b/games-strategy/freeciv/freeciv-9999.ebuild @@ -0,0 +1,192 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils games subversion flag-o-matic + +ESVN_REPO_URI="svn://svn.gna.org/svn/freeciv/trunk" + +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="!dedicated? ( + alsa? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + esd? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + sdl? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-*" +IUSE="alsa dedicated esd gtk nls readline sdl Xaw3d" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + gtk? ( + >=dev-util/pkgconfig-0.9 + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk? ( + Xaw3d? ( + x11-libs/Xaw3d ) + !Xaw3d? ( + || ( + x11-libs/libXaw + virtual/x11 ) ) + || ( ( + x11-libs/libX11 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm ) + virtual/x11 ) ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + || ( ( x11-proto/xextproto ) + virtual/x11 )" + +pkg_setup() { + games_pkg_setup + if ! use dedicated ; then + if use gtk ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if ! use esd && ! use alsa && ! use sdl ; then + ewarn + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn + fi + fi +} + +src_unpack() { + unpack ${A} + subversion_src_unpack + cd "${S}" + # dont configure + sed -i -e 's:running configure ... ":\0\nexit 0:' autogen.sh + ./autogen.sh + + + # install locales in /usr/share/locale + sed -i \ + -e 's:^\(localedir = \).*:\1/usr/share/locale:' \ + intl/Makefile.in po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e '/^#define LOCALEDIR/s:".*":"/usr/share/locale":' \ + configure \ + || die "sed failed" + + # change .desktop icon to the freeciv icon rather than the gnome globe + sed -i \ + -e 's:^\(Icon=\).*:\1freeciv.png:' \ + bootstrap/freeciv.desktop.in \ + || die "sed failed" + + # change .desktop category so it is not gnome specific + sed -i \ + -e 's:^\(Categories=GNOME;Application;Game;Strategy;\):Categories=Application;Game;StrategyGame;:' \ + bootstrap/freeciv.desktop.in \ + || die "sed failed" + # install the .desktop in /usr/share/applications + sed -i \ + -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + client/Makefile.in \ + || die "sed failed" + + # remove civclient manpage if dedicated server + if use dedicated ; then + sed -i \ + -e '/man_MANS = /s:civclient.6::' \ + doc/man/Makefile.in \ + || die "sed failed" + fi +} + +src_compile() { + filter-flags -ftree-vectorize + local mysoundconf + local myclient + + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + myclient="no" + else + myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + myclient="gtk-2.0" + fi + #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them... + #FIXME ==> use --disable-* only, and autodetect to enable. + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + use esd || mysoundconf="${mysoundconf} --disable-esd" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_enable nls) \ + $(use_with readline) \ + --enable-client=sdl \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if ! use dedicated ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if ! use gtk ; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../data/stdsounds* "${D}${GAMES_DATADIR}/${PN}" \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f "${D}/${GAMES_BINDIR}/civmanual" + fi + + dodoc ChangeLog NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + doicon "${FILESDIR}/${PN}.png" + + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-9999.ebuild.old b/games-strategy/freeciv/freeciv-9999.ebuild.old new file mode 100644 index 0000000..d435044 --- /dev/null +++ b/games-strategy/freeciv/freeciv-9999.ebuild.old @@ -0,0 +1,178 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit games subversion + +ESVN_REPO_URI="svn://svn.gna.org/svn/freeciv/trunk" + +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="!dedicated? ( + alsa? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + esd? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + sdl? ( http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="alsa dedicated esd gtk gtk2 nls readline sdl Xaw3d" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + virtual/x11 + gtk? ( + gtk2? ( + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk2? ( + =x11-libs/gtk+-1* + >=dev-libs/glib-1.2.5 + >=media-libs/imlib-1.9.2 + ) + ) + !gtk? ( Xaw3d? ( x11-libs/Xaw3d ) ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + games_pkg_setup + if ! use dedicated ; then + if use gtk ; then + if use gtk2 ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + else + einfo "The Freeciv Client will be built with the GTK+-1.2 toolkit" + fi + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if ! use esd && ! use alsa && ! use sdl ; then + ewarn + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn + fi + fi +} + +src_unpack() { + unpack ${A} + cvs_src_unpack + cd "${S}" + + # install locales in /usr/share/locale + sed -i \ + -e 's:^\(localedir = \).*:\1/usr/share/locale:' \ + intl/Makefile.in po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e "s:LOCALEDIR, '\./share/locale':LOCALEDIR, '/usr/share/locale':" \ + configure.ac \ + || die "sed failed" +} + +src_compile() { + local mysoundconf + local myclient + + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + myclient="no" + else + myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + use gtk2 \ + && myclient="gtk-2.0" \ + || myclient="gtk" + fi + #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them... + #FIXME ==> use --disable-* only, and autodetect to enable. + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + use esd || mysoundconf="${mysoundconf} --disable-esd" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + ./autogen.sh \ + --prefix="${GAMES_PREFIX}" \ + --build=${CBUILD:-${CHOST}} \ + --host=${CHOST} \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --datadir="${GAMES_DATADIR}" \ + --sysconfdir="${GAMES_SYSCONFDIR}" \ + --localstatedir="${GAMES_STATEDIR}" \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_enable nls) \ + $(use_with readline) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" + + # install the .desktop in /usr/share/applications + sed -i \ + -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + client/Makefile.in \ + || die "sed failed" + + # remove civclient manpage if dedicated server + if use dedicated ; then + sed -i \ + -e '/man_MANS = /s:civclient.6::' \ + doc/man/Makefile.in \ + || die "sed failed" + fi +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if ! use dedicated ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if ! use gtk ; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../data/stdsounds* "${D}${GAMES_DATADIR}/${PN}" \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + #./manual/civmanual || die "civmanual failed" + #dohtml manual*.html || die "dohtml failed" + rm -f "${D}/${GAMES_BINDIR}/civmanual" + fi + + dodoc ChangeLog NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + prepgamesdirs +} diff --git a/games-strategy/freeciv/freeciv-9999.ebuild.or b/games-strategy/freeciv/freeciv-9999.ebuild.or new file mode 100644 index 0000000..cf25389 --- /dev/null +++ b/games-strategy/freeciv/freeciv-9999.ebuild.or @@ -0,0 +1,192 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils games subversion flag-o-matic + +ESVN_REPO_URI="svn://svn.gna.org/svn/freeciv/trunk" + +DESCRIPTION="multiplayer strategy game (Civilization Clone)" +HOMEPAGE="http://www.freeciv.org/" +SRC_URI="!dedicated? ( + alsa? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + esd? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) + sdl? ( + http://www.freeciv.org/ftp/contrib/sounds/sets/stdsounds3.tar.gz ) )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-*" +IUSE="alsa dedicated esd gtk nls readline sdl Xaw3d" + +RDEPEND="sys-libs/zlib + readline? ( sys-libs/readline ) + !dedicated? ( + gtk? ( + >=dev-util/pkgconfig-0.9 + >=x11-libs/gtk+-2.0.0 + >=dev-libs/glib-2.0.0 + >=dev-libs/atk-1.0.3 + >=x11-libs/pango-1.0.5 + ) + !gtk? ( + Xaw3d? ( + x11-libs/Xaw3d ) + !Xaw3d? ( + || ( + x11-libs/libXaw + virtual/x11 ) ) + || ( ( + x11-libs/libX11 + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt + x11-libs/libXext + x11-libs/libXmu + x11-libs/libXpm ) + virtual/x11 ) ) + alsa? ( + >=media-libs/alsa-lib-1.0 + >=media-libs/audiofile-0.2 + ) + esd? ( >=media-sound/esound-0.2 ) + sdl? ( + >=media-libs/sdl-mixer-1.2 + >=media-libs/libsdl-1.2 + ) + )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + || ( ( x11-proto/xextproto ) + virtual/x11 )" + +pkg_setup() { + games_pkg_setup + if ! use dedicated ; then + if use gtk ; then + einfo "The Freeciv Client will be built with the GTK+-2 toolkit" + elif use Xaw3d ; then + einfo "The Freeciv Client will be built with the Xaw3d toolkit" + else + einfo "The Freeciv Client will be built with the Xaw toolkit" + fi + if ! use esd && ! use alsa && ! use sdl ; then + ewarn + ewarn "To enable sound support in civclient, you must enable" + ewarn "at least one of this USE flags: alsa, esd, sdl" + ewarn + fi + fi +} + +src_unpack() { + unpack ${A} + subversion_src_unpack + cd "${S}" + # dont configure + sed -i -e 's:running configure ... ":\0\nexit 0:' autogen.sh + ./autogen.sh + + + # install locales in /usr/share/locale + sed -i \ + -e 's:^\(localedir = \).*:\1/usr/share/locale:' \ + intl/Makefile.in po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e 's:\(FC_EXPAND_DIR(LOCALEDIR,\).*:\1 "/usr/share/locale"):' \ + configure.ac \ + || die "sed failed" + + # change .desktop icon to the freeciv icon rather than the gnome globe + sed -i \ + -e 's:^\(Icon=\).*:\1freeciv.png:' \ + bootstrap/freeciv.desktop.in \ + || die "sed failed" + + # change .desktop category so it is not gnome specific + sed -i \ + -e 's:^\(Categories=GNOME;Application;Game;Strategy;\):Categories=Application;Game;StrategyGame;:' \ + bootstrap/freeciv.desktop.in \ + || die "sed failed" + # install the .desktop in /usr/share/applications + sed -i \ + -e 's:^\(desktopfiledir = \).*:\1/usr/share/applications:' \ + client/Makefile.am \ + || die "sed failed" + + # remove civclient manpage if dedicated server + if use dedicated ; then + sed -i \ + -e '/man_MANS = /s:civclient.6::' \ + doc/man/Makefile.am \ + || die "sed failed" + fi +} + +src_compile() { + #filter-flags -ftree-vectorize + local mysoundconf + local myclient + + if use dedicated ; then + mysoundconf="--disable-alsa --disable-esd --disable-sdl-mixer" + myclient="no" + else + myclient="xaw" + use Xaw3d && myclient="xaw3d" + if use gtk ; then + myclient="gtk-2.0" + fi + #FIXME --enable-{alsa,esd,sdl-mixer} actually disable them... + #FIXME ==> use --disable-* only, and autodetect to enable. + use alsa || mysoundconf="${mysoundconf} --disable-alsa" + use esd || mysoundconf="${mysoundconf} --disable-esd" + use sdl || mysoundconf="${mysoundconf} --disable-sdl-mixer" + fi + + egamesconf \ + --disable-dependency-tracking \ + --with-zlib \ + $(use_enable nls) \ + $(use_with readline) \ + --enable-client=${myclient} \ + ${mysoundconf} \ + || die "egamesconf failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + + if ! use dedicated ; then + # Install the app-defaults if Xaw/Xaw3d toolkit + if ! use gtk ; then + insinto /etc/X11/app-defaults + doins data/Freeciv || die "doins failed" + fi + # Install sounds if at least one sound plugin was built + if use alsa || use esd || use sdl ; then + cp -R ../data/stdsounds* "${D}${GAMES_DATADIR}/${PN}" \ + || die "failed to install sounds" + fi + # Create and install the html manual. It can't be done for dedicated + # servers, because the 'civmanual' tool is then not built. Also + # delete civmanual from the GAMES_BINDIR, because it's then useless. + # Note: to have it localized, it should be ran from _postinst, or + # something like that, but then it's a PITA to avoid orphan files... + ./manual/civmanual || die "civmanual failed" + dohtml manual*.html || die "dohtml failed" + rm -f "${D}/${GAMES_BINDIR}/civmanual" + fi + + dodoc ChangeLog NEWS \ + doc/{BUGS,CodingStyle,HACKING,HOWTOPLAY,PEOPLE,README*,TODO} + + doicon "${FILESDIR}/${PN}.png" + + prepgamesdirs +} diff --git a/games-strategy/freeciv/stdsounds.soundspec b/games-strategy/freeciv/stdsounds.soundspec new file mode 100644 index 0000000..00fd041 --- /dev/null +++ b/games-strategy/freeciv/stdsounds.soundspec @@ -0,0 +1,262 @@ +[soundspec] +; Format and options of this spec file: +options = "+soundspec" + +[info] +artists = "Samples taken from www.waveform.dk (various authors), and +OpenQuartz (Ali Jackson, alister667@hotmail.com) and Paroxysm (pOx, +pox@planetquake.com)." + +; For a list of tags used see README.sound, buildings.ruleset and +; units.ruleset. + +[files] + +;b_generic = "" +;b_airport = "" +;b_aqueduct = "" +;b_bank = "" +;b_barracks_i = "" +;b_barracks_ii = "" +;b_barracks_iii = "" +;b_cathedral = "" +;b_city_walls = "" +;b_coastal_defense = "" +;b_colosseum = "" +;b_courthouse = "" +;b_factory = "" +;b_granary = "" +;b_harbour = "" +;b_hydro_plant = "" +;b_library = "" +;b_marketplace = "" +;b_mass_transit = "" +;b_mfg_plant = "" +;b_nuclear_plant = "" +;b_offshore_platform = "" +;b_palace = "" +;b_police_station = "" +;b_port_facility = "" +;b_power_plant = "" +;b_recycling_center = "" +;b_research_lab = "" +;b_sam_battery = "" +;b_sdi_defense = "" +;b_sewer_system = "" +;b_solar_plant = "" +;b_space_component = "" +;b_space_module = "" +;b_space_structural = "" +;b_stock_exchange = "" +;b_super_highways = "" +;b_supermarket = "" +;b_temple = "" +;b_university = "" + +f_generic = "stdsounds/woodbrk.wav" +f_aegis_cruiser = "stdsounds/rhino.wav" +f_alpine_troops = "stdsounds/guncock.wav" +;f_archers = "" +f_armor = "stdsounds/rhino.wav" +f_artillery = "stdsounds/rhino.wav" +;f_barbarian_leader = "" +f_battleship = "stdsounds/r_exp3.wav" +f_bomber = "stdsounds/rhino.wav" +f_cannon = "stdsounds/wall01.wav" +;f_caravan = "" +;f_caravel = "" +;f_carrier = "" +f_catapult = "stdsounds/wall01.wav" +f_cavalry = "stdsounds/bang10.wav" +;f_chariot = "" +f_cruise_missile = "stdsounds/rhino.wav" +f_cruiser = "stdsounds/rhino.wav" +;f_crusaders = "" +f_destroyer = "stdsounds/r_exp3.wav" +;f_diplomat = "" +;f_dragoons = "" +;f_elephants = "" +;f_engineers = "" +;f_explorer = "" +;f_fanatics = "" +f_fighter = "stdsounds/rhino.wav" +;f_freight = "" +;f_frigate = "" +;f_galleon = "" +f_helicopter = "stdsounds/rhino.wav" +;f_horsemen = "" +f_howitzer = "stdsounds/r_exp3.wav" +f_ironclad = "stdsounds/rhino.wav" +;f_knights = "" +;f_legion = "" +f_marines = "stdsounds/guncock.wav" +f_mech_inf = "stdsounds/guncock.wav" +f_musketeers = "stdsounds/bang10.wav" +f_nuclear = "stdsounds/rhino.wav" +f_paratroopers = "stdsounds/guncock.wav" +f_partisan = "stdsounds/bang10.wav" +;f_phalanx = "" +;f_pikemen = "" +f_riflemen = "stdsounds/guncock.wav" +;f_settlers = "" +;f_spy = "" +f_stealth_bomber = "stdsounds/rhino.wav" +f_stealth_fighter = "stdsounds/rhino.wav" +f_submarine = "stdsounds/rhino.wav" +;f_transport = "" +;f_trireme = "" +;f_warriors = "" + +m_generic = "stdsounds/foot3.wav" +m_aegis_cruiser = "stdsounds/inh2o.wav" +;m_alpine_troops = "" +;m_archers = "" +;m_armor = "" +;m_artillery = "" +;m_barbarian_leader = "" +m_battleship = "stdsounds/inh2o.wav" +;m_bomber = "" +;m_cannon = "" +;m_caravan = "" +m_caravel = "stdsounds/inh2o.wav" +m_carrier = "stdsounds/inh2o.wav" +;m_catapult = "" +;m_cavalry = "" +;m_chariot = "" +;m_cruise_missile = "" +m_cruiser = "stdsounds/inh2o.wav" +;m_crusaders = "" +m_destroyer = "stdsounds/inh2o.wav" +;m_diplomat = "" +;m_dragoons = "" +;m_elephants = "" +;m_engineers = "" +;m_explorer = "" +;m_fanatics = "" +;m_fighter = "" +;m_freight = "" +m_frigate = "stdsounds/inh2o.wav" +m_galleon = "stdsounds/inh2o.wav" +;m_helicopter = "" +;m_horsemen = "" +;m_howitzer = "" +m_ironclad = "stdsounds/inh2o.wav" +;m_knights = "" +;m_legion = "" +;m_marines = "" +;m_mech_inf = "" +;m_musketeers = "" +;m_nuclear = "" +;m_paratroopers = "" +;m_partisan = "" +;m_phalanx = "" +;m_pikemen = "" +;m_riflemen = "" +;m_settlers = "" +;m_spy = "" +;m_stealth_bomber = "" +;m_stealth_fighter = "" +m_submarine = "stdsounds/inh2o.wav" +m_transport = "stdsounds/inh2o.wav" +m_trireme = "stdsounds/inh2o.wav" +;m_warriors = "" + +w_generic = "stdsounds/gong10.wav" +;w_apollo_program = "" +;w_asmiths_trading_co = "" +;w_colossus = "" +;w_copernicus_observatory = "" +;w_cure_for_cancer = "" +;w_darwins_voyage = "" +;w_eiffel_tower = "" +;w_great_library = "" +;w_great_wall = "" +;w_hanging_gardens = "" +;w_hoover_dam = "" +;w_isaac_newtons_college = "" +;w_js_bachs_cathedral = "" +;w_king_richards_crusade = "" +;w_leonardos_workshop = "" +;w_lighthouse = "" +;w_magellans_expedition = "" +;w_manhattan_project = "" +;w_marco_polos_embassy = "" +;w_michelangelos_chapel = "" +;w_oracle = "" +;w_pyramids = "" +;w_seti_program = "" +;w_shakespeares_theatre = "" +;w_statue_of_liberty = "" +;w_sun_tzus_war_academy = "" +;w_united_nations = "" +;w_womens_suffrage = "" + +;e_anarchy = "" +;e_broadcast_report = "" +;e_cancel_pact = "" +;e_city_aq_building = "" +;e_city_aqueduct = "" +;e_city_build = "" +;e_city_cantbuild = "" +;e_city_cma_release = "" +;e_city_disorder = "" +;e_city_famine = "" +;e_city_famine_feared = "" +;e_city_gran_throttle = "" +;e_city_growth = "" +;e_city_lost = "" +;e_city_love = "" +;e_city_may_soon_grow = "" +;e_city_normal = "" +;e_city_nuked = "" +;e_city_wonder_will_be_built = "" +;e_destroyed = "" +;e_dipl_incident = "" +e_diplomated = "stdsounds/cfx01.wav" +;e_first_contact = "" +;e_game_end = "" +e_game_start = "stdsounds/chineseprc09.wav" +;e_global_eco = "" +;e_hut_barb = "" +;e_hut_barb_city_near = "" +;e_hut_barb_killed = "" +;e_hut_city = "" +;e_hut_gold = "" +;e_hut_merc = "" +;e_hut_settler = "" +;e_hut_tech = "" +;e_imp_auctioned = "" +;e_imp_auto = "" +;e_imp_build = "" +;e_imp_buy = "" +e_imp_sold = "stdsounds/metbrk.wav" +;e_low_on_funds = "" +;e_message_wall = "" +e_my_diplomat = "stdsounds/cfx11.wav" +e_nation_selected = "stdsounds/plopp.wav" +;e_new_government = "" +;e_next_year = "" +;e_nuke = "" +;e_pollution = "" +;e_report = "" +;e_revolt_done = "" +;e_revolt_start = "" +;e_spaceship = "" +;e_tech_gain = "" +;e_tech_learned = "" +e_turn_bell = "stdsounds/chineseprc09.wav" +;e_unit_build = "" +;e_unit_buy = "" +;e_unit_lost = "" +;e_unit_lost_att = "" +;e_unit_upgraded = "" +;e_unit_win = "" +;e_unit_win_att = "" +;e_uprising = "" +;e_wonder_build = "" +;e_wonder_obsolete = "" +;e_wonder_started = "" +;e_wonder_stopped = "" +;e_worklist = "" + +music_start = "stdsounds/amb18.wav" diff --git a/games-strategy/widelands/ChangeLog b/games-strategy/widelands/ChangeLog new file mode 100644 index 0000000..b9e9b92 --- /dev/null +++ b/games-strategy/widelands/ChangeLog @@ -0,0 +1,56 @@ +# ChangeLog for games-strategy/widelands +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.10 2006/03/21 21:57:17 jokey Exp $ + +*widelands-0.0.9.5-r1 (21 Mar 2006) + + 21 Mar 2006; Markus Ullmann <jokey@gentoo.org> + +widelands-0.0.9.5-r1.ebuild: + Added locale support wrt bug #126874 + + 26 Feb 2006; Mark Loeser <halcy0n@gentoo.org> + +files/widelands-0.0.9.5-gcc41.patch, widelands-0.0.9.5.ebuild: + Add patch to fix compilation with gcc-4.1 by Konrad Campowsky <frollen AT cs + DOT tu-berlin DOT de>; bug #120082 + + 13 Jan 2006; Stefan Schweizer <genstef@gentoo.org> + +files/widelands-makefile.patch, widelands-0.0.9.5.ebuild: + Use user-CFLAGS thanks to Christopher Covington <covracer@gmail.com> in bug + 118358 + + 09 Jan 2006; Stefan Schweizer <genstef@gentoo.org> + widelands-0.0.9.5.ebuild: + Fix depends, add sdl-mixer, remove jpeg, thanks to Jonas Bergler + <jbergler@gmail.com> in bug 118381 + +*widelands-0.0.9.5 (07 Jan 2006) + + 07 Jan 2006; Stefan Schweizer <genstef@gentoo.org> + +widelands-0.0.9.5.ebuild: + Version bump thanks to Alexander Jenisch <nt-@gmx.de>, Anton Romanov + <theli@ukr.net>, Ben Hodgetts <ben@atomnet.co.uk> and Mr. Bones. + <mr_bones_@gentoo.org> in bug 114653, also add desktop entry with icon + + 29 Oct 2005; Luca Barbato <lu_zero@gentoo.org> widelands-0.0.9.ebuild: + fixed ppc osdep, still broken on gcc4 + + 15 Jun 2005; Chris Gianelloni <wolf31o2@gentoo.org> + widelands-0.0.9.ebuild: + Removed COPYING file. + + 05 May 2005; Michael Sterrett <mr_bones_@gentoo.org> + widelands-0.0.9.ebuild: + tidy ebuild + + 05 May 2005; Chris Gianelloni <wolf31o2@gentoo.org> : + Added Manifest (bad wolfie) and closing bug #91537. + +*widelands-0.0.9 (05 May 2005) + + 05 May 2005; Chris Gianelloni <wolf31o2@gentoo.org> + +files/widelands-0.0.9-amd64.patch, +metadata.xml, + +widelands-0.0.9.ebuild: + Initial import. Original ebuild by Elias Kunnas <elias_kunnas@welho.com>. + Ebuild modified by Christoph Brill <egore@gmx.de> and by myself. Original + amd64 patch idea by Peter Roozemaal <mathfox@xs4all.nl>. Closing bug #59674. + diff --git a/games-strategy/widelands/Manifest b/games-strategy/widelands/Manifest new file mode 100644 index 0000000..fcd34db --- /dev/null +++ b/games-strategy/widelands/Manifest @@ -0,0 +1,58 @@ +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 +SHA256 878939c6809b5de1e530d4770a9efd8ca309cd45d985e261b566ff159922d3b3 files/widelands-0.0.9-amd64.patch 425 +AUX widelands-0.0.9.5-gcc41.patch 304 RMD160 17d3a6486dfb78f6aa69c8fb90ec6809cb7d462e SHA1 7cf8fc8618043013d73fc2f363b2a0a60acc7d16 SHA256 92516fb795fa01fb87cff443fe37b86c4e2680f79ea60adee87c08bffe014acf +MD5 2ddf9d093211e7c32be95beff1ad6951 files/widelands-0.0.9.5-gcc41.patch 304 +RMD160 17d3a6486dfb78f6aa69c8fb90ec6809cb7d462e files/widelands-0.0.9.5-gcc41.patch 304 +SHA256 92516fb795fa01fb87cff443fe37b86c4e2680f79ea60adee87c08bffe014acf files/widelands-0.0.9.5-gcc41.patch 304 +AUX widelands-makefile.patch 728 RMD160 1df21cf0a8f511d9fbe0edc516b3193ee507bd32 SHA1 bdbcb4fe74a9d5822c50856cb79ffbecad17cd52 SHA256 a9f1db93b6f620e3185e8e9760c98a75b89062bc901a028f0fbecb11550bd6bc +MD5 3d7e00feeebcd47a5bf3ca35e1d5fe7e files/widelands-makefile.patch 728 +RMD160 1df21cf0a8f511d9fbe0edc516b3193ee507bd32 files/widelands-makefile.patch 728 +SHA256 a9f1db93b6f620e3185e8e9760c98a75b89062bc901a028f0fbecb11550bd6bc files/widelands-makefile.patch 728 +DIST widelands-b9-source.tar.bz2 2135320 RMD160 54e36dbefd1371b7e363443d32a08771aa883c63 SHA1 27ea04330cbfb5f24b03d88d994d03f476e80495 SHA256 95ce0d7798522b781f3c8a2d30b26b2b3ae710e493aac1e8758b922ecc2f52aa +DIST widelands-b9half-source.tar.bz2 10989969 RMD160 b9382690dfec3f789c0db7f0163f7392d889cfb0 SHA1 5aea1a225760265cd2b2d34a2fb35a7b875488c5 SHA256 a883b410fbe3089233926f3b2314fb3ccc9262b00a1aadbda9f7d73ea572ea9b +EBUILD widelands-0.0.9.5-r1.ebuild 1816 RMD160 d76c783bc765a41ddf728c27f4c2a2385f76c8fb SHA1 9f700b2222810f2fd4b690568f257c11d1e35d67 SHA256 517aff06459faac9ffe77df527b3311c27ef15fa86547aaf37187f4a42176b5d +MD5 a6d936e3b58cb0055e8b841a14e8b5d0 widelands-0.0.9.5-r1.ebuild 1816 +RMD160 d76c783bc765a41ddf728c27f4c2a2385f76c8fb widelands-0.0.9.5-r1.ebuild 1816 +SHA256 517aff06459faac9ffe77df527b3311c27ef15fa86547aaf37187f4a42176b5d widelands-0.0.9.5-r1.ebuild 1816 +EBUILD widelands-0.0.9.5.ebuild 1560 RMD160 2a75bfc8fa42644f8a5de9f2743e1034f6026a77 SHA1 993e807a1c91d21657f52541fda238747931078a SHA256 b45fcccfa22cd893f750a25ce7967ce359dac503be860028eb80ded7bf39cf9a +MD5 5371d06d8b89769075a903837dc711f0 widelands-0.0.9.5.ebuild 1560 +RMD160 2a75bfc8fa42644f8a5de9f2743e1034f6026a77 widelands-0.0.9.5.ebuild 1560 +SHA256 b45fcccfa22cd893f750a25ce7967ce359dac503be860028eb80ded7bf39cf9a widelands-0.0.9.5.ebuild 1560 +EBUILD widelands-0.0.9.5_p9999.ebuild 2043 RMD160 e69afd5023bf9cd83f7152a5f726570c7b06a50e SHA1 a0e9e9c9863cc577af50543ab51f56b7a2907f2a SHA256 178291e9785eaeeae96fc2ccf15f8957b55d51a4daa57a56c9e6538f552dbfa8 +MD5 c5cdeb54e560f4bca8a6c31ec10d568c widelands-0.0.9.5_p9999.ebuild 2043 +RMD160 e69afd5023bf9cd83f7152a5f726570c7b06a50e widelands-0.0.9.5_p9999.ebuild 2043 +SHA256 178291e9785eaeeae96fc2ccf15f8957b55d51a4daa57a56c9e6538f552dbfa8 widelands-0.0.9.5_p9999.ebuild 2043 +EBUILD widelands-0.0.9.ebuild 1169 RMD160 9aba54ccf891405d14c8ee7153f18f197526bb9e SHA1 9e3b651743505271a057a73c200e3a92622808fb SHA256 d956dd842d82e5490b1389124e72e3601985a3705ff81da0d405cc92e367cb45 +MD5 5973bcdbf97557cad2aaa063f7ba32e0 widelands-0.0.9.ebuild 1169 +RMD160 9aba54ccf891405d14c8ee7153f18f197526bb9e widelands-0.0.9.ebuild 1169 +SHA256 d956dd842d82e5490b1389124e72e3601985a3705ff81da0d405cc92e367cb45 widelands-0.0.9.ebuild 1169 +MISC ChangeLog 2150 RMD160 d6556518dab74a51b5011605afe0f5621622d745 SHA1 c9c17898d40e0570a6fc16fecc8d8a6a227143a7 SHA256 56ef1a738484539db33cf4ac26e1f90196aad58f9c4d2d7249ec6c054f8441ec +MD5 3b412efdabdc470d25d06689a05342c6 ChangeLog 2150 +RMD160 d6556518dab74a51b5011605afe0f5621622d745 ChangeLog 2150 +SHA256 56ef1a738484539db33cf4ac26e1f90196aad58f9c4d2d7249ec6c054f8441ec ChangeLog 2150 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 +SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MISC testlog 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 +MD5 d41d8cd98f00b204e9800998ecf8427e testlog 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 testlog 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 testlog 0 +MISC widelands-0.0.9.5_p9999.ebuild.orig 1986 RMD160 26a40b44bc5fb1311e7a9cb08f15cbc621d1c626 SHA1 79e8dcbba503696194e7490e4e8f4f84bc8dc619 SHA256 23d9b399533ef01b44a99b5ad05352289ae4edd5957b13cb497c0ba369d56c6e +MD5 45aad5f5147effcba18e31590cb6890b widelands-0.0.9.5_p9999.ebuild.orig 1986 +RMD160 26a40b44bc5fb1311e7a9cb08f15cbc621d1c626 widelands-0.0.9.5_p9999.ebuild.orig 1986 +SHA256 23d9b399533ef01b44a99b5ad05352289ae4edd5957b13cb497c0ba369d56c6e widelands-0.0.9.5_p9999.ebuild.orig 1986 +MD5 795b367ee106a214d4a2379bb5a9e8cb files/digest-widelands-0.0.9 265 +RMD160 ccbc92b1e0d269dbabed0491b1c4089f7f249eac files/digest-widelands-0.0.9 265 +SHA256 14eb157809bd76b4ca7ae07859d24c6efeb95fcb327d7750b0a32a5aff153adb files/digest-widelands-0.0.9 265 +MD5 e10d5f329e0eb06f44b8569526772ee8 files/digest-widelands-0.0.9.5 280 +RMD160 c9e6d18caecb85ff113b76c18da754e0da8c0af8 files/digest-widelands-0.0.9.5 280 +SHA256 65b319119c6b4b8653cadf0d12609cfdbb02d3126444a6a2621b99b569ad784a files/digest-widelands-0.0.9.5 280 +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 +MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-widelands-0.0.9.5_p9999 0 +RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-widelands-0.0.9.5_p9999 0 +SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-widelands-0.0.9.5_p9999 0 diff --git a/games-strategy/widelands/files/digest-widelands-0.0.9 b/games-strategy/widelands/files/digest-widelands-0.0.9 new file mode 100644 index 0000000..839cbaf --- /dev/null +++ b/games-strategy/widelands/files/digest-widelands-0.0.9 @@ -0,0 +1,3 @@ +MD5 0efaa379795496c05feee47de27b5dae widelands-b9-source.tar.bz2 2135320 +RMD160 54e36dbefd1371b7e363443d32a08771aa883c63 widelands-b9-source.tar.bz2 2135320 +SHA256 95ce0d7798522b781f3c8a2d30b26b2b3ae710e493aac1e8758b922ecc2f52aa widelands-b9-source.tar.bz2 2135320 diff --git a/games-strategy/widelands/files/digest-widelands-0.0.9.5 b/games-strategy/widelands/files/digest-widelands-0.0.9.5 new file mode 100644 index 0000000..ba1068b --- /dev/null +++ b/games-strategy/widelands/files/digest-widelands-0.0.9.5 @@ -0,0 +1,3 @@ +MD5 7bced82bda4b83d884da3e5b0143b2b4 widelands-b9half-source.tar.bz2 10989969 +RMD160 b9382690dfec3f789c0db7f0163f7392d889cfb0 widelands-b9half-source.tar.bz2 10989969 +SHA256 a883b410fbe3089233926f3b2314fb3ccc9262b00a1aadbda9f7d73ea572ea9b widelands-b9half-source.tar.bz2 10989969 diff --git a/games-strategy/widelands/files/digest-widelands-0.0.9.5-r1 b/games-strategy/widelands/files/digest-widelands-0.0.9.5-r1 new file mode 100644 index 0000000..ba1068b --- /dev/null +++ b/games-strategy/widelands/files/digest-widelands-0.0.9.5-r1 @@ -0,0 +1,3 @@ +MD5 7bced82bda4b83d884da3e5b0143b2b4 widelands-b9half-source.tar.bz2 10989969 +RMD160 b9382690dfec3f789c0db7f0163f7392d889cfb0 widelands-b9half-source.tar.bz2 10989969 +SHA256 a883b410fbe3089233926f3b2314fb3ccc9262b00a1aadbda9f7d73ea572ea9b widelands-b9half-source.tar.bz2 10989969 diff --git a/games-strategy/widelands/files/digest-widelands-0.0.9.5_p9999 b/games-strategy/widelands/files/digest-widelands-0.0.9.5_p9999 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/games-strategy/widelands/files/digest-widelands-0.0.9.5_p9999 diff --git a/games-strategy/widelands/files/widelands-0.0.9-amd64.patch b/games-strategy/widelands/files/widelands-0.0.9-amd64.patch new file mode 100644 index 0000000..c290314 --- /dev/null +++ b/games-strategy/widelands/files/widelands-0.0.9-amd64.patch @@ -0,0 +1,14 @@ +diff -urN widelands.orig/src/machdep.h widelands/src/machdep.h +--- widelands.orig/src/machdep.h 2005-05-04 22:31:16.000000000 -0400 ++++ widelands/src/machdep.h 2005-05-04 22:31:37.000000000 -0400 +@@ -36,6 +36,10 @@ + #undef P_BIG_ENDIAN + #define P_LITTLE_ENDIAN + #undef P_ALIGNMENT ++#elif defined (__x86_64__) ++#undef P_BIG_ENDIAN ++#define P_LITTLE_ENDIAN ++#undef P_ALIGNMENT + #else + #error architecture not supported + #endif diff --git a/games-strategy/widelands/files/widelands-0.0.9.5-gcc41.patch b/games-strategy/widelands/files/widelands-0.0.9.5-gcc41.patch new file mode 100644 index 0000000..493eaf0 --- /dev/null +++ b/games-strategy/widelands/files/widelands-0.0.9.5-gcc41.patch @@ -0,0 +1,5 @@ +--- src/ui/ui_fs_menus/fullscreen_menu_options.h.orig 2006-01-23 21:12:33.000000000 +0100 ++++ src/ui/ui_fs_menus/fullscreen_menu_options.h 2006-01-23 21:22:31.000000000 +0100 +@@ -66 +66 @@ +- Options_Ctrl::Options_Struct Fullscreen_Menu_Options::get_values(); ++ Options_Ctrl::Options_Struct get_values(); diff --git a/games-strategy/widelands/files/widelands-makefile.patch b/games-strategy/widelands/files/widelands-makefile.patch new file mode 100644 index 0000000..da96caf --- /dev/null +++ b/games-strategy/widelands/files/widelands-makefile.patch @@ -0,0 +1,14 @@ +--- widelands-b9half/Makefile.orig 2006-01-13 00:19:12.000000000 +0100 ++++ widelands-b9half/Makefile 2006-01-13 00:19:29.000000000 +0100 +@@ -160,9 +160,9 @@ + # Object files and directories, final compilation flags + + OBJECT_DIR:=src/$(TARGET)-$(BUILD) +-CFLAGS:=-Wall $(shell $(SDL_CONFIG) --cflags) $(ADD_CFLAGS) ++CFLAGS:=-Wall $(shell $(SDL_CONFIG) --cflags) $(ADD_CFLAGS) $(CFLAGS) + CXXFLAGS:=$(CFLAGS) +-LDFLAGS:=$(shell $(SDL_CONFIG) --libs) $(ADD_LDFLAGS) -lz -lpng -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_net ++LDFLAGS:=$(shell $(SDL_CONFIG) --libs) $(ADD_LDFLAGS) -lz -lpng -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_net $(LDFLAGS) + + ############################################################################## + # Building diff --git a/games-strategy/widelands/metadata.xml b/games-strategy/widelands/metadata.xml new file mode 100644 index 0000000..d3c2cc9 --- /dev/null +++ b/games-strategy/widelands/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-strategy/widelands/testlog b/games-strategy/widelands/testlog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/games-strategy/widelands/testlog diff --git a/games-strategy/widelands/widelands-0.0.9.5-r1.ebuild b/games-strategy/widelands/widelands-0.0.9.5-r1.ebuild new file mode 100644 index 0000000..35ca9b6 --- /dev/null +++ b/games-strategy/widelands/widelands-0.0.9.5-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.9.5-r1.ebuild,v 1.1 2006/03/21 21:57:17 jokey Exp $ + +inherit eutils games flag-o-matic + +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://widelands.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-b${PV:4:1}half-source.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug nls" + +DEPEND="media-libs/libpng + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN}-b9half + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/widelands-0.0.9-amd64.patch" + epatch "${FILESDIR}/widelands-makefile.patch" + epatch "${FILESDIR}/widelands-0.0.9.5-gcc41.patch" + sed -i -e "s:__ppc__:__PPC__:g" "${S}/src/machdep.h" || die "sed failed" + + if use nls ; then + cd ${S}/locale + cp ../utils/*.py . + fi +} + +src_compile() { + filter-flags -fomit-frame-pointer + use debug || export BUILD="release" + use elibc_glibc && export IMPLICIT_LIBINTL=1 + emake || die "emake failed" + unset BUILD IMPLICIT_LIBINTL + + if use nls ; then + cd ${S}/locale + ./buildcat.py + rm *.p* .cvsignore tmp + fi +} + +src_install() { + local dir=${GAMES_DATADIR}/${PN} + + insinto "${dir}" + + if use nls ; then + doins -r fonts maps pics tribes worlds campaigns locale || die "doins failed" + else + doins -r fonts maps pics tribes worlds campaigns || die "doins failed" + fi + exeinto "${dir}" + doexe ${PN} || die "copying widelands" + games_make_wrapper widelands ./widelands "${dir}" + dodoc AUTHORS ChangeLog README.developers + + newicon pics/wl-ico-48.png widelands.png + make_desktop_entry widelands Widelands widelands.png + prepgamesdirs +} diff --git a/games-strategy/widelands/widelands-0.0.9.5.ebuild b/games-strategy/widelands/widelands-0.0.9.5.ebuild new file mode 100644 index 0000000..750b636 --- /dev/null +++ b/games-strategy/widelands/widelands-0.0.9.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.9.5.ebuild,v 1.8 2006/02/26 06:44:28 halcy0n Exp $ + +inherit eutils games flag-o-matic + +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://widelands.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-b${PV:4:1}half-source.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug" + +DEPEND="media-libs/libpng + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN}-b9half + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/widelands-0.0.9-amd64.patch" + epatch "${FILESDIR}/widelands-makefile.patch" + epatch "${FILESDIR}/widelands-0.0.9.5-gcc41.patch" + sed -i -e "s:__ppc__:__PPC__:g" "${S}/src/machdep.h" || die "sed failed" +} + +src_compile() { + filter-flags -fomit-frame-pointer + use debug || export BUILD="release" + use elibc_glibc && export IMPLICIT_LIBINTL=1 + emake || die "emake failed" + unset BUILD IMPLICIT_LIBINTL +} + +src_install() { + local dir=${GAMES_DATADIR}/${PN} + + insinto "${dir}" + doins -r fonts maps pics tribes worlds campaigns \ + || die "doins failed" + exeinto "${dir}" + doexe ${PN} || die "copying widelands" + games_make_wrapper widelands ./widelands "${dir}" + dodoc AUTHORS ChangeLog README.developers + + newicon pics/wl-ico-48.png widelands.png + make_desktop_entry widelands Widelands widelands.png + prepgamesdirs +} diff --git a/games-strategy/widelands/widelands-0.0.9.5_p9999.ebuild b/games-strategy/widelands/widelands-0.0.9.5_p9999.ebuild new file mode 100644 index 0000000..a545ef3 --- /dev/null +++ b/games-strategy/widelands/widelands-0.0.9.5_p9999.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.9.5-r1.ebuild,v 1.1 2006/03/21 21:57:17 jokey Exp $ + +inherit eutils games subversion flag-o-matic + +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://widelands.sourceforge.net/" +#SRC_URI="mirror://sourceforge/${PN}/${PN}-b${PV:4:1}half-source.tar.bz2" +#ECVS_SERVER="widelands.cvs.sourceforge.net:/cvsroot/widelands" +#ECVS_MODULE="widelands" +ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/widelands/trunk" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug ggz nls" + +DEPEND="media-libs/libpng + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib + dev-lang/python + ggz? ( dev-games/libggz )" +RDEPEND=${DEPEND} + +src_compile() { + # sandbox fixing + sed -i -e "s:SetOption('implicit_cache', 1):\0"\ +"\nenv = Environment()\nenv.SConsignFile()\n:" -e "s:env.Append(PATH=\[\]):\0"\ +"\nenv.Append(CCFLAGS='${CXXFLAGS}')\nenv.Append(LINKFLAGS='${LDFLAGS}'):" \ + -e "s:LINKFLAGS='-s':LINKFLAGS='':" SConstruct + + sed -i -e "s:#ifdef DEBUG:#if 1:" src/error.h + + # locale stuff + sed -i "s:LOCALE_PATH \"locale\":LOCALE_PATH \"${GAMES_DATADIR}/${PN}/locale\":" src/constants.h + use nls && sed -i "s:locale/??_??:locale:" SConstruct + + # seems only debug is tested here + #use debug && + sconsopts="build=debug" #|| sconsopts="build=release" + use ggz && sconsopts="${sconsopts} use_ggz=1" + ./build-widelands.sh ${sconsopts} || die "scons ${sconsopts} failed" + + if use nls; then + cd ${S}/locale + ../utils/buildcat.py + rm SConscript *.p* .cvsignore + fi +} + +src_install() { + ./build-widelands.sh install_prefix=${D}/usr \ + datadir=${D}${GAMES_DATADIR}/${PN} \ + bindir=${D}${GAMES_BINDIR} \ + install || die "scons install failed" + dodoc CREDITS ChangeLog README.developers + + newicon pics/wl-ico-48.png widelands.png + make_desktop_entry widelands Widelands widelands.png + prepgamesdirs +} diff --git a/games-strategy/widelands/widelands-0.0.9.5_p9999.ebuild.orig b/games-strategy/widelands/widelands-0.0.9.5_p9999.ebuild.orig new file mode 100644 index 0000000..ad906d9 --- /dev/null +++ b/games-strategy/widelands/widelands-0.0.9.5_p9999.ebuild.orig @@ -0,0 +1,63 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.9.5-r1.ebuild,v 1.1 2006/03/21 21:57:17 jokey Exp $ + +inherit eutils games subversion + +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://widelands.sourceforge.net/" +#SRC_URI="mirror://sourceforge/${PN}/${PN}-b${PV:4:1}half-source.tar.bz2" +#ECVS_SERVER="widelands.cvs.sourceforge.net:/cvsroot/widelands" +#ECVS_MODULE="widelands" +ESVN_REPO_URI="https://svn.sourceforge.net/svnroot/widelands/trunk" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug ggz nls" + +DEPEND="media-libs/libpng + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib + dev-util/scons + ggz? ( dev-games/libggz )" +RDEPEND=${DEPEND} + +src_compile() { + # sandbox fixing + sed -i -e "s:SetOption('implicit_cache', 1):\0\nenv = Environment()\nenv.SConsignFile():" SConstruct + + # gentoo users can set build flags themselves + sed -i -e "s:, '-ffast-math', '-funroll-loops'::" \ + -e "s:-fexpensive-optimizations:${CXXFLAGS--O2}:" -e "s:-O3::" \ + -e "s:LINKFLAGS='-s':LINKFLAGS='${LDFLAGS}':" -e "s:-O0::" \ + SConstruct + sed -i "s:LOCALE_PATH \"locale\":LOCALE_PATH \"${GAMES_DATADIR}/${PN}/locale\":" src/constants.h + use nls && sed -i "s:locale/??_??:locale:" SConstruct + + use debug && sconsopts="build=debug" || sconsopts="build=release" + use ggz && sconsopts="${sconsopts} use_ggz=1" + scons ${sconsopts} || die "scons ${sconsopts} failed" + + if use nls; then + cd ${S}/locale + ../utils/buildcat.py + rm SConscript *.p* .cvsignore + fi +} + +src_install() { + scons install_prefix=${D}/usr \ + datadir=${D}${GAMES_DATADIR}/${PN} \ + bindir=${D}${GAMES_BINDIR} \ + install || die "scons install failed" + dodoc CREDITS ChangeLog README.developers + + newicon pics/wl-ico-48.png widelands.png + make_desktop_entry widelands Widelands widelands.png + prepgamesdirs +} diff --git a/games-strategy/widelands/widelands-0.0.9.ebuild b/games-strategy/widelands/widelands-0.0.9.ebuild new file mode 100644 index 0000000..0f38cfd --- /dev/null +++ b/games-strategy/widelands/widelands-0.0.9.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.9.ebuild,v 1.4 2005/10/29 12:37:52 lu_zero Exp $ + +inherit eutils games + +DESCRIPTION="A game similar to Settlers 2" +HOMEPAGE="http://widelands.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-b${PV:4:4}-source.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug" + +DEPEND="media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-net + media-libs/sdl-ttf + sys-libs/zlib + media-libs/jpeg + media-libs/libpng" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}/${P}-amd64.patch" + sed -i -e "s:__ppc__:__PPC__:g" ${S}/src/machdep.h +} + +src_compile() { + use debug || export BUILD="release" + emake || die "emake failed" + unset BUILD +} + +src_install() { + local dir=${GAMES_DATADIR}/${PN} + + insinto "${dir}" + doins -r fonts maps pics tribes worlds campaigns README \ + || die "doins failed" + exeinto "${dir}" + doexe ${PN} || die "copying widelands" + games_make_wrapper widelands ./widelands "${dir}" + dodoc AUTHORS ChangeLog README + prepgamesdirs +} |