From: <lu...@us...> - 2007-09-29 06:47:49
|
Revision: 7349 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=7349&view=rev Author: luke-jr Date: 2007-09-28 23:47:50 -0700 (Fri, 28 Sep 2007) Log Message: ----------- live.eclass -- please test Added Paths: ----------- armagetronad/trunk/build/gentoo/overlay/eclass/ armagetronad/trunk/build/gentoo/overlay/eclass/live.eclass armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7348.ebuild armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7348.ebuild Copied: armagetronad/trunk/build/gentoo/overlay/eclass/live.eclass (from rev 7348, armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7326.ebuild) =================================================================== --- armagetronad/trunk/build/gentoo/overlay/eclass/live.eclass (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/eclass/live.eclass 2007-09-29 06:47:50 UTC (rev 7349) @@ -0,0 +1,129 @@ +EXPORT_FUNCTIONS pkg_postinst + +live_svn_currentrev() { + # NOTE: we use $(which sed) to pass QA checks + LC_ALL=C svn info "${1}" | + "$(which sed)" ' + s,^Last Changed Rev: \([0-9]\+\)$,\1, + t + d + ' +} + +live_svn_currentrevlist() { + local rl= repo_uri repo thisrev + for repo in "${ESVN_REPO_URI[@]}"; do + repo_uri="$(subversion__get_repository_uri "${repo}")" + thisrev="$(live_svn_currentrev "${repo_uri}")" + [ -z "$thisrev" ] && return + rl="$rl:$thisrev" + done + echo "${rl:1}" +} + +live_want_update() { + __live_why= + if [ -z "${LIVE_UPDATES}" ]; then + local LIVE_UPDATES + if has ManualSCM ${FEATURES}; then + LIVE_UPDATES=manual + elif [ "${SUBVERSION_REVBUMP}" = 'no' ]; then + LIVE_UPDATES=manual + else + LIVE_UPDATES=revision + fi + fi + + [ "${LIVE_UPDATES}" = 'never' ] && + return 1 # always false + [ "${LIVE_UPDATES}" = 'manual' ] && + return 1 # always false + [ "${LIVE_UPDATES}" = 'always' ] && + __live_why='-Always' && + return 0 # always true + + # Then/Now logic + local ENVFILE="${ROOT}/var/db/pkg/${CATEGORY}/${P}/environment.bz2" + [ -r "${ENVFILE}" ] || return 0 # true if no earlier install + local Then Now + + case "${LIVE_UPDATES}" in + revision) + Then="$(bzgrep -m1 '^__live_revision=' "${ENVFILE}" | cut -d'=' -f'2-')" + Now="$(live_svn_currentrevlist)" + __live_why="-r${Now}" + ;; + date*) + local format='%F' + [ -n "${LIVE_UPDATES:4}" ] && format=+"${LIVE_UPDATES:4}" + Then="$(date -d"$(eval "$(bzgrep -m1 '^__live_date=' "${ENVFILE}")"; echo "${__live_date}")" "+${format}")" + Now="$(date "+${format}")" + __live_why="-date${Now/ /_}" + ;; + esac + + [ -z "${Now}" ] && return 1 # false if we can't figure it out + [ "${Then}" != "${Now}" ] + return $? +} + +live_record_build() { + __live_date="$(TZ=UTC LC_ALL=C date)" + unset __live_revision +} +live_record_repo() { + local repo_uri="$(subversion__get_wc_path "${1}")" + local wc_path="$(subversion__get_wc_path "${repo_uri}")" + local lcr="$(live_svn_currentrev "${wc_path}")" + __live_revision="${__live_revision}${__live_revision+:}${lcr}" +} + +live_src_unpack() { + local repo + live_record_build + for repo in "${ESVN_REPO_URI[@]}"; do + subversion_fetch "${repo}" || die "${ESVN}: unknown problem occurred in subversion_fetch for ${repo}." + live_record_repo "${repo}" + done + subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap." +} + +live() { + # Activate Live if appropriate +[ "$EBUILD_PHASE" == 'depend' ] && + live_want_update && + IUSE="$IUSE z~Live${__live_why}" + # 'z~' to make sure it's listed last :) + + # Disable caching to get LIVE_UPDATES changes effective + addwrite "${BASH_SOURCE[0]}" + touch "${BASH_SOURCE[0]}" + + true +} + +live_pkg_postinst() { + [ "$SUBVERSION_REVBUMP" == "no" ] && return + has ManualSCM ${FEATURES} && return + [ "${LIVE_UPDATES}" = 'never' ] && return + [ "${LIVE_UPDATES}" = 'manual' ] && return + ewarn + ewarn "${CATEGORY}/${P} supports automatic remerging." + ewarn + ewarn 'This feature is UNSUPPORTED by Gentoo, please DO NOT report ANY' + ewarn ' related bugs to them, but rather to us via the forum:' + ewarn ' http://forums.armagetronad.net' + ewarn + ewarn 'To control how often your live packages are updates, set' + ewarn ' the LIVE_UPDATES variable in your make.conf to:' + ewarn ' manual - Disables this feature' + ewarn ' revision - Update when there is a new revision' + ewarn ' date - Update every day' + ewarn ' date%Y%m - Update once a month' + ewarn ' (other variants also possible)' + ewarn ' always - Always treat as an update' + ewarn 'To make your change take effect immediately, you need to run:' + ewarn ' emerge --metadata' + ewarn + ebeep 5 +} Copied: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7348.ebuild (from rev 7348, armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7326.ebuild) =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7348.ebuild (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7348.ebuild 2007-09-29 06:47:50 UTC (rev 7349) @@ -0,0 +1,181 @@ +# 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.24 2006/05/05 13:55:13 luke-jr Exp $ + +inherit flag-o-matic eutils games subversion live + +DESCRIPTION="3D light cycles like in the movie TRON" +HOMEPAGE="http://armagetronad.net/" + +MY_PN="armagetronad" +OPT_CLIENTSRC=" + 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 + ) +" +ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/branches/0.2.8/${MY_PN}" +SRC_URI=" + opengl? ( ${OPT_CLIENTSRC} ) + !dedicated? ( ${OPT_CLIENTSRC} ) +" + +LICENSE="GPL-2" +SLOT="live" +KEYWORDS="amd64 ppc sparc x86" +IUSE="debug dedicated linguas_es linguas_en moviepack moviesounds opengl" + +ESVN_PROJECT="${P/_*}" + +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.11 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} ) +" +OPT_CLIENTDEPS=" + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) +" +DEPEND="${RDEPEND} + opengl? ( ${OPT_CLIENTDEPS} ) + !dedicated? ( ${OPT_CLIENTDEPS} ) +" + +S="${WORKDIR}/${MY_PN}" + +pkg_setup() { + if use debug; then + ewarn + ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' + ewarn ' players to chat debugging information, debugging lines to be drawn' + ewarn ' on the grid and at wall angles, and probably most relevant to your' + ewarn ' decision to keep the USE flag:' + ewarn ' FULL SCREEN MODE AND SOUND WILL BE DISABLED' + ewarn + ewarn "If you don't like this, add this line to /etc/portage/package.use:" + ewarn ' games-action/armagetronad -debug' + ewarn + ewarn 'If you ignore this warning and complain about any of the above' + ewarn ' effects, the Armagetron Advanced team will either ignore you or' + ewarn ' delete your complaint.' + ewarn + ebeep 5 + fi +} + +src_unpack() { + for f in ${A}; do + unpack "$f" + done + live_src_unpack + rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" +} + +aabuild() { + MyBUILDDIR="${WORKDIR}/build-$1" + mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario + cd "${MyBUILDDIR}" + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + [ "$1" == "server" ] && ded='-dedicated' || ded='' + GameDir="${MY_PN}${ded}${GameSLOT}" + ECONF_SOURCE="${S}" \ + egamesconf ${myconf} \ + --disable-binreloc \ + --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ + --disable-master \ + --enable-main \ + --disable-krawall \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + "${@:2}" || die "egamesconf($1) failed" + emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" +} + +src_compile() { + [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh + + # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" + dodir "${GAMES_SYSCONFDIR}" + dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 + cd "${WORKDIR}/build-client" + 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + fi + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* + dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error + prepgamesdirs +} + +live Copied: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7348.ebuild (from rev 7348, armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7326.ebuild) =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7348.ebuild (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7348.ebuild 2007-09-29 06:47:50 UTC (rev 7349) @@ -0,0 +1,195 @@ +# 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.24 2006/05/05 13:55:13 luke-jr Exp $ + +inherit flag-o-matic eutils games subversion live + +DESCRIPTION="3D light cycles like in the movie TRON" +HOMEPAGE="http://armagetronad.net/" + +MY_PN="armagetronad" +OPT_CLIENTSRC=" + 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 + ) +" +ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/trunk/${MY_PN}" +SRC_URI=" + opengl? ( ${OPT_CLIENTSRC} ) + !dedicated? ( ${OPT_CLIENTSRC} ) +" + +LICENSE="GPL-2" +SLOT="experimental-live" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug dedicated linguas_es linguas_en moviepack moviesounds opengl ruby" + +GLDEPS=" + || ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/jpeg + media-libs/libpng + media-libs/ftgl +" +RDEPEND=" + >=dev-libs/libxml2-2.6.11 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} ) + ruby? ( virtual/ruby >=dev-lang/swig-1.3.29 ) + >=dev-libs/boost-1.33.1 +" +OPT_CLIENTDEPS=" + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) +" +DEPEND="${RDEPEND} + opengl? ( ${OPT_CLIENTDEPS} ) + !dedicated? ( ${OPT_CLIENTDEPS} ) +" + +S="${WORKDIR}/${MY_PN}" + +pkg_setup() { + if use ruby && ! built_with_use dev-lang/swig ruby ; then + eerror "You are trying to compile ${CATEGORY}/${PF} with the \"ruby\" USE flag enabled." + eerror "However, $(best_version dev-lang/swig) was compiled with the ruby flag disabled." + eerror + eerror "You must either disable this use flag, or recompile" + eerror "$(best_version dev-lang/swig) with this ruby use flag enabled." + die 'swig missing ruby' + fi + if use debug; then + ewarn + ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' + ewarn ' players to chat debugging information, debugging lines to be drawn' + ewarn ' on the grid and at wall angles, and probably most relevant to your' + ewarn ' decision to keep the USE flag:' + ewarn ' FULL SCREEN MODE WILL BE DISABLED' + ewarn + ewarn "If you don't like this, add this line to /etc/portage/package.use:" + ewarn ' games-action/armagetronad -debug' + ewarn + ewarn 'If you ignore this warning and complain about any of the above' + ewarn ' effects, the Armagetron Advanced team will either ignore you or' + ewarn ' delete your complaint.' + ewarn + ebeep 5 + fi + ewarn 'Please note that this is an EXPERIMENTAL RELEASE of Armagetron Advanced.' + ewarn 'It has known bugs, and is not meant to be well-tested or stable.' + ewarn ' PLAY AT YOUR OWN RISK' +} + +src_unpack() { + for f in ${A}; do + unpack "$f" + done + live_src_unpack + rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" +} + +aabuild() { + MyBUILDDIR="${WORKDIR}/build-$1" + mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario + cd "${MyBUILDDIR}" + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + [ "$1" == "server" ] && ded='-dedicated' || ded='' + GameDir="${MY_PN}${ded}${GameSLOT}" + ECONF_SOURCE="${S}" \ + egamesconf ${myconf} \ + --disable-binreloc \ + --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ + --disable-master \ + --enable-main \ + --disable-krawall \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + $(use_enable ruby) \ + "${@:2}" || die "egamesconf($1) failed" + emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" +} + +src_compile() { + [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh + + # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" + dodir "${GAMES_SYSCONFDIR}" + dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 + cd "${WORKDIR}/build-client" + 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + fi + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* + dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error + prepgamesdirs +} + +live This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lu...@us...> - 2007-11-14 15:15:49
|
Revision: 7397 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=7397&view=rev Author: luke-jr Date: 2007-11-14 07:15:45 -0800 (Wed, 14 Nov 2007) Log Message: ----------- IUSE=glew Modified Paths: -------------- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc Added Paths: ----------- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/files/digest-armagetronad-live-0.3_alpha7397 Modified: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest 2007-11-14 12:48:55 UTC (rev 7396) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest 2007-11-14 15:15:45 UTC (rev 7397) @@ -9,10 +9,10 @@ MD5 e56c9c34d3c06c2d28b797e97034703b armagetronad-live-0.2.8_alpha7326.ebuild 6470 RMD160 cd7f3f1cb87602072a6a32168b06d3149009ef28 armagetronad-live-0.2.8_alpha7326.ebuild 6470 SHA256 7d20a703bd08ad1393776f5ef1dacafc42bcedafd8f4f8a525756fd2e733193a armagetronad-live-0.2.8_alpha7326.ebuild 6470 -EBUILD armagetronad-live-0.2.8_alpha7348.ebuild 5861 RMD160 ffef6144faba15a5d89ca9ad8a47abfbff0593ac SHA1 10a9fa4fa73707faa86483f2f2b9222f89109b17 SHA256 8c721bdc0be03cc68fe3cb047828c17c9c846778e9a17e3737df5c5b88736c20 -MD5 5b65aaaa296ea2e758f55b44a82f083f armagetronad-live-0.2.8_alpha7348.ebuild 5861 -RMD160 ffef6144faba15a5d89ca9ad8a47abfbff0593ac armagetronad-live-0.2.8_alpha7348.ebuild 5861 -SHA256 8c721bdc0be03cc68fe3cb047828c17c9c846778e9a17e3737df5c5b88736c20 armagetronad-live-0.2.8_alpha7348.ebuild 5861 +EBUILD armagetronad-live-0.2.8_alpha7348.ebuild 5931 RMD160 b07f886fd63d0bdcda8c51b77bab5fe594f5827e SHA1 0de6a9bc89be3cdfa0f0d5fb11b273183f74f5fb SHA256 17cac941639f8336aed341f22318ccf87bd2de7dea091b4a990ee7f8a2c6eed3 +MD5 b9082d630894bfd1a843e0ca52ddccbe armagetronad-live-0.2.8_alpha7348.ebuild 5931 +RMD160 b07f886fd63d0bdcda8c51b77bab5fe594f5827e armagetronad-live-0.2.8_alpha7348.ebuild 5931 +SHA256 17cac941639f8336aed341f22318ccf87bd2de7dea091b4a990ee7f8a2c6eed3 armagetronad-live-0.2.8_alpha7348.ebuild 5931 EBUILD armagetronad-live-0.3_alpha6693.ebuild 7844 RMD160 794dd9cab96269b5e5c62f22d962e1e5be67c78d SHA1 090f24717ec8a17917ea873a2016845d7a03e434 SHA256 a79988eb0efaa456e5d06e04a64decc341d44c6fcb4bd67520799382fe9ccb11 MD5 a4853f876787562fc66e6c2bdd3e76a1 armagetronad-live-0.3_alpha6693.ebuild 7844 RMD160 794dd9cab96269b5e5c62f22d962e1e5be67c78d armagetronad-live-0.3_alpha6693.ebuild 7844 @@ -21,14 +21,26 @@ MD5 aab69ee2efb1664f9eb9d6d7de3e77fd armagetronad-live-0.3_alpha7326.ebuild 7208 RMD160 c91137a22b90ed9081dd497b1e314e7cdaf70b9f armagetronad-live-0.3_alpha7326.ebuild 7208 SHA256 712c126ddd4a647fe912cffbe09c207adaaeff77a8dc637f44c62a3fab9e4097 armagetronad-live-0.3_alpha7326.ebuild 7208 -EBUILD armagetronad-live-0.3_alpha7348.ebuild 6599 RMD160 f6f98ea321f188b32e10990329de7f8b975f2782 SHA1 65e0fa3c9f6555eac362d3e3d039a9afe916f3a4 SHA256 049295654c52a5e464850571d0a7b59f8d09004dfb209dbd0b452b6a31c644b5 -MD5 5d3be60647c766a70df508ca398ae22b armagetronad-live-0.3_alpha7348.ebuild 6599 -RMD160 f6f98ea321f188b32e10990329de7f8b975f2782 armagetronad-live-0.3_alpha7348.ebuild 6599 -SHA256 049295654c52a5e464850571d0a7b59f8d09004dfb209dbd0b452b6a31c644b5 armagetronad-live-0.3_alpha7348.ebuild 6599 +EBUILD armagetronad-live-0.3_alpha7348.ebuild 6669 RMD160 942f1ea19b54166335796b049d075f3bb70accf9 SHA1 4e01a8785aec9db6e2a992bffd8b5fc0d5ab44dc SHA256 4d6829dc4b048b46152fda95d9254c16bb1a163d48bade420b2e1946f9a8d73c +MD5 58e1cc3f69bf2fe3f268f8ba19b65aac armagetronad-live-0.3_alpha7348.ebuild 6669 +RMD160 942f1ea19b54166335796b049d075f3bb70accf9 armagetronad-live-0.3_alpha7348.ebuild 6669 +SHA256 4d6829dc4b048b46152fda95d9254c16bb1a163d48bade420b2e1946f9a8d73c armagetronad-live-0.3_alpha7348.ebuild 6669 +EBUILD armagetronad-live-0.3_alpha7397.ebuild 6724 RMD160 b42dc655bb42eb10a2c3566e56ae74d133bacb45 SHA1 950d9662ac0af661d5c7059bd224271f503eb9ba SHA256 d6b503bea1c7707b9591c64d24892d72ea246abec1852f9347e19d89ade8036e +MD5 bb1e42d3b0334b4cdd3301c39e777a57 armagetronad-live-0.3_alpha7397.ebuild 6724 +RMD160 b42dc655bb42eb10a2c3566e56ae74d133bacb45 armagetronad-live-0.3_alpha7397.ebuild 6724 +SHA256 d6b503bea1c7707b9591c64d24892d72ea246abec1852f9347e19d89ade8036e armagetronad-live-0.3_alpha7397.ebuild 6724 MISC ChangeLog 133 RMD160 99f736c47fd4d22c98995e50c943ecb7adce7eda SHA1 256954961b882b13e0c28d86466f856da8e144ca SHA256 23b53e7c596ca0e27fb503226a25724940c5e94336e43859a2185449ced7c730 MD5 d9ac85e3bd2c4a2487c37eb7a15117bb ChangeLog 133 RMD160 99f736c47fd4d22c98995e50c943ecb7adce7eda ChangeLog 133 SHA256 23b53e7c596ca0e27fb503226a25724940c5e94336e43859a2185449ced7c730 ChangeLog 133 +MISC armagetronad-live-0.2.8_alpha7348.ebuild~ 6023 RMD160 967b98d0410c611d19778788db843cd384ebfc73 SHA1 c4f728da24601ccdc5342f83ca9cbe19f8ebe9ac SHA256 a6ad43608d33e9b39fec84ef356d4fefef73930a130357661be577abf4985250 +MD5 a3b6e26715e0541430428bc92cd191a2 armagetronad-live-0.2.8_alpha7348.ebuild~ 6023 +RMD160 967b98d0410c611d19778788db843cd384ebfc73 armagetronad-live-0.2.8_alpha7348.ebuild~ 6023 +SHA256 a6ad43608d33e9b39fec84ef356d4fefef73930a130357661be577abf4985250 armagetronad-live-0.2.8_alpha7348.ebuild~ 6023 +MISC armagetronad-live-0.3_alpha7348.ebuild~ 6761 RMD160 d16c1baa6fa54f796971047f7e58a5735f142068 SHA1 ed32f4aab83f9f26e2b057c44b885f09fe61a203 SHA256 5424df19e1fa2d0b3df7e0bd117a00576a769164652b478ff6489e96febf4a74 +MD5 59feb220550d4d6e47690c46446bb4e3 armagetronad-live-0.3_alpha7348.ebuild~ 6761 +RMD160 d16c1baa6fa54f796971047f7e58a5735f142068 armagetronad-live-0.3_alpha7348.ebuild~ 6761 +SHA256 5424df19e1fa2d0b3df7e0bd117a00576a769164652b478ff6489e96febf4a74 armagetronad-live-0.3_alpha7348.ebuild~ 6761 MISC metadata.xml 606 RMD160 4e4e018cd58915728de767ac9f225e963bade7c6 SHA1 7b666a612c8a68dc80b1a493bc68c85656bd8a3b SHA256 cc7cf91fde84ba405545cd048c420856c896494de3b33d70b3d869c7f0ed3f37 MD5 7cc188b5056c32ab3fa48eb850c82cd5 metadata.xml 606 RMD160 4e4e018cd58915728de767ac9f225e963bade7c6 metadata.xml 606 @@ -51,3 +63,6 @@ MD5 78fb2de6a9611eb1fb2aa970cba6dba9 files/digest-armagetronad-live-0.3_alpha7348 690 RMD160 423a57a87eeb8949492d27fb555a25d4c38d005b files/digest-armagetronad-live-0.3_alpha7348 690 SHA256 419fd728d425d7267047c72b08903f7828f4f55411f76620ddde7ec56e38c931 files/digest-armagetronad-live-0.3_alpha7348 690 +MD5 78fb2de6a9611eb1fb2aa970cba6dba9 files/digest-armagetronad-live-0.3_alpha7397 690 +RMD160 423a57a87eeb8949492d27fb555a25d4c38d005b files/digest-armagetronad-live-0.3_alpha7397 690 +SHA256 419fd728d425d7267047c72b08903f7828f4f55411f76620ddde7ec56e38c931 files/digest-armagetronad-live-0.3_alpha7397 690 Copied: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild (from rev 7396, armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7348.ebuild) =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild 2007-11-14 15:15:45 UTC (rev 7397) @@ -0,0 +1,198 @@ +# 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.24 2006/05/05 13:55:13 luke-jr Exp $ + +inherit flag-o-matic eutils games subversion live + +DESCRIPTION="3D light cycles like in the movie TRON" +HOMEPAGE="http://armagetronad.net/" + +MY_PN="armagetronad" +OPT_CLIENTSRC=" + 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 + ) +" +ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/trunk/${MY_PN}" +SRC_URI=" + opengl? ( ${OPT_CLIENTSRC} ) + !dedicated? ( ${OPT_CLIENTSRC} ) +" + +LICENSE="GPL-2" +SLOT="experimental-live" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug dedicated glew linguas_es linguas_en moviepack moviesounds opengl ruby" + +GLDEPS=" + || ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/jpeg + media-libs/libpng + media-libs/ftgl + glew? ( media-libs/glew ) +" +RDEPEND=" + >=dev-libs/libxml2-2.6.11 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} ) + ruby? ( virtual/ruby >=dev-lang/swig-1.3.29 ) + >=dev-libs/boost-1.33.1 +" +OPT_CLIENTDEPS=" + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) +" +DEPEND="${RDEPEND} + opengl? ( ${OPT_CLIENTDEPS} ) + !dedicated? ( ${OPT_CLIENTDEPS} ) +" + +S="${WORKDIR}/${MY_PN}" + +pkg_setup() { + if use ruby && ! built_with_use dev-lang/swig ruby ; then + eerror "You are trying to compile ${CATEGORY}/${PF} with the \"ruby\" USE flag enabled." + eerror "However, $(best_version dev-lang/swig) was compiled with the ruby flag disabled." + eerror + eerror "You must either disable this use flag, or recompile" + eerror "$(best_version dev-lang/swig) with this ruby use flag enabled." + die 'swig missing ruby' + fi + if use debug; then + ewarn + ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' + ewarn ' players to chat debugging information, debugging lines to be drawn' + ewarn ' on the grid and at wall angles, and probably most relevant to your' + ewarn ' decision to keep the USE flag:' + ewarn ' FULL SCREEN MODE WILL BE DISABLED' + ewarn + ewarn "If you don't like this, add this line to /etc/portage/package.use:" + ewarn ' games-action/armagetronad -debug' + ewarn + ewarn 'If you ignore this warning and complain about any of the above' + ewarn ' effects, the Armagetron Advanced team will either ignore you or' + ewarn ' delete your complaint.' + ewarn + ebeep 5 + fi + ewarn 'Please note that this is an EXPERIMENTAL RELEASE of Armagetron Advanced.' + ewarn 'It has known bugs, and is not meant to be well-tested or stable.' + ewarn ' PLAY AT YOUR OWN RISK' +} + +src_unpack() { + for f in ${A}; do + unpack "$f" + done + live_src_unpack + rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" +} + +aabuild() { + MyBUILDDIR="${WORKDIR}/build-$1" + mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario + cd "${MyBUILDDIR}" + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + [ "$1" == "server" ] && ded='-dedicated' || ded='' + GameDir="${MY_PN}${ded}${GameSLOT}" + ECONF_SOURCE="${S}" \ + egamesconf ${myconf} \ + --disable-binreloc \ + --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ + --disable-master \ + --enable-main \ + --disable-krawall \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + $(use_enable ruby) \ + $(use_with glew) \ + "${@:2}" || die "egamesconf($1) failed" + emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" +} + +src_compile() { + [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh + + # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" + dodir "${GAMES_SYSCONFDIR}" + dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 + rename armagetronad{,${GameSLOT}} "${D}"/usr/share/*/armagetronad.* + cd "${WORKDIR}/build-client" + 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + fi + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* + dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error + prepgamesdirs +} + +live Added: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/files/digest-armagetronad-live-0.3_alpha7397 =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/files/digest-armagetronad-live-0.3_alpha7397 (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/files/digest-armagetronad-live-0.3_alpha7397 2007-11-14 15:15:45 UTC (rev 7397) @@ -0,0 +1,9 @@ +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 Modified: armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc =================================================================== --- armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc 2007-11-14 12:48:55 UTC (rev 7396) +++ armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc 2007-11-14 15:15:45 UTC (rev 7397) @@ -1,4 +1,5 @@ games-action/armagetronad:moviepack - install graphics based on the TRON movie games-action/armagetronad:moviesounds - install sound effects extracted from the TRON movie +games-action/armagetronad-live:glew - Enables fancy graphics effects (motion blur) games-action/armagetronad-live:moviepack - install graphics based on the TRON movie games-action/armagetronad-live:moviesounds - install sound effects extracted from the TRON movie This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lu...@us...> - 2008-01-20 09:01:50
|
Revision: 7555 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=7555&view=rev Author: luke-jr Date: 2008-01-20 01:01:54 -0800 (Sun, 20 Jan 2008) Log Message: ----------- remove dead junk Removed Paths: ------------- armagetronad/trunk/build/gentoo/overlay/games-strategy/ armagetronad/trunk/build/gentoo/overlay/overlay-armagetron/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lu...@us...> - 2008-01-21 11:10:56
|
Revision: 7563 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=7563&view=rev Author: luke-jr Date: 2008-01-21 03:07:36 -0800 (Mon, 21 Jan 2008) Log Message: ----------- auth USE flag part 2 Modified Paths: -------------- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc Modified: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild 2008-01-21 11:03:10 UTC (rev 7562) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild 2008-01-21 11:07:36 UTC (rev 7563) @@ -86,7 +86,7 @@ for f in ${A}; do unpack "$f" done - use auth && ESVN_REPO_URI="${ESVN_REPO_URI/0.2.8/0.2.8-auth}" + use dedicated && use auth && ESVN_REPO_URI="${ESVN_REPO_URI/0.2.8/0.2.8-auth}" live_src_unpack rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" } @@ -98,6 +98,11 @@ use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 export DEBUGLEVEL CODELEVEL=0 [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + if use dedicated && use auth; then + myconf="${myconf} --enable-krawall" + else + myconf="${myconf} --disable-krawall" + fi [ "$1" == "server" ] && ded='-dedicated' || ded='' GameDir="${MY_PN}${ded}${GameSLOT}" ECONF_SOURCE="${S}" \ @@ -106,7 +111,6 @@ --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ --disable-master \ --enable-main \ - $(use_enable auth krawall) \ --enable-sysinstall \ --disable-useradd \ --enable-etc \ Modified: armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc =================================================================== --- armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc 2008-01-21 11:03:10 UTC (rev 7562) +++ armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc 2008-01-21 11:07:36 UTC (rev 7563) @@ -1,5 +1,6 @@ games-action/armagetronad:moviepack - install graphics based on the TRON movie games-action/armagetronad:moviesounds - install sound effects extracted from the TRON movie +games-action/armagetronad-live:auth - Enables server-side authentication support games-action/armagetronad-live:glew - Enables fancy graphics effects (motion blur) games-action/armagetronad-live:moviepack - install graphics based on the TRON movie games-action/armagetronad-live:moviesounds - install sound effects extracted from the TRON movie This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lu...@us...> - 2008-04-20 19:25:38
|
Revision: 8429 http://armagetronad.svn.sourceforge.net/armagetronad/?rev=8429&view=rev Author: luke-jr Date: 2008-04-20 12:25:32 -0700 (Sun, 20 Apr 2008) Log Message: ----------- cleanup add auth USE to -live 0.3 add respawn USE to -live * Modified Paths: -------------- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest armagetronad/trunk/build/gentoo/overlay/profiles/package.mask armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc Added Paths: ----------- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha8429.ebuild armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha8429.ebuild Removed Paths: ------------- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild Modified: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest 2008-04-20 11:35:50 UTC (rev 8428) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/Manifest 2008-04-20 19:25:32 UTC (rev 8429) @@ -1,7 +1,7 @@ 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-live-0.2.8_alpha7561.ebuild 7008 RMD160 945a6c03405988a97c673ac8a9a2d770aa9cacb3 SHA1 ad2e327a2eb62ba2e20e6b8ac5999a2bf150bc3c SHA256 ffa315014d475d8f0efc0377ba2a0e2bedafbec9ae8c415081f3f906f60c323d -EBUILD armagetronad-live-0.3_alpha7397.ebuild 7559 RMD160 ee131c7c5ac11b961b69d41ed6c76ff58f05dda0 SHA1 9d49cb670950f6098dc9e0880577efc0c239c452 SHA256 d63762fa1056d50bdc25e7613dc28f1e27a92737b82a1bf9be53edcb84f68deb +EBUILD armagetronad-live-0.2.8_alpha8429.ebuild 6867 RMD160 b0054273c29cee3226286c1e9b351345b8ff8046 SHA1 5ea5c8cc210ea71b01b610950a29dec9f45db2e8 SHA256 c6296a30d7ad64e5d589c7888422132faeca8538b052384a9be210a17a76f142 +EBUILD armagetronad-live-0.3_alpha8429.ebuild 7638 RMD160 215c239172427ea711c11d1abec3362f5614de9b SHA1 43e829abeaf981db830dea7a17e5d50a99abb8ed SHA256 675a28407d2c002dabce68369b8565cb21e6997691b1e183807e9b764566e122 MISC ChangeLog 133 RMD160 99f736c47fd4d22c98995e50c943ecb7adce7eda SHA1 256954961b882b13e0c28d86466f856da8e144ca SHA256 23b53e7c596ca0e27fb503226a25724940c5e94336e43859a2185449ced7c730 MISC metadata.xml 606 RMD160 4e4e018cd58915728de767ac9f225e963bade7c6 SHA1 7b666a612c8a68dc80b1a493bc68c85656bd8a3b SHA256 cc7cf91fde84ba405545cd048c420856c896494de3b33d70b3d869c7f0ed3f37 Deleted: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild 2008-04-20 11:35:50 UTC (rev 8428) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild 2008-04-20 19:25:32 UTC (rev 8429) @@ -1,218 +0,0 @@ -# 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.24 2006/05/05 13:55:13 luke-jr Exp $ - -inherit flag-o-matic eutils games subversion live - -DESCRIPTION="3D light cycles like in the movie TRON" -HOMEPAGE="http://armagetronad.net/" - -MY_PN="armagetronad" -OPT_CLIENTSRC=" - 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 - ) -" -ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/branches/0.2.8/${MY_PN}" -SRC_URI=" - opengl? ( ${OPT_CLIENTSRC} ) - !dedicated? ( ${OPT_CLIENTSRC} ) -" - -LICENSE="GPL-2" -SLOT="live" -KEYWORDS="amd64 ppc sparc x86" -IUSE="auth debug dedicated linguas_de linguas_fr linguas_en linguas_en_GB linguas_en_US linguas_es moviepack moviesounds opengl" - -ESVN_PROJECT="${P/_*}" - -GLDEPS=" - || ( - x11-libs/libX11 - virtual/x11 - ) - virtual/glu - virtual/opengl - media-libs/libsdl - media-libs/sdl-image - media-libs/sdl-mixer - media-libs/jpeg - media-libs/libpng -" -RDEPEND=" - >=dev-libs/libxml2-2.6.11 - sys-libs/zlib - opengl? ( ${GLDEPS} ) - !dedicated? ( ${GLDEPS} ) -" -OPT_CLIENTDEPS=" - moviepack? ( app-arch/unzip ) - moviesounds? ( app-arch/unzip ) -" -DEPEND="${RDEPEND} - opengl? ( ${OPT_CLIENTDEPS} ) - !dedicated? ( ${OPT_CLIENTDEPS} ) -" - -S="${WORKDIR}/${MY_PN}" - -pkg_setup() { - if ! built_with_use media-libs/sdl-image png; then - local msg="You must install dev-libs/libxml2 with USE=png" - eerror "$msg" - die "$msg" - fi - - if use debug; then - ewarn - ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' - ewarn ' players to chat debugging information, debugging lines to be drawn' - ewarn ' on the grid and at wall angles, and probably most relevant to your' - ewarn ' decision to keep the USE flag:' - ewarn ' FULL SCREEN MODE AND SOUND WILL BE DISABLED' - ewarn - ewarn "If you don't like this, add this line to /etc/portage/package.use:" - ewarn ' games-action/armagetronad -debug' - ewarn - ewarn 'If you ignore this warning and complain about any of the above' - ewarn ' effects, the Armagetron Advanced team will either ignore you or' - ewarn ' delete your complaint.' - ewarn - ebeep 5 - fi -} - -src_unpack() { - for f in ${A}; do - unpack "$f" - done - use dedicated && use auth && ESVN_REPO_URI="${ESVN_REPO_URI/0.2.8/0.2.8-auth}" - live_src_unpack - rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" -} - -aabuild() { - MyBUILDDIR="${WORKDIR}/build-$1" - mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario - cd "${MyBUILDDIR}" - use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 - export DEBUGLEVEL CODELEVEL=0 - [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" - if use dedicated && use auth; then - myconf="${myconf} --enable-krawallserver" - else - myconf="${myconf} --disable-krawallserver" - fi - [ "$1" == "server" ] && ded='-dedicated' || ded='' - GameDir="${MY_PN}${ded}${GameSLOT}" - ECONF_SOURCE="${S}" \ - egamesconf ${myconf} \ - --disable-binreloc \ - --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ - --disable-master \ - --enable-main \ - --disable-krawall \ - --enable-sysinstall \ - --disable-useradd \ - --enable-etc \ - --disable-restoreold \ - --disable-games \ - --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ - "${@:2}" || die "egamesconf($1) failed" - emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" -} - -src_compile() { - [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh - - # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" - dodir "${GAMES_SYSCONFDIR}" - dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 - rename armagetronad{,${GameSLOT}} "${D}"/usr/share/*/armagetronad.* - cd "${WORKDIR}/build-client" - 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' - fi - - local LangDir="${D}${GAMES_DATADIR}/${GameDir}/language/" - use linguas_de || rm -v "${LangDir}deutsch.txt" - use linguas_fr || rm -v "${LangDir}french.txt" - local en_GB='true' en_US='true' - use linguas_en_GB || en_GB='false' - use linguas_en_US || en_US='false' - # Force both on if: - # # linguas_en is set, but neither subset is - # # no other supported linguas is set - { { ! $en_GB && ! $en_US; } && { - use linguas_en || - ! { - use linguas_de || - use linguas_fr || - use linguas_es || - false; - }; - }; } && - en_GB='true' en_US='true' - $en_US || rm -v "${LangDir}american.txt" - use linguas_es || rm -v "${LangDir}spanish.txt" - - # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually - dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* - dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt - rm -r "${D}${GAMES_PREFIX}/share/doc" - rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error - prepgamesdirs -} - -live Copied: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha8429.ebuild (from rev 8428, armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha7561.ebuild) =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha8429.ebuild (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.2.8_alpha8429.ebuild 2008-04-20 19:25:32 UTC (rev 8429) @@ -0,0 +1,214 @@ +# 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.24 2006/05/05 13:55:13 luke-jr Exp $ + +inherit flag-o-matic eutils games subversion live + +DESCRIPTION="3D light cycles like in the movie TRON" +HOMEPAGE="http://armagetronad.net/" + +MY_PN="armagetronad" +OPT_CLIENTSRC=" + 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 + ) +" +ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/branches/0.2.8/${MY_PN}" +SRC_URI=" + opengl? ( ${OPT_CLIENTSRC} ) + !dedicated? ( ${OPT_CLIENTSRC} ) +" + +LICENSE="GPL-2" +SLOT="live" +KEYWORDS="amd64 ppc sparc x86" +IUSE="auth debug dedicated linguas_de linguas_fr linguas_en linguas_en_GB linguas_en_US linguas_es moviepack moviesounds opengl respawn" + +ESVN_PROJECT="${P/_*}" + +GLDEPS=" + || ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/jpeg + media-libs/libpng +" +RDEPEND=" + >=dev-libs/libxml2-2.6.11 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} ) +" +OPT_CLIENTDEPS=" + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) +" +DEPEND="${RDEPEND} + opengl? ( ${OPT_CLIENTDEPS} ) + !dedicated? ( ${OPT_CLIENTDEPS} ) +" + +S="${WORKDIR}/${MY_PN}" + +pkg_setup() { + if ! built_with_use media-libs/sdl-image png; then + local msg="You must install dev-libs/libxml2 with USE=png" + eerror "$msg" + die "$msg" + fi + + if use debug; then + ewarn + ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' + ewarn ' players to chat debugging information, debugging lines to be drawn' + ewarn ' on the grid and at wall angles, and probably most relevant to your' + ewarn ' decision to keep the USE flag:' + ewarn ' FULL SCREEN MODE AND SOUND WILL BE DISABLED' + ewarn + ewarn "If you don't like this, add this line to /etc/portage/package.use:" + ewarn ' games-action/armagetronad -debug' + ewarn + ewarn 'If you ignore this warning and complain about any of the above' + ewarn ' effects, the Armagetron Advanced team will either ignore you or' + ewarn ' delete your complaint.' + ewarn + ebeep 5 + fi +} + +src_unpack() { + for f in ${A}; do + unpack "$f" + done + live_src_unpack + rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" +} + +aabuild() { + MyBUILDDIR="${WORKDIR}/build-$1" + mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario + cd "${MyBUILDDIR}" + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + [ "$1" == "server" ] && ded='-dedicated' || ded='' + GameDir="${MY_PN}${ded}${GameSLOT}" + ECONF_SOURCE="${S}" \ + egamesconf ${myconf} \ + --disable-binreloc \ + --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ + --disable-master \ + --enable-main \ + --disable-krawall \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + $(use_enable auth armathentication) \ + $(use_enable respawn) \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + "${@:2}" || die "egamesconf($1) failed" + emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" +} + +src_compile() { + [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh + + # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" + dodir "${GAMES_SYSCONFDIR}" + dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 + rename armagetronad{,${GameSLOT}} "${D}"/usr/share/*/armagetronad.* + cd "${WORKDIR}/build-client" + 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + fi + + local LangDir="${D}${GAMES_DATADIR}/${GameDir}/language/" + use linguas_de || rm -v "${LangDir}deutsch.txt" + use linguas_fr || rm -v "${LangDir}french.txt" + local en_GB='true' en_US='true' + use linguas_en_GB || en_GB='false' + use linguas_en_US || en_US='false' + # Force both on if: + # # linguas_en is set, but neither subset is + # # no other supported linguas is set + { { ! $en_GB && ! $en_US; } && { + use linguas_en || + ! { + use linguas_de || + use linguas_fr || + use linguas_es || + false; + }; + }; } && + en_GB='true' en_US='true' + $en_US || rm -v "${LangDir}american.txt" + use linguas_es || rm -v "${LangDir}spanish.txt" + + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* + dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error + prepgamesdirs +} + +live Deleted: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild 2008-04-20 11:35:50 UTC (rev 8428) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild 2008-04-20 19:25:32 UTC (rev 8429) @@ -1,227 +0,0 @@ -# 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.24 2006/05/05 13:55:13 luke-jr Exp $ - -inherit flag-o-matic eutils games subversion live - -DESCRIPTION="3D light cycles like in the movie TRON" -HOMEPAGE="http://armagetronad.net/" - -MY_PN="armagetronad" -OPT_CLIENTSRC=" - 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 - ) -" -ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/trunk/${MY_PN}" -SRC_URI=" - opengl? ( ${OPT_CLIENTSRC} ) - !dedicated? ( ${OPT_CLIENTSRC} ) -" - -LICENSE="GPL-2" -SLOT="experimental-live" -KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="debug dedicated glew linguas_de linguas_fr linguas_en linguas_en_GB linguas_en_US linguas_es moviepack moviesounds opengl ruby" - -GLDEPS=" - || ( - x11-libs/libX11 - virtual/x11 - ) - virtual/glu - virtual/opengl - media-libs/libsdl - media-libs/sdl-image - media-libs/sdl-mixer - media-libs/jpeg - media-libs/libpng - media-libs/ftgl - glew? ( media-libs/glew ) -" -RDEPEND=" - >=dev-libs/libxml2-2.6.11 - sys-libs/zlib - opengl? ( ${GLDEPS} ) - !dedicated? ( ${GLDEPS} ) - ruby? ( virtual/ruby >=dev-lang/swig-1.3.29 ) - >=dev-libs/boost-1.33.1 -" -OPT_CLIENTDEPS=" - moviepack? ( app-arch/unzip ) - moviesounds? ( app-arch/unzip ) -" -DEPEND="${RDEPEND} - opengl? ( ${OPT_CLIENTDEPS} ) - !dedicated? ( ${OPT_CLIENTDEPS} ) -" - -S="${WORKDIR}/${MY_PN}" - -pkg_setup() { - if ! built_with_use media-libs/sdl-image png; then - local msg="You must install dev-libs/libxml2 with USE=png" - eerror "$msg" - die "$msg" - fi - - if use ruby && ! built_with_use dev-lang/swig ruby ; then - eerror "You are trying to compile ${CATEGORY}/${PF} with the \"ruby\" USE flag enabled." - eerror "However, $(best_version dev-lang/swig) was compiled with the ruby flag disabled." - eerror - eerror "You must either disable this use flag, or recompile" - eerror "$(best_version dev-lang/swig) with this ruby use flag enabled." - die 'swig missing ruby' - fi - if use debug; then - ewarn - ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' - ewarn ' players to chat debugging information, debugging lines to be drawn' - ewarn ' on the grid and at wall angles, and probably most relevant to your' - ewarn ' decision to keep the USE flag:' - ewarn ' FULL SCREEN MODE WILL BE DISABLED' - ewarn - ewarn "If you don't like this, add this line to /etc/portage/package.use:" - ewarn ' games-action/armagetronad -debug' - ewarn - ewarn 'If you ignore this warning and complain about any of the above' - ewarn ' effects, the Armagetron Advanced team will either ignore you or' - ewarn ' delete your complaint.' - ewarn - ebeep 5 - fi - ewarn 'Please note that this is an EXPERIMENTAL RELEASE of Armagetron Advanced.' - ewarn 'It has known bugs, and is not meant to be well-tested or stable.' - ewarn ' PLAY AT YOUR OWN RISK' -} - -src_unpack() { - for f in ${A}; do - unpack "$f" - done - live_src_unpack - rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" -} - -aabuild() { - MyBUILDDIR="${WORKDIR}/build-$1" - mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario - cd "${MyBUILDDIR}" - use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 - export DEBUGLEVEL CODELEVEL=0 - [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" - [ "$1" == "server" ] && ded='-dedicated' || ded='' - GameDir="${MY_PN}${ded}${GameSLOT}" - ECONF_SOURCE="${S}" \ - egamesconf ${myconf} \ - --disable-binreloc \ - --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ - --disable-master \ - --enable-main \ - --disable-krawall \ - --enable-sysinstall \ - --disable-useradd \ - --enable-etc \ - --disable-restoreold \ - --disable-games \ - --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ - $(use_enable ruby) \ - $(use_with glew) \ - "${@:2}" || die "egamesconf($1) failed" - emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" -} - -src_compile() { - [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh - - # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" - dodir "${GAMES_SYSCONFDIR}" - dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 - rename armagetronad{,${GameSLOT}} "${D}"/usr/share/*/armagetronad.* - cd "${WORKDIR}/build-client" - 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' - fi - - local LangDir="${D}${GAMES_DATADIR}/${GameDir}/language/" - use linguas_de || rm -v "${LangDir}deutsch.txt" - use linguas_fr || rm -v "${LangDir}french.txt" - local en_GB='true' en_US='true' - use linguas_en_GB || en_GB='false' - use linguas_en_US || en_US='false' - # Force both on if: - # # linguas_en is set, but neither subset is - # # no other supported linguas is set - { { ! $en_GB && ! $en_US; } && { - use linguas_en || - ! { - use linguas_de || - use linguas_fr || - use linguas_es || - false; - }; - }; } && - en_GB='true' en_US='true' - $en_US || rm -v "${LangDir}american.txt" - use linguas_es || rm -v "${LangDir}spanish.txt" - - # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually - dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* - dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt - rm -r "${D}${GAMES_PREFIX}/share/doc" - rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error - prepgamesdirs -} - -live Copied: armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha8429.ebuild (from rev 8428, armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha7397.ebuild) =================================================================== --- armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha8429.ebuild (rev 0) +++ armagetronad/trunk/build/gentoo/overlay/games-action/armagetronad-live/armagetronad-live-0.3_alpha8429.ebuild 2008-04-20 19:25:32 UTC (rev 8429) @@ -0,0 +1,229 @@ +# 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.24 2006/05/05 13:55:13 luke-jr Exp $ + +inherit flag-o-matic eutils games subversion live + +DESCRIPTION="3D light cycles like in the movie TRON" +HOMEPAGE="http://armagetronad.net/" + +MY_PN="armagetronad" +OPT_CLIENTSRC=" + 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 + ) +" +ESVN_REPO_URI="https://${MY_PN}.svn.sourceforge.net/svnroot/${MY_PN}/${MY_PN}/trunk/${MY_PN}" +SRC_URI=" + opengl? ( ${OPT_CLIENTSRC} ) + !dedicated? ( ${OPT_CLIENTSRC} ) +" + +LICENSE="GPL-2" +SLOT="experimental-live" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="auth debug dedicated glew linguas_de linguas_fr linguas_en linguas_en_GB linguas_en_US linguas_es moviepack moviesounds opengl respawn ruby" + +GLDEPS=" + || ( + x11-libs/libX11 + virtual/x11 + ) + virtual/glu + virtual/opengl + media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/jpeg + media-libs/libpng + media-libs/ftgl + glew? ( media-libs/glew ) +" +RDEPEND=" + >=dev-libs/libxml2-2.6.11 + sys-libs/zlib + opengl? ( ${GLDEPS} ) + !dedicated? ( ${GLDEPS} ) + ruby? ( virtual/ruby >=dev-lang/swig-1.3.29 ) + >=dev-libs/boost-1.33.1 +" +OPT_CLIENTDEPS=" + moviepack? ( app-arch/unzip ) + moviesounds? ( app-arch/unzip ) +" +DEPEND="${RDEPEND} + opengl? ( ${OPT_CLIENTDEPS} ) + !dedicated? ( ${OPT_CLIENTDEPS} ) +" + +S="${WORKDIR}/${MY_PN}" + +pkg_setup() { + if ! built_with_use media-libs/sdl-image png; then + local msg="You must install dev-libs/libxml2 with USE=png" + eerror "$msg" + die "$msg" + fi + + if use ruby && ! built_with_use dev-lang/swig ruby ; then + eerror "You are trying to compile ${CATEGORY}/${PF} with the \"ruby\" USE flag enabled." + eerror "However, $(best_version dev-lang/swig) was compiled with the ruby flag disabled." + eerror + eerror "You must either disable this use flag, or recompile" + eerror "$(best_version dev-lang/swig) with this ruby use flag enabled." + die 'swig missing ruby' + fi + if use debug; then + ewarn + ewarn 'The "debug" USE flag will enable debugging code. This will cause AI' + ewarn ' players to chat debugging information, debugging lines to be drawn' + ewarn ' on the grid and at wall angles, and probably most relevant to your' + ewarn ' decision to keep the USE flag:' + ewarn ' FULL SCREEN MODE WILL BE DISABLED' + ewarn + ewarn "If you don't like this, add this line to /etc/portage/package.use:" + ewarn ' games-action/armagetronad -debug' + ewarn + ewarn 'If you ignore this warning and complain about any of the above' + ewarn ' effects, the Armagetron Advanced team will either ignore you or' + ewarn ' delete your complaint.' + ewarn + ebeep 5 + fi + ewarn 'Please note that this is an EXPERIMENTAL RELEASE of Armagetron Advanced.' + ewarn 'It has known bugs, and is not meant to be well-tested or stable.' + ewarn ' PLAY AT YOUR OWN RISK' +} + +src_unpack() { + for f in ${A}; do + unpack "$f" + done + live_src_unpack + rsync -rlpgo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}/.svn" "${S}" || ewarn ".svn directory couldn't be copied; your version number will use the current date instead of revision" +} + +aabuild() { + MyBUILDDIR="${WORKDIR}/build-$1" + mkdir -p "${MyBUILDDIR}" || die "error creating build directory($1)" # -p to allow EEXIST scenario + cd "${MyBUILDDIR}" + use debug && DEBUGLEVEL=3 || DEBUGLEVEL=0 + export DEBUGLEVEL CODELEVEL=0 + [ "$SLOT" == "0" ] && myconf="--disable-multiver" || myconf="--enable-multiver=${SLOT}" + [ "$1" == "server" ] && ded='-dedicated' || ded='' + GameDir="${MY_PN}${ded}${GameSLOT}" + ECONF_SOURCE="${S}" \ + egamesconf ${myconf} \ + --disable-binreloc \ + --docdir "/usr/share/doc/${PF}/${DOCDESTTREE}" \ + --disable-master \ + --enable-main \ + --disable-krawall \ + --enable-sysinstall \ + --disable-useradd \ + --enable-etc \ + --disable-restoreold \ + --disable-games \ + $(use_enable auth armathentication) \ + $(use_enable respawn) \ + --enable-uninstall="emerge --clean =${CATEGORY}/${PF}" \ + $(use_enable ruby) \ + $(use_with glew) \ + "${@:2}" || die "egamesconf($1) failed" + emake armabindir="${GAMES_BINDIR}" || die "emake($1) failed" +} + +src_compile() { + [ "${PN/-live/}" != "${PN}" ] && WANT_AUTOMAKE=1.9 ./bootstrap.sh + + # 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 "${MY_PN}${GameSLOT}" "${GAMES_DATADIR}/${MY_PN}-dedicated${GameSLOT}" + dodir "${GAMES_SYSCONFDIR}" + dosym "${MY_PN}${GameSLOT}" "${GAMES_SYSCONFDIR}/${MY_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}/${MY_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 + rename armagetronad{,${GameSLOT}} "${D}"/usr/share/*/armagetronad.* + cd "${WORKDIR}/build-client" + 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}/${MY_PN}-dedicated${GameSLOT}/rc.config" || ewarn 'adjustments for rc.config FAILED; the defaults may not be suited for your system!' + fi + + local LangDir="${D}${GAMES_DATADIR}/${GameDir}/language/" + use linguas_de || rm -v "${LangDir}deutsch.txt" + use linguas_fr || rm -v "${LangDir}french.txt" + local en_GB='true' en_US='true' + use linguas_en_GB || en_GB='false' + use linguas_en_US || en_US='false' + # Force both on if: + # # linguas_en is set, but neither subset is + # # no other supported linguas is set + { { ! $en_GB && ! $en_US; } && { + use linguas_en || + ! { + use linguas_de || + use linguas_fr || + use linguas_es || + false; + }; + }; } && + en_GB='true' en_US='true' + $en_US || rm -v "${LangDir}american.txt" + use linguas_es || rm -v "${LangDir}spanish.txt" + + # Ok, so we screwed up on doc installation... so for now, the ebuild does this manually + dohtml -r "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"* + dodoc "${D}${GAMES_PREFIX}/share/doc/${GameDir}/html/"*.txt + rm -r "${D}${GAMES_PREFIX}/share/doc" + rmdir "${D}${GAMES_PREFIX}/share" || true # Supress potential error + prepgamesdirs +} + +live Modified: armagetronad/trunk/build/gentoo/overlay/profiles/package.mask =================================================================== --- armagetronad/trunk/build/gentoo/overlay/profiles/package.mask 2008-04-20 11:35:50 UTC (rev 8428) +++ armagetronad/trunk/build/gentoo/overlay/profiles/package.mask 2008-04-20 19:25:32 UTC (rev 8429) @@ -6,9 +6,5 @@ # Thanks # To install/test: # echo 'games-action/armagetronad-live' >>/etc/portage/package.unmask -# echo 'games-action/armagetronad-live ~x86' >>/etc/portage/package.keywords +# echo 'games-action/armagetronad-live' >>/etc/portage/package.keywords games-action/armagetronad-live - -# Luke-Jr <luk...@da...> (19 Feb 2007) -# Incomplete, just playing around -overlay-armagetron/news Modified: armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc =================================================================== --- armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc 2008-04-20 11:35:50 UTC (rev 8428) +++ armagetronad/trunk/build/gentoo/overlay/profiles/use.local.desc 2008-04-20 19:25:32 UTC (rev 8429) @@ -4,3 +4,4 @@ games-action/armagetronad-live:glew - Enables fancy graphics effects (motion blur) games-action/armagetronad-live:moviepack - install graphics based on the TRON movie games-action/armagetronad-live:moviesounds - install sound effects extracted from the TRON movie +games-action/armagetronad-live:respawn - enable unsupported, hacky, impossible to deactivate at runtime, deathmatch mode. Use at your own risk. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |