summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Kaiser <nikai@nikai.net>2010-07-21 12:41:23 +0200
committerNicolas Kaiser <nikai@nikai.net>2010-07-21 12:41:23 +0200
commitbdc61973eda1008f268b480b3567becff8d37a7a (patch)
tree6a100f8e951532570f1340d12908f5e2e8460bc8 /games-simulation
parentinitial commit (diff)
downloadnikai-bdc61973eda1008f268b480b3567becff8d37a7a.tar.gz
nikai-bdc61973eda1008f268b480b3567becff8d37a7a.tar.bz2
nikai-bdc61973eda1008f268b480b3567becff8d37a7a.zip
install python scripts into games-libdir and compile them to byte code
Diffstat (limited to 'games-simulation')
-rw-r--r--games-simulation/vegastrike-data/Manifest4
-rw-r--r--games-simulation/vegastrike-data/metadata.xml2
-rw-r--r--games-simulation/vegastrike-data/vegastrike-data-9999.ebuild14
3 files changed, 14 insertions, 6 deletions
diff --git a/games-simulation/vegastrike-data/Manifest b/games-simulation/vegastrike-data/Manifest
index f6a80fb..87006af 100644
--- a/games-simulation/vegastrike-data/Manifest
+++ b/games-simulation/vegastrike-data/Manifest
@@ -1,2 +1,2 @@
-EBUILD vegastrike-data-9999.ebuild 1754 RMD160 d6d86ce9cc0430533491ca5dd87277e91b6990a1 SHA1 b01077088de681976f305efd021fec8c8987909d SHA256 0257f145422ca0d9066d7dca4d580be1cab61505ced1189cf094ff448faa6aef
-MISC metadata.xml 599 RMD160 f72a40de6ab575b080e83159f217823c9ae242e8 SHA1 e95e0172986a1fd0c89288d7ce2c9c3d9f2ec0fd SHA256 fc132bb4479504e400941fcf25eb0434468a556386f7f01f06da4009805dddfe
+EBUILD vegastrike-data-9999.ebuild 2516 RMD160 158cb06f46427c58cf11ef5fd7f1e6a8f9cc5f62 SHA1 93d8877e25821df2d4fe6b2715f02a6a7d235c1c SHA256 18d7386b3de0bc75eb8ac9a73cddabf5bd8e39b91f75857a66ba4092716370a4
+MISC metadata.xml 618 RMD160 13689f0a29e93676d4f3107055838145c9ccd43f SHA1 9fe6eae28e42208977fd4c0a82922fba6cfcac09 SHA256 61ca24fc4767b041e877c2ba71cf70011dc1d49824baffe3a6deed4685ffd3b4
diff --git a/games-simulation/vegastrike-data/metadata.xml b/games-simulation/vegastrike-data/metadata.xml
index cda9271..354d5d1 100644
--- a/games-simulation/vegastrike-data/metadata.xml
+++ b/games-simulation/vegastrike-data/metadata.xml
@@ -5,5 +5,5 @@
<maintainer>
<email>nikai@nikai.net</email>
</maintainer>
-<longdescription>Vega Strike is an Open Source 3D Action-Space-Sim that lets you trade, fight, and explore in a vast universe. The data branch of Vega Strike contains 3D models, textures and backgrounds, and also documentation. Parts of this branch are generated from original master files in the master branch. The data branch is required to play the game.</longdescription>
+<longdescription>Vega Strike is an Open Source 3D Action-Space-Sim that lets you trade, fight, and explore in a vast universe. The data branch of Vega Strike contains 3D models, textures and backgrounds, and also documentation and python scripts. Parts of this branch are generated from original master files in the master branch. The data branch is required to play the game.</longdescription>
</pkgmetadata>
diff --git a/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild b/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild
index d6751bd..1987a32 100644
--- a/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild
+++ b/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild
@@ -3,7 +3,7 @@
# $Header: $
# Derived from bug 65084
-inherit eutils games
+inherit eutils python games
[ "$PV" == "9999" ] && inherit subversion
ESVN_REPO_URI="https://vegastrike.svn.sourceforge.net/svnroot/vegastrike/trunk"
@@ -60,12 +60,20 @@ src_install() {
doicon "${S}/data/vegastrike.xpm"
- dodir "${GAMES_DATADIR}/vegastrike"
- cp -r data/ "${D}/${GAMES_DATADIR}/vegastrike/" || die "cp failed (data)"
+ insinto "$(games_get_libdir)"/vegastrike
+ doins -r data/bases data/modules || die "doins py failed"
+
+ insinto "${GAMES_DATADIR}"/vegastrike/data
+ doins -r data/{ai,animations,cgi-accountserver,cockpits,communications,documentation,history,meshes,mission,movies,music,programs,sectors,sounds,sprites,techniques,textures,units,universe} || die "doins data failed"
+ doins data/{New_Game,Vega.icns,Version.txt,cursor1.cur,factions.xml,favicon.ico,master_part_list.csv,setup.config,uninstall.ico,vega-license.txt,vega.ico,vegastrike.config,vegastrike.ico,vegastrike.xpm,vsinstall.sh,vslogo.xpm,weapon_list.xml} || die "doins data failed"
+
+ dosym "$(games_get_libdir)"/vegastrike/bases "${GAMES_DATADIR}"/vegastrike/data/bases
+ dosym "$(games_get_libdir)"/vegastrike/modules "${GAMES_DATADIR}"/vegastrike/data/modules
prepgamesdirs
}
pkg_postinst() {
+ python_mod_optimize "$(games_get_libdir)/vegastrike"
games_pkg_postinst
}