summaryrefslogtreecommitdiff
path: root/games-strategy/boswars
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/boswars
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/boswars')
-rw-r--r--games-strategy/boswars/Manifest10
-rw-r--r--games-strategy/boswars/boswars-2.7-r1.ebuild66
-rw-r--r--games-strategy/boswars/boswars-2.7-r2.ebuild70
-rw-r--r--games-strategy/boswars/files/boswars-2.7-gentoo.patch12
-rw-r--r--games-strategy/boswars/files/boswars-2.7-scons-blows.patch27
-rw-r--r--games-strategy/boswars/metadata.xml13
6 files changed, 198 insertions, 0 deletions
diff --git a/games-strategy/boswars/Manifest b/games-strategy/boswars/Manifest
new file mode 100644
index 000000000000..2c63eff516b9
--- /dev/null
+++ b/games-strategy/boswars/Manifest
@@ -0,0 +1,10 @@
+AUX boswars-2.7-gentoo.patch 606 SHA256 707f6e1c53c6ebb113945ba3f8648b999babd733e951c2ffe1f0bf6c5319825f SHA512 d538c1a5cd794b27c7f33989c5b1d3820cbcd7a4195d7cbd18dd92631aac4e5c2a3ab15447e178dcb2e51bcdcb00e939bf29c2f4b70b74a1ac44f841f52f6e98 WHIRLPOOL e5d60cd97ea2eeeb213a8d9d5c7223c69a7307fd3cbbd47b8a4a725ff427943d311f1985b816fda5ba0878a6cd4bd7c43ef0bef6bfe2d70de9777e6a42342703
+AUX boswars-2.7-scons-blows.patch 944 SHA256 55e14fa77b4c7086ed0035cb9c6aec404ebb077c18b8973cefde51d80d4d99c6 SHA512 45e723feaa282760644e11a3e61e52726b6fffb388f7a6b5a0a47a97319e88341e238b46d8dbbe94cf178d5d18ea4ba8ebc257cd16dd98d8aa3cd5cff8d0eecd WHIRLPOOL e6818cf9450bbe315e6ca34c3f1d5913175cf6451aa5dc017dc4fcfa9902789a8e3bc19d86f3c5e750f320a2ff380e716c286e2e14e2aca1fbca937c29b74a5e
+DIST bos.png 620 SHA256 fe1d24bc722093bd3882ecab15c15f61b6b0edee263bfd58af662825e76d8b0a SHA512 6a15a5c82f9cff3462d498620a1dd1c7a2a460119689078157e61b27e7e5243a8ac2da7f01c1848d614167a3a748ca1f3e03c1f218479ede3a1c2c0ae85b3cc3 WHIRLPOOL 4688e15b35a4c6e6888b867f16e646e520bf00cbb04d586b08567b2177fe9e82d0a2e1c31060c18ac2149df727f8a781f4394936c77a0d0b6ef846051ff760e7
+DIST boswars-2.7-fixed-images-for-libpng-1.6.tar.xz 552956 SHA256 87f3ee7f4045c3acfacd884348a2b376e710b42aa0f40acbc212732d0bee9a24 SHA512 794addf06cfd5c5bb0ad0988a90337a3a6332789de7bc942807602c84c4fafe4c4b12da63ae210ca220a1be6dcd9677fa9ddb1ae62a7d26a7748af35b07303dc WHIRLPOOL d6bc11f8db099cd91976590a25e63eed51c2cd724eb64d2e859556dcf3ef22a66451b114542a0e0bcc819c517b4c5fdb3e294680a9e11dbe990650815ac37507
+DIST boswars-2.7-src.tar.gz 77280735 SHA256 dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e SHA512 2573c61684e83f356a80292adcf780cc001a4be2a31abba20e6f93ed6deaa38b8eca87f29935a4fe0edc9b4e0fdc3f78ddd709b8132aaaa048ffbcd6c498ec80 WHIRLPOOL f8e0156fbf2d868eb4066bab0592a9fc5c1fce055aba81c056da1d10da4112913f50312fc1526a0ff62159a84b9463907c92b8ae54445fab20dc5879bf961322
+EBUILD boswars-2.7-r1.ebuild 1556 SHA256 f77a4d83859dcb679765cfcc166303b7d003d57e267e03845f3c3760eb1d4011 SHA512 0a0d71d62111277490810d6d077c644bffa5124d90bf0701e5a3036ed8505f0aaee19af4bdec71053b4239838fc0de6845b3488ae471309c028ad5dfc8275d26 WHIRLPOOL 0f141135d49c04665323263dfade8196bedb411e160c3de2309e6bc9dff9c23f6c476c563a75e352c7ea14f7a1c39380d21ee472055d037d6325d185e0953b93
+EBUILD boswars-2.7-r2.ebuild 1534 SHA256 b41a58062d0c784f4b02cec40ee9ef3c545d6fbebb747809a21f14916a74866d SHA512 eb02e9caa002c255806dd4ab03b182eb7889b400bdc504c1c4b061e4e05a82a32cc9e6fc1cd1458a652debe825c18636058fb634d003f2d2f1f82c6b18dbbad4 WHIRLPOOL 2dca263a091800b9c9be6f88f2f51ac759c066b4761bc75ee8811513d1ab6301eb869a57851bc48dcd4733884c6832c0a0f48c90083232c683a70c289d2f7df7
+MISC ChangeLog 2679 SHA256 970ffbd355918f921a042db1c81d7ed3290823e70f8d1b4eff066e601ab23e5b SHA512 8a7fefa4c58c2c88b4a4b6bac57e3250c3e074cb6cb237f780cc5307dd18d210f284e7fbbee04337160ddabcf605c867aeff632c439123f9abf8dab2d79c802a WHIRLPOOL 5710f6907a6fc05130b6b133eb59e028ecc382b68aaa6561153abb922f44fbbafd0defc15cd431d67b53e1a86afad3879573bc84125c614aab7a43583229b944
+MISC ChangeLog-2015 4237 SHA256 24681c90558951309f9be8e84b5895dfd8daff753ca082519c0339d77ed06c1a SHA512 26205d1a287cc620db586a5df95ccd655a07731137584e08db659ca6dff9c5d152b923a9763a54eff6c2251c29feeb16b35eb077cecc8dee03039bdbc8a13cc3 WHIRLPOOL a4eef1e394e23ec0c386703d201d9cfe3921082d021cab2454fcaa513e935c67b9991133cbc5dff9144163fe47e16f49c5a978e60d3bd63ea2efea6cf3970812
+MISC metadata.xml 514 SHA256 a9fe339983e21841c52af69a65491a70660219c398d7558c4f68ff58a1c163fd SHA512 d253904f4c25482960a7815a05eccb8ff0c9acae13491713c47c98c90e012ad0cddc3e964529ab008e6db13602fe6b4d60df76a24ee66aac5f13efa13615440b WHIRLPOOL aba08de5de51c367bc7ec5a64bc9a19b4de61addef42e00c072bf75afdca8bd3dd24e2493eaf2a934092991422971697c74fb13c8291b006477d2f323e0b36b7
diff --git a/games-strategy/boswars/boswars-2.7-r1.ebuild b/games-strategy/boswars/boswars-2.7-r1.ebuild
new file mode 100644
index 000000000000..288762f4a41a
--- /dev/null
+++ b/games-strategy/boswars/boswars-2.7-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils scons-utils games
+
+DESCRIPTION="Futuristic real-time strategy game"
+HOMEPAGE="http://www.boswars.org/"
+SRC_URI="http://www.boswars.org/dist/releases/${P}-src.tar.gz
+ https://dev.gentoo.org/~hasufell/distfiles/${P}-fixed-images-for-libpng-1.6.tar.xz
+ mirror://gentoo/bos.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="dev-lang/lua:0
+ media-libs/libsdl[opengl,sound,video]
+ media-libs/libpng:0
+ media-libs/libvorbis
+ media-libs/libtheora
+ media-libs/libogg
+ virtual/opengl
+ x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}-src
+
+src_unpack() {
+ default
+ # bug 475764
+ cp -dRp ${P}-fixed-images-for-libpng-1.6/* ${P}-src/ \
+ || die "copying fixed images failed!"
+}
+
+src_prepare() {
+ rm -f doc/{README-SDL.txt,guichan-copyright.txt}
+ epatch \
+ "${FILESDIR}"/${P}-gentoo.patch \
+ "${FILESDIR}"/${P}-scons-blows.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
+ engine/include/stratagus.h \
+ || die
+ sed -i \
+ -e "/-O2/s:-O2.*math:${CXXFLAGS} -Wall:" \
+ SConstruct \
+ || die
+}
+
+src_compile() {
+ escons || die
+}
+
+src_install() {
+ newgamesbin build/${PN}-release ${PN}
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r campaigns graphics intro languages maps patches scripts sounds units
+ newicon "${DISTDIR}"/bos.png ${PN}.png
+ make_desktop_entry ${PN} "Bos Wars"
+ # COPYRIGHT.txt is referenced by the html
+ dodoc CHANGELOG COPYRIGHT.txt README.txt
+ dohtml -r doc/*
+ prepgamesdirs
+}
diff --git a/games-strategy/boswars/boswars-2.7-r2.ebuild b/games-strategy/boswars/boswars-2.7-r2.ebuild
new file mode 100644
index 000000000000..e47f414ef946
--- /dev/null
+++ b/games-strategy/boswars/boswars-2.7-r2.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils scons-utils
+
+DESCRIPTION="Futuristic real-time strategy game"
+HOMEPAGE="http://www.boswars.org/"
+SRC_URI="http://www.boswars.org/dist/releases/${P}-src.tar.gz
+ https://dev.gentoo.org/~hasufell/distfiles/${P}-fixed-images-for-libpng-1.6.tar.xz
+ mirror://gentoo/bos.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/lua:0
+ media-libs/libogg
+ media-libs/libpng:0
+ media-libs/libsdl[opengl,sound,video]
+ media-libs/libtheora
+ media-libs/libvorbis
+ virtual/opengl
+ x11-libs/libX11"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${P}-src
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-scons-blows.patch
+)
+
+src_unpack() {
+ default
+ # bug 475764
+ cp -dRp ${P}-fixed-images-for-libpng-1.6/* ${P}-src/ \
+ || die "copying fixed images failed!"
+}
+
+src_prepare() {
+ default
+
+ rm -f doc/{README-SDL.txt,guichan-copyright.txt} || die
+
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:/usr/share/${PN}:" \
+ engine/include/stratagus.h \
+ || die
+ sed -i \
+ -e "/-O2/s:-O2.*math:${CXXFLAGS} -Wall:" \
+ SConstruct \
+ || die
+}
+
+src_compile() {
+ escons || die
+}
+
+src_install() {
+ newbin build/${PN}-release ${PN}
+ insinto /usr/share/${PN}
+ doins -r campaigns graphics intro languages maps patches scripts sounds units
+ newicon "${DISTDIR}"/bos.png ${PN}.png
+ make_desktop_entry ${PN} "Bos Wars"
+ # COPYRIGHT.txt is referenced by the html
+ dodoc CHANGELOG COPYRIGHT.txt README.txt
+ dodoc -r doc/*
+}
diff --git a/games-strategy/boswars/files/boswars-2.7-gentoo.patch b/games-strategy/boswars/files/boswars-2.7-gentoo.patch
new file mode 100644
index 000000000000..a005f6f93ad0
--- /dev/null
+++ b/games-strategy/boswars/files/boswars-2.7-gentoo.patch
@@ -0,0 +1,12 @@
+diff -ru boswars-2.6.1-src/engine/include/stratagus.h boswars-2.6.1-src/engine/include/stratagus.h
+--- boswars-2.6.1-src/engine/include/stratagus.h 2010-04-11 08:12:18.000000000 -0400
++++ boswars-2.6.1-src/engine/include/stratagus.h 2010-05-22 02:33:50.021377764 -0400
+@@ -133,7 +133,7 @@
+ -- General
+ ----------------------------------------------------------------------------*/
+ #ifndef STRATAGUS_LIB_PATH
+-#define STRATAGUS_LIB_PATH "." /// Where to find the data files
++#define STRATAGUS_LIB_PATH "@GENTOO_DATADIR@" /// Where to find the data files
+ #endif
+
+ #ifndef STRATAGUS_HOME_PATH
diff --git a/games-strategy/boswars/files/boswars-2.7-scons-blows.patch b/games-strategy/boswars/files/boswars-2.7-scons-blows.patch
new file mode 100644
index 000000000000..1d2c04cc4f1b
--- /dev/null
+++ b/games-strategy/boswars/files/boswars-2.7-scons-blows.patch
@@ -0,0 +1,27 @@
+--- a/SConstruct 2010-11-19 21:09:45.724976603 -0500
++++ b/SConstruct 2010-11-19 21:11:05.723197985 -0500
+@@ -22,6 +22,7 @@
+ ##
+
+ import os
++import SCons.Util
+ import sys
+ import glob
+ from stat import *
+@@ -50,6 +51,16 @@
+
+ opts = DefineOptions("build_options.py", ARGUMENTS)
+ env = Environment(ENV = {'PATH':os.environ['PATH']}) # for an unknown reason Environment(options=opts) doesnt work well
++if os.environ.has_key('CC'):
++ env['CC'] = os.environ['CC']
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS'])
+ opts.Update(env) # Needed as Environment(options=opts) doesnt seem to work
+ Help(opts.GenerateHelpText(env))
+ mingw = env.Clone()
diff --git a/games-strategy/boswars/metadata.xml b/games-strategy/boswars/metadata.xml
new file mode 100644
index 000000000000..242aa2331bb7
--- /dev/null
+++ b/games-strategy/boswars/metadata.xml
@@ -0,0 +1,13 @@
+<?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 lang="en">
+Bos Wars is a futuristic real-time strategy game. It is possible to play against
+human opponents over LAN, internet, or against the computer.
+Bos Wars aims to create a completely original and fun open source RTS game.
+</longdescription>
+</pkgmetadata>