summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-07-23 22:14:38 +0200
committerNicolas Kaiser <nikai@nikai.net>2010-07-23 22:14:38 +0200
commitcf32d834154af3ff3e27eb54eaabfe58dcece55e (patch)
tree8fec675fdd19e05518661d1fd941b115eeefb525 /games-simulation
parentnvtt: use cmake-utils (diff)
downloadnikai-cf32d834154af3ff3e27eb54eaabfe58dcece55e.tar.gz
nikai-cf32d834154af3ff3e27eb54eaabfe58dcece55e.tar.bz2
nikai-cf32d834154af3ff3e27eb54eaabfe58dcece55e.zip
vs: enhanced test for vssetup in postinst, wrapped long lines
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/vegastrike/Manifest2
-rw-r--r--games-simulation/vegastrike/vegastrike-9999.ebuild15
2 files changed, 10 insertions, 7 deletions
diff --git a/games-simulation/vegastrike/Manifest b/games-simulation/vegastrike/Manifest
index 99ddd93..5c935bc 100644
--- a/games-simulation/vegastrike/Manifest
+++ b/games-simulation/vegastrike/Manifest
@@ -1,2 +1,2 @@
-EBUILD vegastrike-9999.ebuild 4923 RMD160 3d45d717abe793487ef4aac10f51a061ffdeeb75 SHA1 464be54b68b42e1ff4fe3a269d540c886a9806d2 SHA256 c90f5294be01d8cd42b2b2900a227163b898b3c447773997c14c49eaf56d756a
+EBUILD vegastrike-9999.ebuild 4979 RMD160 1048108b4d3a7ed83542aa571f1e46a32b616844 SHA1 7f8109a795fa1daa7a31fb22c2fe9cfa458abe6c SHA256 0ec30b88582d9d5a561a5fd549265c7a104e9c3cb9e588e0d6a580ab9e642433
MISC metadata.xml 661 RMD160 9590d3f59a89cefc68fc8d47a51e070c8ad62355 SHA1 ef1c5ae3612fd06b27369eb7e73dbf5d79439af7 SHA256 b84cf9e11ce628e37a3778ce5f1ce28a93e803847e5fc168130d039f396c8cf9
diff --git a/games-simulation/vegastrike/vegastrike-9999.ebuild b/games-simulation/vegastrike/vegastrike-9999.ebuild
index f0ac9ea..f6be640 100644
--- a/games-simulation/vegastrike/vegastrike-9999.ebuild
+++ b/games-simulation/vegastrike/vegastrike-9999.ebuild
@@ -42,8 +42,8 @@ S="${WORKDIR}"
pkg_setup() {
games_pkg_setup
if ! use gtk; then
- ewarn "Without USE=gtk vssetup will not be built."
- ewarn "You will have to manually edit ~/.vegastrike/vegastrike.config."
+ ewarn "Without USE=gtk vssetup will not get built. You will"
+ ewarn "have to manually edit ~/.vegastrike/vegastrike.config."
fi
# FIXME: is this still a problem?
@@ -60,7 +60,8 @@ src_unpack() {
if [ ! -d "${svn}/vegastrike" ]; then
ESVN_MODULE="vegastrike"
ESVN_MODULE_DIR="${ESVN_REPO_URI}/${ESVN_MODULE}"
- subversion_fetch $ESVN_MODULE_DIR $ESVN_MODULE || die "Fetching vegastrike failed"
+ subversion_fetch $ESVN_MODULE_DIR $ESVN_MODULE || \
+ die "Fetching vegastrike failed"
fi
einfo "Copying source to work directory..."
@@ -157,9 +158,11 @@ EOF
|| die "Creation of mesher failed"
newgamesbin vegastrike/vssetup vssetup \
- || ewarn "vssetup was not built. You will have to manually edit ~/.vegastrike/vegastrike.config."
+ || { ewarn "vssetup was not built. You will have to"; \
+ ewarn "manually edit ~/.vegastrike/vegastrike.config."; }
- make_desktop_entry "vegastrike" "Vegastrike" "${GAMES_DATADIR}/${PN}/data/vegastrike.xpm"
+ make_desktop_entry "vegastrike" "Vegastrike" \
+ "${GAMES_DATADIR}/${PN}/data/vegastrike.xpm"
prepgamesdirs
}
@@ -167,7 +170,7 @@ EOF
pkg_postinst() {
games_pkg_postinst
einfo "First run vsinstall to install your account into ~/.vegastrike,"
- if use gtk; then
+ if [ -e "${GAMES_BINDIR}/vssetup" ]; then
einfo "then run vssetup to configure Vega Strike."
else
einfo "then edit ~/.vegastrike/vegastrike.config."