summaryrefslogtreecommitdiff
path: root/games-strategy/asc
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/asc
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/asc')
-rw-r--r--games-strategy/asc/Manifest10
-rw-r--r--games-strategy/asc/asc-2.6.0.0-r1.ebuild74
-rw-r--r--games-strategy/asc/asc-2.6.0.0-r2.ebuild73
-rw-r--r--games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch32
-rw-r--r--games-strategy/asc/metadata.xml11
5 files changed, 200 insertions, 0 deletions
diff --git a/games-strategy/asc/Manifest b/games-strategy/asc/Manifest
new file mode 100644
index 000000000000..8a90647061dc
--- /dev/null
+++ b/games-strategy/asc/Manifest
@@ -0,0 +1,10 @@
+AUX asc-2.6.0.0-gcc6-nothrow-in-dtors.patch 741 SHA256 139442a3383e04977c0cd1a75878618ded2e112081d2bcf1662b05631a95f707 SHA512 d92086128b2b491a6f0c96d0b92f2e5ae9a7d521070405b7971fafa4ab953e6d4996784a6c5837b8cbf2811a18e043481c0278d960f6fe9804d8da68c8afa32d WHIRLPOOL 60b3fe77c10d2f919dbb32f2f772b1819a906174453545835166611cb5b06b8458c726621f702d68caf8aaeb766f5e935ced4cf67aac2208f4ca799716640c87
+DIST asc-2.6.0.0.tar.bz2 42280527 SHA256 e59caa549dc8d8a321211f60652cc809cbbf37d000ee85af790e676d9656cbbb SHA512 e1dea48bf87424fd65772e6d9bad96cf63e4062df5717bbc925562683782afc2d9788ea28e7147d905c3c0f6db3ef7c102a59022988c9fcf8aa6adba91dc5540 WHIRLPOOL 1662259bb1ab1c6f31b8ba227a7ac757f2a89ba4caacd9f2f5f3f737f60c31096f247cbc72eca61e572edce9ba4baeae6d5320e748a1415acc4ee0663f9db3b5
+DIST frontiers.ogg 4691844 SHA256 eabc9b07d1db07626fa817a30dad23b11aada059e32c08914d2d0cf1d58c7fff SHA512 8c2ce497519b3842fba2d39b5c6de6194584d64c0375d404535628898cb2e7a82433fc6008781381a80a6cbb24ff49162de3634ebcf28b17b0631c30668fd8af WHIRLPOOL a48a6596421a7a5b2d663af14e12c04db2a47c3bde8f1cc54dfe72c69b095613e6479eb408483679979f264d848911b34ee7edb56757734229d1990046bcdd5b
+DIST machine_wars.ogg 3138308 SHA256 bd7f330c06090d98e5ba0dac5a691af1804ba383b783b7b2f960bc2e53400a77 SHA512 2c1bab89b9397f52dcf7eedfc0dbc88d49a586ac0474c76a09a87a880712bf0fa408c03a65a5f5d322dee86e3b12cbc66d53cd6728e8fa34fa8f2ee2bbc06cd8 WHIRLPOOL 7a83910d48414ffe3687374efb661dd169801f244857a4f154d400b76477917bfa2db63dfddfc57544be95e413cf23e810b346f3a39d4f140454237b235a2eee
+DIST time_to_strike.ogg 3830679 SHA256 0334a027b8a45a5df88e1e3e7db9cace2def02396fbcc794d157289e41c9ad05 SHA512 2ed946116cac2ea63d401eb7415d5b3e4e548bc5a5b00b01a6f1c4db6a242895810dfefdf1ace9652f01dc934a70b756aa74d01630cfac97b19ce84a93b772ee WHIRLPOOL d7a280bc4041e449a96e4f79483110c4f86d099be4550fe70edd1882df81d8242fe6bf687079b6b2f608f879462c1a5ca84dae7e11e68ea97d93d0651d48ef4f
+EBUILD asc-2.6.0.0-r1.ebuild 1635 SHA256 d08bac957dcf82d9395d6c824a20a1d6cfa13dfb958a58dcab0fe76fb03f8f41 SHA512 e1c94894851f21b0ba11817c76984e343aa3cca6ac1d6c4fa4ca99e3c656a8ad1cebacadd9ed18b3fc4ca8d94fc69c21e106803fe0a8ca6e89db8f1f5c4e218f WHIRLPOOL 98cc49fd3a4af78e636dc005a67d786a6445b34aa34893707d0f0f5187b9265ce1a0c879a993a1421f51d2075e8bd426271bf4102e3d83d62e6c8193803bb414
+EBUILD asc-2.6.0.0-r2.ebuild 1599 SHA256 b4771885e3f249acfb45ad08d00a469ed17be1ea54c34b2ecf0742526753ec4b SHA512 e03b3ba88482b90b44847e92a657f58317f320af8c96f25ce5939f64a1f14cb6f4c43c6d84a36dd097be220b3c0d3e9d2d80536e4d737ad5293c075819c84b70 WHIRLPOOL 2251dce3d4ee7e2f19d973fc86a975ef8b84988fc9d8790b8101dc559938a590ed1867ca3a18d3ade65b0d9c619873f7fbca786a518b505f79eac4b671e430bb
+MISC ChangeLog 3133 SHA256 0c87bf34b4fbbbd5676b7605c2b2a1efe166ce46ed775dbb6381dacaa67289c3 SHA512 bb8f82d922e82d825706a5bb8b13364cc5c92b3a36a6dfeb7a79aa4089373e5e7887914101f21ae07b22133b30a17dfaeb7943492534c6f3ff5319da774d387c WHIRLPOOL eed0c2a64712a0f92990b6fd7817230c52d8aaed3736a2c48746b68e5add7b95b70c2cdde6c47137f490587d11d24ad9e66f3c7e06b7fc9810b78e97c5da8fe0
+MISC ChangeLog-2015 7253 SHA256 740f2bb8a1ebe234a32f83a656f90516b79097db5b232a69e8f05cc648333a28 SHA512 81dff049e2b68309f94f582318f527a337bb0248a9076f5f6eae20eb377cf627dc08edefe178d38ba4a731c36319fb4bef78f45f2420ca17adf3ed1d7c682e96 WHIRLPOOL 2280e89c4aad9e5a30f75db06db064d8507667a9e99771bf41e0ac264a3f1a772a388b350096c352d7f026deec302261ba5680f148c05c238f5b8bbf1abc6849
+MISC metadata.xml 329 SHA256 5a59809982d1f0c2b2d7bc73fb1ed99d23c41183cd24088832aa89d43265ad99 SHA512 1fa38f0da7bfc4cc3f1193758234379a9932c58742b914deebfc2d8101154e6303497b61c018eec7f52d5e8561ea2d7df89ad89f5d1cbe3f8a7732a1c922b051 WHIRLPOOL 4963b35a8e904627d2feae36130a51c304c6121c0e4b04137a5c42f269ca4b323646122f8f91a8c37f709ac86d78c676d2ba2c0ed023680276a40836b4fe053d
diff --git a/games-strategy/asc/asc-2.6.0.0-r1.ebuild b/games-strategy/asc/asc-2.6.0.0-r1.ebuild
new file mode 100644
index 000000000000..b70bbe1c2dcc
--- /dev/null
+++ b/games-strategy/asc/asc-2.6.0.0-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+WX_GTK_VER=3.0
+inherit eutils toolchain-funcs flag-o-matic wxwidgets games
+
+DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series"
+HOMEPAGE="http://www.asc-hq.org/"
+SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2
+ http://www.asc-hq.org/music/frontiers.ogg
+ http://www.asc-hq.org/music/time_to_strike.ogg
+ http://www.asc-hq.org/music/machine_wars.ogg"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="app-arch/bzip2
+ media-libs/libsdl[video]
+ media-libs/libpng:0
+ media-libs/sdl-image[gif,jpeg,png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-sound
+ dev-libs/boost
+ dev-games/physfs
+ media-libs/xvid
+ dev-libs/expat
+ media-libs/freetype
+ dev-lang/lua:0
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ dev-libs/libsigc++:1.2"
+
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ virtual/pkgconfig
+ app-arch/zip"
+
+PATCHES=( "${FILESDIR}/"/${P}-gcc6-nothrow-in-dtors.patch )
+
+src_unpack() {
+ local f
+
+ unpack ${P}.tar.bz2
+ for f in ${A}
+ do
+ case ${f} in
+ *ogg)
+ cp "${DISTDIR}/${f}" "${S}/data/music" || die
+ ;;
+ esac
+ done
+}
+
+src_configure() {
+ need-wxwidgets unicode
+ # Added --disable-paraguitest for bugs 26402 and 4488
+ # Added --disable-paragui for bug 61154 since it's not really used much
+ # and the case is well documented at http://www.asc-hq.org/
+ if [[ $(gcc-major-version) -eq 4 ]] ; then
+ replace-flags -O3 -O2
+ fi
+ egamesconf \
+ --disable-paraguitest \
+ --disable-paragui \
+ --datadir="${GAMES_DATADIR_BASE}"
+}
+
+src_install() {
+ default
+ dohtml -r doc/*
+ prepgamesdirs
+}
diff --git a/games-strategy/asc/asc-2.6.0.0-r2.ebuild b/games-strategy/asc/asc-2.6.0.0-r2.ebuild
new file mode 100644
index 000000000000..9f44b9d7d539
--- /dev/null
+++ b/games-strategy/asc/asc-2.6.0.0-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER=3.0
+inherit eutils toolchain-funcs flag-o-matic wxwidgets
+
+DESCRIPTION="turn based strategy game designed in the tradition of the Battle Isle series"
+HOMEPAGE="http://www.asc-hq.org/"
+SRC_URI="mirror://sourceforge/asc-hq/${P}.tar.bz2
+ http://www.asc-hq.org/music/frontiers.ogg
+ http://www.asc-hq.org/music/time_to_strike.ogg
+ http://www.asc-hq.org/music/machine_wars.ogg"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-arch/bzip2
+ dev-games/physfs
+ dev-lang/lua:0
+ dev-libs/boost
+ dev-libs/expat
+ dev-libs/libsigc++:1.2
+ media-libs/libpng:0
+ media-libs/libsdl[video]
+ media-libs/sdl-image[gif,jpeg,png]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-sound
+ media-libs/freetype
+ media-libs/xvid
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+
+DEPEND="${RDEPEND}
+ app-arch/zip
+ dev-lang/perl
+ virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/"/${P}-gcc6-nothrow-in-dtors.patch )
+
+src_unpack() {
+ local f
+
+ unpack ${P}.tar.bz2
+ for f in ${A}
+ do
+ case ${f} in
+ *ogg)
+ cp "${DISTDIR}/${f}" "${S}/data/music" || die
+ ;;
+ esac
+ done
+}
+
+src_configure() {
+ need-wxwidgets unicode
+ # Added --disable-paraguitest for bugs 26402 and 4488
+ # Added --disable-paragui for bug 61154 since it's not really used much
+ # and the case is well documented at http://www.asc-hq.org/
+ if [[ $(gcc-major-version) -eq 4 ]] ; then
+ replace-flags -O3 -O2
+ fi
+ econf \
+ --disable-paraguitest \
+ --disable-paragui \
+ --datadir="/usr/share"
+}
+
+src_install() {
+ default
+ dodoc -r doc/*
+}
diff --git a/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch b/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch
new file mode 100644
index 000000000000..e710b22f8c8b
--- /dev/null
+++ b/games-strategy/asc/files/asc-2.6.0.0-gcc6-nothrow-in-dtors.patch
@@ -0,0 +1,32 @@
+Bug: https://bugs.gentoo.org/612934
+Upstream Bug: https://sourceforge.net/p/asc-hq/patches/2/
+
+--- a/source/basestrm.cpp
++++ b/source/basestrm.cpp
+@@ -1728,7 +1728,6 @@
+ }
+ } catch ( ... ) {
+ displayLogMessage( 9, ASCString("~tn_c_lzw_filestream : caught exception") );
+- throw;
+ }
+ }
+
+--- a/source/simplestream.cpp
++++ b/source/simplestream.cpp
+@@ -43,6 +43,7 @@
+ #endif
+ #endif
+
++#include "util/messaginghub.h"
+
+ tnbufstream::tnbufstream ( )
+ {
+@@ -270,7 +271,7 @@
+
+ int res = fclose( fp );
+ if ( res != 0 )
+- throw tfileerror ( getDeviceName() + " : " + strerror(errno));
++ displayLogMessage( 9, ASCString( getDeviceName() + " : " + strerror(errno) ) );
+
+ _mode = uninitialized;
+
diff --git a/games-strategy/asc/metadata.xml b/games-strategy/asc/metadata.xml
new file mode 100644
index 000000000000..33170f2a7547
--- /dev/null
+++ b/games-strategy/asc/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">asc-hq</remote-id>
+ </upstream>
+</pkgmetadata>