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/boswars | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-strategy/boswars')
-rw-r--r-- | games-strategy/boswars/Manifest | 7 | ||||
-rw-r--r-- | games-strategy/boswars/boswars-2.7-r2.ebuild | 70 | ||||
-rw-r--r-- | games-strategy/boswars/files/boswars-2.7-gentoo.patch | 12 | ||||
-rw-r--r-- | games-strategy/boswars/files/boswars-2.7-scons-blows.patch | 27 | ||||
-rw-r--r-- | games-strategy/boswars/metadata.xml | 13 |
5 files changed, 129 insertions, 0 deletions
diff --git a/games-strategy/boswars/Manifest b/games-strategy/boswars/Manifest new file mode 100644 index 000000000000..ba8b15347275 --- /dev/null +++ b/games-strategy/boswars/Manifest @@ -0,0 +1,7 @@ +AUX boswars-2.7-gentoo.patch 606 BLAKE2B 0945db9d0b236de84676f31727b9974e0d67b1f8cb9f59e46178e0560166a6e506ecc4b555dc52fd4bd935dd253bbdce0ba243325cb1bc88a044c3de7f2e0aee SHA512 d538c1a5cd794b27c7f33989c5b1d3820cbcd7a4195d7cbd18dd92631aac4e5c2a3ab15447e178dcb2e51bcdcb00e939bf29c2f4b70b74a1ac44f841f52f6e98 +AUX boswars-2.7-scons-blows.patch 944 BLAKE2B 3594599a427660be601f21340a2a1ed992762b345988a3b6daffc766022234e455b166253aab35df7f67b6cd6a023268a5e9246e501e9f50117434ac45dcb288 SHA512 45e723feaa282760644e11a3e61e52726b6fffb388f7a6b5a0a47a97319e88341e238b46d8dbbe94cf178d5d18ea4ba8ebc257cd16dd98d8aa3cd5cff8d0eecd +DIST bos.png 620 BLAKE2B c1759f8be923d8d1e0465a3a51affdab71276c78ec6f771fbb856bf46551e798ddf018d03b49f3a40fef65ea3b379aa63ee64d25f2e99a392507e4ca13934af1 SHA512 6a15a5c82f9cff3462d498620a1dd1c7a2a460119689078157e61b27e7e5243a8ac2da7f01c1848d614167a3a748ca1f3e03c1f218479ede3a1c2c0ae85b3cc3 +DIST boswars-2.7-fixed-images-for-libpng-1.6.tar.xz 552956 BLAKE2B a719fbd72a5f170281efc98441051b8e8740e0cbdd2b4ed147220cacb934794786cb34dd183863f53ddf5b80bf101857f51bda086408b435ca349475c7c1a2c5 SHA512 794addf06cfd5c5bb0ad0988a90337a3a6332789de7bc942807602c84c4fafe4c4b12da63ae210ca220a1be6dcd9677fa9ddb1ae62a7d26a7748af35b07303dc +DIST boswars-2.7-src.tar.gz 77280735 BLAKE2B 641632faa07251f66cb2fd05efe79c398ba04a51dcbeecc97b3340346889fc6643da285e3976df2ed0ca50557f96a342ad9cc2d00de8cb65a02db65c2ac6c9e3 SHA512 2573c61684e83f356a80292adcf780cc001a4be2a31abba20e6f93ed6deaa38b8eca87f29935a4fe0edc9b4e0fdc3f78ddd709b8132aaaa048ffbcd6c498ec80 +EBUILD boswars-2.7-r2.ebuild 1535 BLAKE2B bf159bb4e1242c9cfded4cf8b479c6460bb38846b81b4efa8d7da1d1656ed5f12ed44ec07e5d0b08e9b5f761305d0435fde10415890c2413ae63ac9ff6aac341 SHA512 27decbfde53aff821aa3501781bbdbd9c5dd95dd0d7dcdcc69ae71157bcb377ea1aaf51303335d583ce277aa96177bef40eb7cc15172d424763d185d862ef3a8 +MISC metadata.xml 514 BLAKE2B 4f6163ce340262a203c22c2aad0c32973d66e3dcc79015ec4833c1c4dcb5decd182dc0643fee09aff12d123359ef9dcddd2d27771228406e8ca433879744fb19 SHA512 d253904f4c25482960a7815a05eccb8ff0c9acae13491713c47c98c90e012ad0cddc3e964529ab008e6db13602fe6b4d60df76a24ee66aac5f13efa13615440b 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..679d91a6ab3b --- /dev/null +++ b/games-strategy/boswars/boswars-2.7-r2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2018 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="https://www.boswars.org" +SRC_URI="https://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> |