diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-11-02 23:59:34 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2011-11-02 23:59:34 +0000 |
commit | 0bffae1c8a63e8c60877c8f2f8e0bcb014679891 (patch) | |
tree | 4aaf182b27f9421784d7618120c7c3fb7704e55d /games-util/pyfa/files | |
parent | Add CCPL-Attribution-2.5 to FREE-DOCUMENTS license group, acked by robbat2. (diff) | |
download | gentoo-2-0bffae1c8a63e8c60877c8f2f8e0bcb014679891.tar.gz gentoo-2-0bffae1c8a63e8c60877c8f2f8e0bcb014679891.tar.bz2 gentoo-2-0bffae1c8a63e8c60877c8f2f8e0bcb014679891.zip |
New ebuild for bug #352188, formerly maintained in Sunrise.
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'games-util/pyfa/files')
-rw-r--r-- | games-util/pyfa/files/configforced.py | 4 | ||||
-rw-r--r-- | games-util/pyfa/files/pyfa-1.0.3-staticPath.patch | 15 | ||||
-rw-r--r-- | games-util/pyfa/files/pyfa.desktop | 8 |
3 files changed, 27 insertions, 0 deletions
diff --git a/games-util/pyfa/files/configforced.py b/games-util/pyfa/files/configforced.py new file mode 100644 index 000000000000..a8008c217eda --- /dev/null +++ b/games-util/pyfa/files/configforced.py @@ -0,0 +1,4 @@ +# Gentoo-specific settings +pyfaPath = u'%%SITEDIR%%/pyfa' +staticPath = u'%%EPREFIX%%/usr/share/pyfa/staticdata' +gameDB = staticPath + "/eve.db" diff --git a/games-util/pyfa/files/pyfa-1.0.3-staticPath.patch b/games-util/pyfa/files/pyfa-1.0.3-staticPath.patch new file mode 100644 index 000000000000..4eff73006c62 --- /dev/null +++ b/games-util/pyfa/files/pyfa-1.0.3-staticPath.patch @@ -0,0 +1,15 @@ +Make staticPath settable from configforced + +--- a/config.py ++++ b/config.py +@@ -30,7 +30,9 @@ if savePath is None: + savePath = unicode(os.path.expanduser(os.path.join("~", ".pyfa")), sys.getfilesystemencoding()) + + # Static EVE Data from the staticdata repository, should be in the staticdata directory in our pyfa directory +-staticPath = os.path.join(pyfaPath, "staticdata") ++staticPath = getattr(configforced, "staticPath", None) ++if staticPath is None: ++ staticPath = os.path.join(pyfaPath, "staticdata") + + # The database where we store all the fits etc + saveDB = os.path.join(savePath, "saveddata.db") diff --git a/games-util/pyfa/files/pyfa.desktop b/games-util/pyfa/files/pyfa.desktop new file mode 100644 index 000000000000..07f3f0ee22a7 --- /dev/null +++ b/games-util/pyfa/files/pyfa.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Pyfa +Comment=Ship fitting application for EVE Online +Icon=pyfa +Terminal=false +Type=Application +Categories=Game;RolePlaying; +Exec=pyfa |