diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-strategy/xbattleai | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-strategy/xbattleai')
-rw-r--r-- | games-strategy/xbattleai/Manifest | 4 | ||||
-rw-r--r-- | games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch | 114 | ||||
-rw-r--r-- | games-strategy/xbattleai/metadata.xml | 26 | ||||
-rw-r--r-- | games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild | 42 |
4 files changed, 186 insertions, 0 deletions
diff --git a/games-strategy/xbattleai/Manifest b/games-strategy/xbattleai/Manifest new file mode 100644 index 000000000000..3ced68c2c9b2 --- /dev/null +++ b/games-strategy/xbattleai/Manifest @@ -0,0 +1,4 @@ +AUX xbattleai-1.2.2-sandbox.patch 4167 BLAKE2B e6336e72f4c466475e164e997bcef44d4c5fd96f457d08f2d1326761fade15e911ab048f05e63e4cadfdd955a90adce763c9b1facace8c33145e49b61482ad54 SHA512 013bd282c53f9a99b530b5a75907f7cc7b6829a0b20b7f77668325e1e12f2d8257019f68d1ccd147ac69d14d217412a31a3dcb3feaf2b55c39ae80545f956076 +DIST xbattleai-1.2.2.tgz 1511991 BLAKE2B f4372d9521ba878b53132a00392b3254d90642e0993920b44235eeb6ef1d874a32c7583983aecabf96ad245795820bb42c59a07c850db655ef7803f9216b61ed SHA512 41ac0f558b3adc697897903f5c9ed0d411867c405f0452282958083db7637c97a19f0ac9727e5123648a12dd2dcc5a304031efaab6089068b9f542e5db185e18 +EBUILD xbattleai-1.2.2-r2.ebuild 989 BLAKE2B 483226fc6c987f27424b9b211049cde75bc2097bd65b56d7cdba96cbad66ea881bafda0c633b87ea7dd1e230efdab8735bbe68b6e9e489b39e0a78ded1389f75 SHA512 60ecbc9efe6394b2527d4d7dda9ea767fd8818e51a5942f5e2661b00997ef78d2a46b7bc75b38f7d3f9061f448603ccded22e35e430862c1d4fc9cb3369d30a7 +MISC metadata.xml 1356 BLAKE2B 13ecdee27af4359fa0052f3db53c55243a92de5fb9419272f8f97cb576ebbb8bdc04734bb10b72088e6ba31ea6ec9d32c129fb6704f037d30bd41f2a0b81db96 SHA512 fca551005a6b3e52d30e6a53b82e8d961debba3654a4e4f99e8cd23818a15bf4adfbcc1ffbd19cbe892c0118e5b24a5e83846ab7d72f8613c2e02cd58327cf7f 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..56d63ac694e4 --- /dev/null +++ b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch @@ -0,0 +1,114 @@ +--- a/Makefile.in ++++ b/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/metadata.xml b/games-strategy/xbattleai/metadata.xml new file mode 100644 index 000000000000..d5cbe36e0094 --- /dev/null +++ b/games-strategy/xbattleai/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> +<email>games@gentoo.org</email> +<name>Gentoo Games Project</name> +</maintainer> +<longdescription> +From the HOMEPAGE: +XBattle is a concurrent multi-player arcade/strategy game that captures +the dynamics of a wide range of military situations through numerous +options. The game board is a matrix of game cells which can be occupied +by troops of various colors, with troop strength indicated by the size of +colored markers within a cell. Troops are commanded by clicking the mouse +near the edge of an occupied cell in the direction that movement is to take +place. XBattle is concurrent, so that commands are given continuously by +all players without waiting for turns. A command will be acknowledged by +the appearance of a command vector, and thereafter, in each update cycle, +a certain proportion of the troops will move from the source cell to the +destination cell. In this way, troops can be slowly redistributed via +supply lines which steadily deliver troops to their endpoints. Troops +of different colors engage in battle whenever they come to occupy the +same cell. A wide variety of options are available for configuring troop +movement, distribution, and production. +</longdescription> +</pkgmetadata> diff --git a/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild b/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild new file mode 100644 index 000000000000..e7b53bcc541e --- /dev/null +++ b/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils + +DESCRIPTION="A multi-player game of strategy and coordination" +HOMEPAGE="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/" +SRC_URI="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/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=" + dev-lang/tcl:0 + dev-lang/tk:0 + x11-libs/libX11 + x11-libs/libXext + !games-strategy/xbattle" +DEPEND="${RDEPEND} + app-text/rman + x11-misc/imake + x11-base/xorg-proto" + +PATCHES=( + "${FILESDIR}"/${P}-sandbox.patch +) + +src_prepare() { + default + rm -f xbcs/foo.xbc~ || die +} + +src_install() { + DOCS="CONTRIBUTORS README README.AI TODO xbattle.dot" \ + default + mv "${D}/usr/bin/"{,xb_}gauntletCampaign || die +} |