summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-08-02 20:06:02 +0200
committerNicolas Kaiser <nikai@nikai.net>2010-08-02 20:06:02 +0200
commitaecb1786ceff38d4bcc7251118e8ec04b16f202b (patch)
tree03a9b7bab1624c1ba88296cd82199e981d434d23
parentvs: added threads USE flag (diff)
downloadnikai-aecb1786ceff38d4bcc7251118e8ec04b16f202b.tar.gz
nikai-aecb1786ceff38d4bcc7251118e8ec04b16f202b.tar.bz2
nikai-aecb1786ceff38d4bcc7251118e8ec04b16f202b.zip
vs: added server USE flag, and build targets
Added server USE flag, allowing to build without server. Added build targets explicitly, avoiding to build unused targets.
-rw-r--r--games-simulation/vegastrike/Manifest4
-rw-r--r--games-simulation/vegastrike/metadata.xml1
-rw-r--r--games-simulation/vegastrike/vegastrike-9999.ebuild27
3 files changed, 23 insertions, 9 deletions
diff --git a/games-simulation/vegastrike/Manifest b/games-simulation/vegastrike/Manifest
index cd7b4f8..a460318 100644
--- a/games-simulation/vegastrike/Manifest
+++ b/games-simulation/vegastrike/Manifest
@@ -1,2 +1,2 @@
-EBUILD vegastrike-9999.ebuild 4313 RMD160 845799d54fdecc5d8cfec0caff232bae4f771964 SHA1 e74f1355e087dc4da1df583cc0f218e444a69dad SHA256 0c95bfadef53f836ea9b36347b19aacff5a9fff5fbc78f287b34cbe6edf1a3b9
-MISC metadata.xml 874 RMD160 7c37a6eea60200987c9d0d3eabc91047332507a5 SHA1 f5095aa8175af0e8468424b52252c1ddf22f83e4 SHA256 2eece9cc437c435697609032149871f4ed8921e3dc76d2646bef0cea14bd908f
+EBUILD vegastrike-9999.ebuild 4587 RMD160 c57f1936c8f3316ab4e065b56183bfa3178c1cb2 SHA1 ff81d00c9aae48fe797b24ba7277d04c1dc1411f SHA256 0efdf10b7c77935b4e08b7c4479a3d0f6f00bc0c1a58cb0d83edd0adca5724c2
+MISC metadata.xml 934 RMD160 f9e5b9ddecb5c9d5a70174596cab0b9a753675f4 SHA1 386a1b539f4a4a27deef2fc77b77ac56c19163b1 SHA256 a57d51762fd027dc2eca92c99400ee4fb1cfcd747da586840c1bc17a609663b8
diff --git a/games-simulation/vegastrike/metadata.xml b/games-simulation/vegastrike/metadata.xml
index d11235b..5f75dc2 100644
--- a/games-simulation/vegastrike/metadata.xml
+++ b/games-simulation/vegastrike/metadata.xml
@@ -11,6 +11,7 @@
<flag name='gtk'>Uses <pkg>x11-libs/gtk+</pkg> for graphical configuration (vssetup).</flag>
<flag name='ffmpeg'>Enables support for <pkg>media-video/ffmpeg</pkg>. Recommended.</flag>
<flag name='threads'>Enables preliminary support for SMP configuration.</flag>
+ <flag name='server'>Builds the Vega Strike server.</flag>
<flag name='debug'>Enable debugging support.</flag>
</use>
</pkgmetadata>
diff --git a/games-simulation/vegastrike/vegastrike-9999.ebuild b/games-simulation/vegastrike/vegastrike-9999.ebuild
index cdb940c..476a11b 100644
--- a/games-simulation/vegastrike/vegastrike-9999.ebuild
+++ b/games-simulation/vegastrike/vegastrike-9999.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="http://vegastrike.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="boost ffmpeg gtk threads debug"
+IUSE="boost ffmpeg gtk threads server debug"
# FIXME: check dependencies
RDEPEND="
@@ -105,7 +105,11 @@ src_compile() {
CMAKE_BUILD_TYPE="Release"
fi
- cmake-utils_src_configure
+ if use server; then
+ cmake-utils_src_configure vegastrike vegaserver vssetup
+ else
+ cmake-utils_src_configure vegastrike vssetup
+ fi
if use threads; then
sed -i \
@@ -113,7 +117,11 @@ src_compile() {
vegastrike_build/CMakeCache.txt
fi
- cmake-utils_src_make
+ if use server; then
+ cmake-utils_src_make vegastrike vegaserver vssetup
+ else
+ cmake-utils_src_make vegastrike vssetup
+ fi
}
src_install() {
@@ -137,8 +145,11 @@ EOF
|| die "Creation of vegastrike (the binary) failed"
dogamesbin vsinstall \
|| die "Creation of vsinstall failed"
- dogamesbin vegastrike_build/vegaserver \
- || die "Creation of vegaserver failed"
+
+ if use server; then
+ dogamesbin vegastrike_build/vegaserver \
+ || die "Creation of vegaserver failed"
+ fi
# dogamesbin vegastrike/mesher \
# || die "Creation of mesher failed"
@@ -162,6 +173,8 @@ pkg_postinst() {
else
einfo "then edit ~/.vegastrike/vegastrike.config."
fi
- einfo "Run vegastrike to start Vega Strike;"
- einfo "To start Vega Strike Server run vegaserver."
+ einfo "Run vegastrike to start Vega Strike."
+ if use server; then
+ einfo "To start Vega Strike Server run vegaserver."
+ fi
}