summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2011-11-02 23:59:34 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2011-11-02 23:59:34 +0000
commit07b242077570041669c0788004981b1a5e0b9ef3 (patch)
tree1ad3d1036557db281c4d5ead6222cfc41e14b49a /games-util/pyfa
parentAdd CCPL-Attribution-2.5 to FREE-DOCUMENTS license group, acked by robbat2. (diff)
downloadhistorical-07b242077570041669c0788004981b1a5e0b9ef3.tar.gz
historical-07b242077570041669c0788004981b1a5e0b9ef3.tar.bz2
historical-07b242077570041669c0788004981b1a5e0b9ef3.zip
New ebuild for bug #352188, formerly maintained in Sunrise.
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64
Diffstat (limited to 'games-util/pyfa')
-rw-r--r--games-util/pyfa/ChangeLog11
-rw-r--r--games-util/pyfa/Manifest17
-rw-r--r--games-util/pyfa/files/configforced.py4
-rw-r--r--games-util/pyfa/files/pyfa-1.0.3-staticPath.patch15
-rw-r--r--games-util/pyfa/files/pyfa.desktop8
-rw-r--r--games-util/pyfa/metadata.xml17
-rw-r--r--games-util/pyfa/pyfa-1.0.6.ebuild70
7 files changed, 142 insertions, 0 deletions
diff --git a/games-util/pyfa/ChangeLog b/games-util/pyfa/ChangeLog
new file mode 100644
index 000000000000..1eb4bf94a37b
--- /dev/null
+++ b/games-util/pyfa/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-util/pyfa
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.1 2011/11/02 23:59:34 tetromino Exp $
+
+*pyfa-1.0.6 (02 Nov 2011)
+
+ 02 Nov 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
+ +files/pyfa-1.0.3-staticPath.patch, +pyfa-1.0.6.ebuild,
+ +files/configforced.py, +files/pyfa.desktop, +metadata.xml:
+ New ebuild for bug #352188, formerly maintained in Sunrise.
+
diff --git a/games-util/pyfa/Manifest b/games-util/pyfa/Manifest
new file mode 100644
index 000000000000..d981607419ef
--- /dev/null
+++ b/games-util/pyfa/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX configforced.py 144 RMD160 defbe8a6b64ac742062d73df87e6b71b76ad53ab SHA1 fb159ffed205b303dd9bc0e18c65fd2436af377a SHA256 289eaf04b78739937b6d4e0c144136a9c8174d59a98304cb52dbcae6a28dda66
+AUX pyfa-1.0.3-staticPath.patch 614 RMD160 97ed39cc2522781d14e0c49dce0a8a79a382cbf8 SHA1 c9b280716b1d7a12f272c4b991a4ceca1aef7099 SHA256 eae228f31928750be19950a9268d5fe233a108b5af4eab436aa4db0fb5e5bab1
+AUX pyfa.desktop 155 RMD160 37f31fe5d62b2690b7761babb0dfeb8c0171ae80 SHA1 cb3a43b949524de9692f323cda9e7adad2efe218 SHA256 c395891d87eaaac64e3ba7954d623efaf161d906527099ed4b0c680c63a041eb
+DIST pyfa-1.0.6-incarna-src.tar.bz2 7914901 RMD160 b36dbb8cb2afd5ae396b7eafb3279d18cc6c5aa3 SHA1 c2964b46d3c46ba44930390129b0f39c959a4c28 SHA256 e63f6b54d2eeed660e24cb36d62318c28156f8a08b003ab10118d974a5e18f4b
+EBUILD pyfa-1.0.6.ebuild 1712 RMD160 4c5c3015c81e9a06d37def176e0f002ca5d24512 SHA1 1acb7b7b7f2a6d56f654f38612e3bd94d4ea00e2 SHA256 f68d399a1ab3e2726297c0585cc61fed34c7f6074f858801aa668af237a6c7b7
+MISC ChangeLog 475 RMD160 a333d18e501ea789201f7c7fd47437c086082fc4 SHA1 c30c79d7823bc8a245f84f8c3ae5fc8004cfbe8b SHA256 e263524dd51f0ca88275aeaa56042591dcdb0e6fa81cb722693e66a04e23f08f
+MISC metadata.xml 595 RMD160 6d804a6ba1ac41e068bb525bdfbf102557f48d9a SHA1 916ecfe82fc370f9d58d17e5bfe00c5b2ebc8719 SHA256 d156a4f7b850289a6d11948ef082c26cd67040d98bce8a9b7ac8ce6ec14c9eec
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iF4EAREIAAYFAk6x2WwACgkQdjK8w9WeBnADjAD8Dcxc5Bscq/Jl8niSg5+z3BnI
+ANCj9n5r7Rc+5JISYOsA/RDCFOu+lCDGkZdweQdQgBu3vg3InN3Xj/qH6OahSsjd
+=nZAh
+-----END PGP SIGNATURE-----
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
diff --git a/games-util/pyfa/metadata.xml b/games-util/pyfa/metadata.xml
new file mode 100644
index 000000000000..36dc9b2dff22
--- /dev/null
+++ b/games-util/pyfa/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>tetromino@gentoo.org</email>
+ <name>Alexandre Rostovtsev</name>
+</maintainer>
+<longdescription lang="en">
+Pyfa is the Python Fitting Assistant, a standalone application for creating
+fittings for the EVE Online SciFi MMORPG. It provides many advanced features
+such as graphs and full calculations of any possible combination of modules,
+fits, etc.
+</longdescription>
+<use>
+ <flag name="graph">Enable support for graphs</flag>
+</use>
+</pkgmetadata>
diff --git a/games-util/pyfa/pyfa-1.0.6.ebuild b/games-util/pyfa/pyfa-1.0.6.ebuild
new file mode 100644
index 000000000000..e73a95f79917
--- /dev/null
+++ b/games-util/pyfa/pyfa-1.0.6.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/pyfa-1.0.6.ebuild,v 1.1 2011/11/02 23:59:34 tetromino Exp $
+
+EAPI="4"
+PYTHON_DEPEND="2:2.6"
+PYTHON_USE_WITH="sqlite threads"
+
+inherit eutils python
+
+if [[ ${PV/_rc*/} == ${PV} ]] ; then
+ MY_PV=${PV}-incarna-src
+ FOLDER=stable/${PV}
+else
+ MY_PV=${PV/_rc/-stable-RC}-src
+ FOLDER=stable/${PV/*_rc/RC}
+fi
+
+DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
+HOMEPAGE="http://www.evefit.org/Pyfa"
+SRC_URI="http://dl.evefit.org/${FOLDER}/${PN}-${MY_PV}.tar.bz2"
+
+LICENSE="GPL-3 LGPL-2.1 CCPL-Attribution-2.5 free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+graph"
+
+RDEPEND="dev-python/sqlalchemy
+ >=dev-python/wxpython-2.8
+ graph? ( dev-python/matplotlib[wxwidgets] dev-python/numpy )"
+DEPEND=""
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ # make staticPath settable from configforced again
+ epatch "${FILESDIR}/${PN}-1.0.3-staticPath.patch"
+
+ python_convert_shebangs -r -x 2 .
+ sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
+ -e "s:%%EPREFIX%%:${EPREFIX}:" \
+ "${FILESDIR}/configforced.py" > configforced.py
+}
+
+src_install() {
+ local packagedir=$(python_get_sitedir)/${PN}
+ insinto "${packagedir}"
+ doins -r eos gui icons service config*.py info.py gpl.txt
+ exeinto "${packagedir}"
+ doexe ${PN}.py
+ dosym "${packagedir}/${PN}.py" /usr/bin/${PN}
+ insinto /usr/share/${PN}
+ doins -r staticdata
+ dodoc readme.txt
+ doicon icons/${PN}.png
+ domenu "${FILESDIR}/${PN}.desktop"
+}
+
+pkg_postinst() {
+ python_mod_optimize ${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup ${PN}
+}