diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-08 00:17:20 +0000 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2013-01-08 00:17:20 +0000 |
commit | 1986d2911fc9f4128c77c0b3080b881436583d0d (patch) | |
tree | e1993d819b2d29bda93b98b2b774dae9b25e2fde /games-strategy/seven-kingdoms | |
parent | Version bump (diff) | |
download | gentoo-2-1986d2911fc9f4128c77c0b3080b881436583d0d.tar.gz gentoo-2-1986d2911fc9f4128c77c0b3080b881436583d0d.tar.bz2 gentoo-2-1986d2911fc9f4128c77c0b3080b881436583d0d.zip |
Add 'network' USE-flag, make dependency on media-libs/sdl-net optionally controlled through this flag
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-strategy/seven-kingdoms')
-rw-r--r-- | games-strategy/seven-kingdoms/ChangeLog | 7 | ||||
-rw-r--r-- | games-strategy/seven-kingdoms/metadata.xml | 3 | ||||
-rw-r--r-- | games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild | 15 |
3 files changed, 20 insertions, 5 deletions
diff --git a/games-strategy/seven-kingdoms/ChangeLog b/games-strategy/seven-kingdoms/ChangeLog index 68546758cef9..38a87ed45794 100644 --- a/games-strategy/seven-kingdoms/ChangeLog +++ b/games-strategy/seven-kingdoms/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-strategy/seven-kingdoms # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/seven-kingdoms/ChangeLog,v 1.3 2013/01/08 00:00:49 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/seven-kingdoms/ChangeLog,v 1.4 2013/01/08 00:17:20 pinkbyte Exp $ + + 08 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> seven-kingdoms-2.14.4.ebuild, + metadata.xml: + Add 'network' USE-flag, make dependency on media-libs/sdl-net optionally + controlled through this flag *seven-kingdoms-2.14.4 (08 Jan 2013) diff --git a/games-strategy/seven-kingdoms/metadata.xml b/games-strategy/seven-kingdoms/metadata.xml index b6b8956cde34..06782422aed6 100644 --- a/games-strategy/seven-kingdoms/metadata.xml +++ b/games-strategy/seven-kingdoms/metadata.xml @@ -5,4 +5,7 @@ <email>pinkbyte@gentoo.org</email> <name>Sergey Popov</name> </maintainer> + <use> + <flag name="network">Enable support for multiplayer via <pkg>media-libs/sdl-net</pkg></flag> + </use> </pkgmetadata> diff --git a/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild index 65de7005db01..e39f725afb18 100644 --- a/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild +++ b/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild,v 1.1 2013/01/08 00:00:49 pinkbyte Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/seven-kingdoms/seven-kingdoms-2.14.4.ebuild,v 1.2 2013/01/08 00:17:20 pinkbyte Exp $ EAPI=5 @@ -20,11 +20,11 @@ SRC_URI="mirror://sourceforge/skfans/${MY_PN}-source-${PV}.tar.bz2 LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="network" DEPEND="media-libs/libsdl[X,video] - media-libs/sdl-net - media-libs/openal" + media-libs/openal + network? ( media-libs/sdl-net )" RDEPEND="${DEPEND}" PDEPEND="games-strategy/seven-kingdoms-data" @@ -32,9 +32,16 @@ S="${WORKDIR}/${MY_P}" DOCS=( README ) +src_prepare() { + sed -i -e '/#include <player_desc.h>/a\#include <string.h>' src/multiplayer/common/player_desc.cpp || die 'sed failed' + + autotools-utils_src_prepare +} + src_configure() { # In current state debugging works only on Windows :-/ egamesconf \ + $(use_enable network) --disable-debug \ --without-directx \ --without-wine \ |