From 16ba15cb5498f8c5f4945ab92ac95f3a5730eeba Mon Sep 17 00:00:00 2001 From: Tristan Heaven Date: Sun, 12 Nov 2006 16:18:21 +0000 Subject: [PATCH] Install missing files, bug #154812 Package-Manager: portage-2.1.2_rc1-r6 --- games-strategy/xbattleai/ChangeLog | 9 +- .../xbattleai/files/digest-xbattleai-1.2.2-r1 | 3 + .../files/xbattleai-1.2.2-sandbox.patch | 114 ++++++++++++++++++ .../xbattleai/xbattleai-1.2.2-r1.ebuild | 40 ++++++ 4 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 games-strategy/xbattleai/files/digest-xbattleai-1.2.2-r1 create mode 100644 games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch create mode 100644 games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild diff --git a/games-strategy/xbattleai/ChangeLog b/games-strategy/xbattleai/ChangeLog index 348463dcc365..570e1e389120 100644 --- a/games-strategy/xbattleai/ChangeLog +++ b/games-strategy/xbattleai/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-strategy/xbattleai # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/xbattleai/ChangeLog,v 1.2 2006/04/27 20:09:49 marienz Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/xbattleai/ChangeLog,v 1.3 2006/11/12 16:18:21 nyhm Exp $ + +*xbattleai-1.2.2-r1 (12 Nov 2006) + + 12 Nov 2006; Tristan Heaven + +files/xbattleai-1.2.2-sandbox.patch, -xbattleai-1.2.2.ebuild, + +xbattleai-1.2.2-r1.ebuild: + Install missing files, bug #154812 27 Apr 2006; Marien Zwart files/digest-xbattleai-1.2.2, Manifest: diff --git a/games-strategy/xbattleai/files/digest-xbattleai-1.2.2-r1 b/games-strategy/xbattleai/files/digest-xbattleai-1.2.2-r1 new file mode 100644 index 000000000000..606fe728173b --- /dev/null +++ b/games-strategy/xbattleai/files/digest-xbattleai-1.2.2-r1 @@ -0,0 +1,3 @@ +MD5 465276cb92db47db1537a09e9227cf1e xbattleai-1.2.2.tgz 1511991 +RMD160 f6911383ab6300e8e10d1f8a3f420de461ee0b9c xbattleai-1.2.2.tgz 1511991 +SHA256 5dc137e33cbb8afb1a2333df1a8bec9c069d83254265826ac33568ae1f502d70 xbattleai-1.2.2.tgz 1511991 diff --git a/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch new file mode 100644 index 000000000000..566d4eec0565 --- /dev/null +++ b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch @@ -0,0 +1,114 @@ +--- Makefile.in ++++ Makefile.in +@@ -200,87 +200,87 @@ + .PHONY: install-bin + + install-bin: ${TARGET} ${SCRIPTS} +- ${INSTALL_DIRS} ${bindir} ++ ${INSTALL_DIRS} ${DESTDIR}/${bindir} + @list='${TARGET} ${SCRIPTS}'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_PROGRAM} $$p ${bindir}"; \ +- ${INSTALL_PROGRAM} $$p ${bindir}; \ ++ ${INSTALL_PROGRAM} $$p ${DESTDIR}/${bindir}; \ + else :; fi; \ + done + + .PHONY: install-man + + install-man: +- ${INSTALL_DIRS} ${mandir} ++ ${INSTALL_DIRS} ${DESTDIR}/${mandir} + @list='${MAN1}'; for p in $$list; do \ + ${INSTALL_DIRS} ${mandir}/man1; \ + if test -f ${SRC_DIR}/$${p}.man; then \ + ${ECHO} "${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man1/$${p}.1"; \ +- ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man1/$${p}.1; \ ++ ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${DESTDIR}/${mandir}/man1/$${p}.1; \ + else :; fi; \ + done + @list='${MAN6}'; for p in $$list; do \ +- ${INSTALL_DIRS} ${mandir}/man6; \ ++ ${INSTALL_DIRS} ${DESTDIR}/${mandir}/man6; \ + if test -f ${SRC_DIR}/$${p}.man; then \ + ${ECHO} "${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man6/$${p}.6"; \ +- ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${mandir}/man6/$${p}.6; \ ++ ${INSTALL_DATA} ${SRC_DIR}/$${p}.man ${DESTDIR}/${mandir}/man6/$${p}.6; \ + else :; fi; \ + done + + .PHONY: install-share + + install-share: +- ${INSTALL_DIRS} ${XBO_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBO_DIR} + @list='${SRC_DIR}/xbos/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBO_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBO_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBO_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${XBT_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBT_DIR} + @list='${SRC_DIR}/xbts/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBT_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBT_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBT_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${XBA_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBA_DIR} + @list='${SRC_DIR}/xbas/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBA_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBA_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBA_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${IMG_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${IMG_DIR} + @list='${SRC_DIR}/images/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${IMG_DIR}"; \ +- ${INSTALL_DATA} $$p ${IMG_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${IMG_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${SND_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${SND_DIR} + @list='${SRC_DIR}/snd/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${SND_DIR}"; \ +- ${INSTALL_DATA} $$p ${SND_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${SND_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${XBC_DIR} ++ ${INSTALL_DIRS} ${DESTDIR}/${XBC_DIR} + @list='${SRC_DIR}/xbcs/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${XBC_DIR}"; \ +- ${INSTALL_DATA} $$p ${XBC_DIR}; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${XBC_DIR}; \ + else :; fi; \ + done +- ${INSTALL_DIRS} ${GC_DIR} +- ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.dat ${GC_DIR}; +- ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.xbo ${GC_DIR}; +- ${INSTALL_PROGRAM} ${SRC_DIR}/gauntlet/gauntlet_interp.awk ${GC_DIR}; +- ${INSTALL_DIRS} ${GC_DIR}/gauntlet_levels ++ ${INSTALL_DIRS} ${DESTDIR}/${GC_DIR} ++ ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.dat ${DESTDIR}/${GC_DIR}; ++ ${INSTALL_DATA} ${SRC_DIR}/gauntlet/gauntlet.xbo ${DESTDIR}/${GC_DIR}; ++ ${INSTALL_PROGRAM} ${SRC_DIR}/gauntlet/gauntlet_interp.awk ${DESTDIR}/${GC_DIR}; ++ ${INSTALL_DIRS} ${DESTDIR}/${GC_DIR}/gauntlet_levels + @list='${SRC_DIR}/gauntlet/gauntlet_levels/*'; for p in $$list; do \ + if test -f $$p; then \ + ${ECHO} "${INSTALL_DATA} $$p ${GC_DIR}/gauntlet_levels"; \ +- ${INSTALL_DATA} $$p ${GC_DIR}/gauntlet_levels; \ ++ ${INSTALL_DATA} $$p ${DESTDIR}/${GC_DIR}/gauntlet_levels; \ + else :; fi; \ + done + diff --git a/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild b/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild new file mode 100644 index 000000000000..e67f534bc049 --- /dev/null +++ b/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/xbattleai/xbattleai-1.2.2-r1.ebuild,v 1.1 2006/11/12 16:18:21 nyhm Exp $ + +inherit eutils games + +DESCRIPTION="A multi-player game of strategy and coordination" +HOMEPAGE="http://www.lysator.liu.se/~mbrx/XBattleAI/index.html" +SRC_URI="http://www.lysator.liu.se/~mbrx/XBattleAI/${P}.tgz" + +LICENSE="xbattle" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Since this uses similar code and the same binary name as the original XBattle, +# we want to make sure you can't install both at the same time +RDEPEND="x11-libs/libXext + x11-libs/libX11 + dev-lang/tcl + dev-lang/tk + !games-strategy/xbattle" +DEPEND="${RDEPEND} + x11-proto/xproto + app-text/rman + x11-misc/imake" + +src_unpack() { + unpack ${A} + cd "${S}" + rm -f xbcs/foo.xbc~ + epatch "${FILESDIR}"/${P}-sandbox.patch +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + mv "${D}/${GAMES_BINDIR}"/{,xb_}gauntletCampaign + dodoc CONTRIBUTORS README README.AI TODO xbattle.dot + prepgamesdirs +} -- 2.26.2