public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-util/pyfa/files: pyfa-1.0.3-staticPath.patch configforced.py pyfa.desktop
@ 2011-11-02 23:59 Alexandre Rostovtsev (tetromino)
  0 siblings, 0 replies; only message in thread
From: Alexandre Rostovtsev (tetromino) @ 2011-11-02 23:59 UTC (permalink / raw
  To: gentoo-commits

tetromino    11/11/02 23:59:34

  Added:                pyfa-1.0.3-staticPath.patch configforced.py
                        pyfa.desktop
  Log:
  New ebuild for bug #352188, formerly maintained in Sunrise.
  
  (Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  games-util/pyfa/files/pyfa-1.0.3-staticPath.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa-1.0.3-staticPath.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa-1.0.3-staticPath.patch?rev=1.1&content-type=text/plain

Index: pyfa-1.0.3-staticPath.patch
===================================================================
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")



1.1                  games-util/pyfa/files/configforced.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/configforced.py?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/configforced.py?rev=1.1&content-type=text/plain

Index: configforced.py
===================================================================
# Gentoo-specific settings
pyfaPath = u'%%SITEDIR%%/pyfa'
staticPath = u'%%EPREFIX%%/usr/share/pyfa/staticdata'
gameDB = staticPath + "/eve.db"



1.1                  games-util/pyfa/files/pyfa.desktop

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa.desktop?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/files/pyfa.desktop?rev=1.1&content-type=text/plain

Index: pyfa.desktop
===================================================================
[Desktop Entry]
Name=Pyfa
Comment=Ship fitting application for EVE Online
Icon=pyfa
Terminal=false
Type=Application
Categories=Game;RolePlaying;
Exec=pyfa






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-11-02 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 23:59 [gentoo-commits] gentoo-x86 commit in games-util/pyfa/files: pyfa-1.0.3-staticPath.patch configforced.py pyfa.desktop Alexandre Rostovtsev (tetromino)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox