From 59844fc7ef8e774d933a8824b8334002c1f81519 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Sun, 27 Dec 2015 15:18:17 -0800 Subject: [PATCH] Add games-util/pyfa 1.17.1 --- games-util/pyfa/ChangeLog | 82 +++++++++ games-util/pyfa/ChangeLog-2015 | 211 ++++++++++++++++++++++++ games-util/pyfa/Manifest | 9 + games-util/pyfa/files/configforced.py | 4 + games-util/pyfa/files/pyfa-1.17.1.patch | 76 +++++++++ games-util/pyfa/files/pyfa.desktop | 8 + games-util/pyfa/metadata.xml | 20 +++ games-util/pyfa/pyfa-1.17.1.ebuild | 90 ++++++++++ games-util/pyfa/pyfa-9999.ebuild | 101 ++++++++++++ 9 files changed, 601 insertions(+) create mode 100644 games-util/pyfa/ChangeLog create mode 100644 games-util/pyfa/ChangeLog-2015 create mode 100644 games-util/pyfa/Manifest create mode 100644 games-util/pyfa/files/configforced.py create mode 100644 games-util/pyfa/files/pyfa-1.17.1.patch create mode 100644 games-util/pyfa/files/pyfa.desktop create mode 100644 games-util/pyfa/metadata.xml create mode 100644 games-util/pyfa/pyfa-1.17.1.ebuild create mode 100644 games-util/pyfa/pyfa-9999.ebuild diff --git a/games-util/pyfa/ChangeLog b/games-util/pyfa/ChangeLog new file mode 100644 index 0000000..b6d4bfd --- /dev/null +++ b/games-util/pyfa/ChangeLog @@ -0,0 +1,82 @@ +# ChangeLog for games-util/pyfa +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# (auto-generated from git log) + +*pyfa-9999 (09 Aug 2015) +*pyfa-1.12.0 (09 Aug 2015) + + 09 Aug 2015; Robin H. Johnson +files/configforced.py, + +files/pyfa-1.1.11-import-pyfa.patch, +files/pyfa-1.1.20-staticPath.patch, + +files/pyfa-1.1.8-html-export-path.patch, +files/pyfa.desktop, + +metadata.xml, +pyfa-1.12.0.ebuild, +pyfa-9999.ebuild: + proj/gentoo: Initial commit + + This commit represents a new era for Gentoo: + Storing the gentoo-x86 tree in Git, as converted from CVS. + + This commit is the start of the NEW history. + Any historical data is intended to be grafted onto this point. + + Creation process: + 1. Take final CVS checkout snapshot + 2. Remove ALL ChangeLog* files + 3. Transform all Manifests to thin + 4. Remove empty Manifests + 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ + 5.1. Do not touch files with -kb/-ko keyword flags. + + Signed-off-by: Robin H. Johnson + X-Thanks: Alec Warner - did the GSoC 2006 migration + tests + X-Thanks: Robin H. Johnson - infra guy, herding this + project + X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo + developer, wrote Git features for the migration + X-Thanks: Brian Harring - wrote much python to improve + cvs2svn + X-Thanks: Rich Freeman - validation scripts + X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 + work in migration + X-Thanks: Michał Górny - scripts, QA, nagging + X-Thanks: All of other Gentoo developers - many ideas and lots of paint on + the bikeshed + + 24 Aug 2015; Justin Lecher metadata.xml: + Use https by default + + Convert all URLs for sites supporting encrypted connections from http to + https + + Signed-off-by: Justin Lecher + + 24 Aug 2015; Mike Gilbert metadata.xml: + Revert DOCTYPE SYSTEM https changes in metadata.xml + + repoman does not yet accept the https version. + This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450. + + Bug: https://bugs.gentoo.org/552720 + +*pyfa-1.15.0 (04 Oct 2015) + + 04 Oct 2015; Alexandre Rostovtsev + -pyfa-1.12.0.ebuild, +pyfa-1.15.0.ebuild, pyfa-9999.ebuild: + bump to 1.15.0 for Vanguard + + Gentoo-Bug: 562078 + Reported-by: Captain Crutches + Package-Manager: portage-2.2.22 + + 07 Oct 2015; Alexandre Rostovtsev + +files/configforced-1.15.1.py, +files/pyfa-1.15.1-import-pyfa.patch, + +files/pyfa-1.15.1-staticdata.patch, pyfa-9999.ebuild: + update live ebuild + + Update patches for upstream code changes, update dependencies, install + images in a compressed zip since upstream code now allows it, and switch + to git-r3.eclass. + + Gentoo-Bug: 562080 + Reported-by: Captain Crutches + Package-Manager: portage-2.2.22 + diff --git a/games-util/pyfa/ChangeLog-2015 b/games-util/pyfa/ChangeLog-2015 new file mode 100644 index 0000000..1db0ac3 --- /dev/null +++ b/games-util/pyfa/ChangeLog-2015 @@ -0,0 +1,211 @@ +# ChangeLog for games-util/pyfa +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.34 2015/06/27 01:55:53 tetromino Exp $ + +*pyfa-1.12.0 (27 Jun 2015) + + 27 Jun 2015; Alexandre Rostovtsev -pyfa-1.11.0.ebuild, + +pyfa-1.12.0.ebuild: + Belated version bump. + +*pyfa-1.11.0 (22 May 2015) + + 22 May 2015; Alexandre Rostovtsev -pyfa-1.8.1.ebuild, + -pyfa-1.9.0.ebuild, +pyfa-1.11.0.ebuild: + Version bump for Mosaic. + + 08 Apr 2015; Michał Górny pyfa-1.8.1.ebuild, + pyfa-1.9.0.ebuild, pyfa-9999.ebuild: + Drop old Python implementations + +*pyfa-1.9.0 (21 Feb 2015) + + 21 Feb 2015; Alexandre Rostovtsev +pyfa-1.9.0.ebuild: + Version bump for Tiamat. + +*pyfa-1.8.1 (17 Feb 2015) + + 17 Feb 2015; Alexandre Rostovtsev -pyfa-1.2.0.ebuild, + -pyfa-1.2.1.ebuild, +pyfa-1.8.1.ebuild, pyfa-9999.ebuild: + Very late version bump for Proteus (bug #519416, tthanks to Hedin Ejdesgaard + Møller, Stefan Reimer et al); fix missing dep (bug #505192, thanks to Nick + Wallingford) and new readme location (bug #533094, thanks to Martin McCourt). + +*pyfa-1.2.1 (28 Jun 2014) + + 28 Jun 2014; Alexandre Rostovtsev +pyfa-1.2.1.ebuild: + Version bump, see https://github.com/DarkFenX/Pyfa/releases/tag/v1.2.1 for + the announcement. + +*pyfa-1.2.0 (04 Jun 2014) + + 04 Jun 2014; Alexandre Rostovtsev -pyfa-1.1.21.ebuild, + -pyfa-1.1.22.ebuild, +pyfa-1.2.0.ebuild, pyfa-9999.ebuild: + Version bump for Kronos; lots of improvements, see + https://github.com/DarkFenX/Pyfa/releases/tag/v1.2.0 for the announcement. + Remove obsolete. + +*pyfa-1.1.22 (17 Mar 2014) + + 17 Mar 2014; Alexandre Rostovtsev -pyfa-1.1.20.ebuild, + +pyfa-1.1.22.ebuild: + Bump for Rubicon 1.3; includes HTML export update and improved fleet booster + UI. + +*pyfa-1.1.21 (20 Feb 2014) + + 20 Feb 2014; Alexandre Rostovtsev +pyfa-1.1.21.ebuild: + Version bump, adds 'traits' tab. + +*pyfa-1.1.20 (05 Feb 2014) + + 05 Feb 2014; Alexandre Rostovtsev -pyfa-1.1.18.ebuild, + +pyfa-1.1.20.ebuild, pyfa-9999.ebuild, +files/pyfa-1.1.20-staticPath.patch, + -files/pyfa-1.1-staticPath.patch: + Version bump for Rubicon 1.1; remove obsolete version. + +*pyfa-9999 (02 Dec 2013) +*pyfa-1.1.18 (02 Dec 2013) + + 02 Dec 2013; Alexandre Rostovtsev -pyfa-1.1.15.ebuild, + -pyfa-1.1.16.ebuild, +pyfa-1.1.18.ebuild, +pyfa-9999.ebuild, + -files/pyfa-1.1.4-wxversion.patch, -files/pyfa-1.1.16-wxversion.patch: + Version bump for Rubicon (bug #492396, thanks to Denis Misiurca). Add live + git ebuild. Drop old. + +*pyfa-1.1.16 (04 Sep 2013) + + 04 Sep 2013; Alexandre Rostovtsev -pyfa-1.1.14.ebuild, + +pyfa-1.1.16.ebuild, +files/pyfa-1.1.16-wxversion.patch: + Version bump, adds Odyssey 1.1 updates and new import/export features. Drop + old. + + 30 Jul 2013; Sergey Popov pyfa-1.1.15.ebuild: + Add ~arm keyword, wrt bug #478340 + +*pyfa-1.1.15 (20 Jul 2013) + + 20 Jul 2013; Alexandre Rostovtsev -pyfa-1.1.13.ebuild, + pyfa-1.1.14.ebuild, +pyfa-1.1.15.ebuild: + Version bump with various updates and UI fixes. Update homepage and source + URI. Drop old. + +*pyfa-1.1.14 (06 Jun 2013) + + 06 Jun 2013; Alexandre Rostovtsev -pyfa-1.1.12.ebuild, + +pyfa-1.1.14.ebuild: + Bump, adds Odyssey 1.0 updates. Drop old. + +*pyfa-1.1.13 (31 Mar 2013) + + 31 Mar 2013; Alexandre Rostovtsev -pyfa-1.1.11.ebuild, + pyfa-1.1.12.ebuild, +pyfa-1.1.13.ebuild: + Bump, adds Retribution 1.1.6 updates and various fixes. Update python use + deps. Drop old. + + 07 Feb 2013; Ulrich Müller pyfa-1.1.11.ebuild, + pyfa-1.1.12.ebuild: + Move Creative Commons licenses to shorter names. + +*pyfa-1.1.12 (09 Dec 2012) + + 09 Dec 2012; Alexandre Rostovtsev -pyfa-1.1.10.ebuild, + +pyfa-1.1.12.ebuild: + Bump, adds Retribution 1.0.2 updates. Drop old. + +*pyfa-1.1.11 (05 Dec 2012) + + 05 Dec 2012; Alexandre Rostovtsev + -pyfa-1.1.9-r1.ebuild, +pyfa-1.1.11.ebuild, + +files/pyfa-1.1.11-import-pyfa.patch: + Bump, adds Retribution 1.0 updates (bug #446030, thanks to Matthew Marlowe). + Update to EAPI5 and python-r1.eclass. Drop old. + +*pyfa-1.1.10 (23 Nov 2012) + + 23 Nov 2012; Alexandre Rostovtsev -pyfa-1.1.8.ebuild, + pyfa-1.1.9-r1.ebuild, +pyfa-1.1.10.ebuild: + Bump, fixes Marauder bonuses and some rig stacking bugs. Update license, + homepage. Drop old. + +*pyfa-1.1.9-r1 (11 Aug 2012) + + 11 Aug 2012; Alexandre Rostovtsev -pyfa-1.1.9.ebuild, + +pyfa-1.1.9-r1.ebuild: + Upstream source tarball was updated but not renamed. + +*pyfa-1.1.9 (08 Aug 2012) + + 08 Aug 2012; Alexandre Rostovtsev -pyfa-1.1.7.ebuild, + +pyfa-1.1.9.ebuild: + Bump, adds Inferno 1.2 updates. Drop old. + +*pyfa-1.1.8 (16 Jul 2012) + + 16 Jul 2012; Alexandre Rostovtsev -pyfa-1.1.6.ebuild, + +pyfa-1.1.8.ebuild, +files/pyfa-1.1.8-html-export-path.patch: + Bump, adds Inferno 1.1 updates and html export for viewing fits in the + in-game browser. Drop old. + +*pyfa-1.1.7 (24 May 2012) + + 24 May 2012; Alexandre Rostovtsev -pyfa-1.1.5.ebuild, + +pyfa-1.1.7.ebuild: + Bump, adds Inferno updates, implants import/export. Drop old. + +*pyfa-1.1.6 (02 May 2012) + + 02 May 2012; Alexandre Rostovtsev + -pyfa-1.1.4-r1.ebuild, +pyfa-1.1.6.ebuild: + Version bump with updates for Escalation to Inferno. Drop old. + +*pyfa-1.1.5 (03 Apr 2012) + + 03 Apr 2012; Alexandre Rostovtsev +pyfa-1.1.5.ebuild: + Bump, adds Crucible 1.6 updates. + +*pyfa-1.1.4-r1 (21 Mar 2012) + + 21 Mar 2012; Alexandre Rostovtsev -pyfa-1.1.3.ebuild, + -pyfa-1.1.4.ebuild, +pyfa-1.1.4-r1.ebuild, +files/pyfa-1.1.4-wxversion.patch: + Pyfa only supports wxpython:2.8. Fix dependency, add patch to select correct + slot of wxpython at runtime, and drop broken versions. Thanks to Samuli + Suominen for noticing. + +*pyfa-1.1.4 (21 Mar 2012) + + 21 Mar 2012; Alexandre Rostovtsev -pyfa-1.1.2.ebuild, + +pyfa-1.1.4.ebuild: + Bump with UI improvements and afterburner fixes. Drop old. + +*pyfa-1.1.3 (14 Mar 2012) + + 14 Mar 2012; Alexandre Rostovtsev -pyfa-1.1.1.ebuild, + +pyfa-1.1.3.ebuild: + Bump, adds Crucible 1.5 updates. Drop old. + +*pyfa-1.1.2 (26 Jan 2012) + + 26 Jan 2012; Alexandre Rostovtsev -pyfa-1.1.ebuild, + +pyfa-1.1.2.ebuild: + Bump, adds Crucible 1.1 updates. Drop old. + +*pyfa-1.1.1 (26 Dec 2011) + + 26 Dec 2011; Alexandre Rostovtsev + -files/pyfa-1.0.3-staticPath.patch, -pyfa-1.0.6.ebuild, +pyfa-1.1.1.ebuild: + Bump. Adds Crucible 1.0.2 updates, proxy support, bugfixes and UI + improvements. Install icons in all available sizes. Drop obsolete version. + +*pyfa-1.1 (30 Nov 2011) + + 30 Nov 2011; Alexandre Rostovtsev +pyfa-1.1.ebuild, + +files/pyfa-1.1-staticPath.patch: + Bump. Adds support for Crucible expansion, fleet boosting, wormhole effects. + +*pyfa-1.0.6 (02 Nov 2011) + + 02 Nov 2011; Alexandre Rostovtsev + +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 0000000..abde49a --- /dev/null +++ b/games-util/pyfa/Manifest @@ -0,0 +1,9 @@ +AUX configforced.py 141 SHA256 05e6751b455174da357a8ecdae30b78f5953c8beb6152f8101e5217aec571e44 SHA512 9328a0aa7044367677913db58521395aec7bf32b6adf79478695161fbdc15d44c191b321830baba74890fdf9ede3954739526b44c371d2a5daa906b98b36b035 WHIRLPOOL cac257d4488cb40d7cc48287404de9120f99b2173eb2e0226a7afd182fec4e82e3eb006597430ea3c7a8c04ba249137d351198be7602d1571c18d5b23b474319 +AUX pyfa-1.17.1.patch 2418 SHA256 2f93be142f844d952c4407fc2a72f86be3a086ee3349e9c7639faf99a33236c3 SHA512 d4f0e703a557e633afb33c145ab658687ff0c4970ab698eb0bb9052b6940e676ec507e9c7472117ec1f216a04883db47c82064aa17adcde6f203852543d385f9 WHIRLPOOL 2d80bea2b6b2ec547970f614b22613c8ed0dae759872f8d0cb9353f79760d17fe986fd68ab7bb0a0de1c8b90c69953b4c115f44035958287cc8191710ff9e04f +AUX pyfa.desktop 155 SHA256 c395891d87eaaac64e3ba7954d623efaf161d906527099ed4b0c680c63a041eb SHA512 d62a44e4e724057581a360cc1eb10aa4c7a0c50cb1d95137e58ba14db17644c852da2582be8d508c50b7359e7f99dc893d78d15cb11c46967a9b7896ff667781 WHIRLPOOL 3f68f0cd6942380fc040a3578b054ea7cdb86fbd751ed17aa1fe1e1eda3c7ee6c35645c28c6529605856d5e74765ccd7037abe96c3efe2a5a54cc7fcb6c53793 +DIST pyfa-1.17.1.tar.gz 6673517 SHA256 d31b61091394939e5a6fb992eb7d9d215294544b405ae51c5bbc6d91507e5dd2 SHA512 717528854acdfc6ae1265da3c6a6c8e9124f3f2555ffd9c27609e1ea2e7f69fbcf4756c5fb832fe8d37a4a24bee5174f76078d59dce21e630abf47d1dbbdfacd WHIRLPOOL 009cc4780c6219a0d3833c8834c6bf4493c5c12f5b70a573943b5621ce974352a3acdb26eb1043e2d1fe4801815bdd8bf6c02e6f540db7cb0af968cb44dc7b5e +EBUILD pyfa-1.17.1.ebuild 2394 SHA256 2a2c4193ea1d2ebb4d9cf87904c2413b1327ab6b8ccecefcb0df62a9c4ac8fe8 SHA512 7207d1123872e5aef0e591e96b654d98ee3179f32c9f661e3deab855a54d9f62e7ced78a4e3296f223b86138e85e789ef0fc5ea7b34d577c906c7320eebc225d WHIRLPOOL d76bb9d76d2285c384fc4943ff6d620cdd7f8c1fc144bf6542003d04db12da15c4a48562d65947b7ea72dd4e72cb442b56c7c14df60538a6760c903d2ee5cc03 +EBUILD pyfa-9999.ebuild 2724 SHA256 4ffe6a8cacf04a2bf2b778cebf53684b30b2d1beb687ae5eddf21b425b693eb9 SHA512 b62e6b27b4baff8fb9d5597e6bdc2136ed870eb9616881db4cbaf1e38d9a085ab714fe8896ebc8669747d2b8f03329dc01a1b5fa45ca682d81c616d19b08571d WHIRLPOOL 3b49a1b8e3ea415a970638114cd400518cbaa2475ac2da29cdb2d5a209d3570ad3911223d8ca6325f3502f58af3eed9faed2d20b69cc4dcf02234a8b5503118b +MISC ChangeLog 2989 SHA256 5abb34364a140d3df30b954ffd03e5a03b3ecdbb1769c983939bc3b2416722c6 SHA512 e0631cc26b2979c4951e63fc120cf055911c44854ed769e3da77e5959d121b8629e7285cabd0ea176645012bac797b2cd1be1e43dcdd415abf2da84475d2512a WHIRLPOOL 51957d18e2c9da499992ba670b7b761543a2c33cd305e7d99aea53d17f8d9d7473635d3d8d07a310f29b762e5f9ee7d244d28c8196bab4ca309d6f2874bde379 +MISC ChangeLog-2015 7528 SHA256 6885426d9198c460a12f8199364898e94f6954678e31773618c20d8708b8f8e3 SHA512 f0d56186c9be334021ba9e4467a5eb549a598b201ba4d515e4006d9c0bc7957f08d4a540b7305a0104a8c7c161f3308c115a267d3d99ac400aea71e5dccbb674 WHIRLPOOL 0c8d74f85d19cfff46ea8a9d4fb917e3bfb007a42b8e2f3bb74f3710619cb2df1c9dba6e3e2e7ded8f445f3e85e0e78729cd9e834049d443baf84a20a935b302 +MISC metadata.xml 693 SHA256 96b6a4c0acb0fe7960a4bfe5c5320e33eccb877c67e1fb1033ebe142cbd1349e SHA512 9cb67e32cd833d2bbdc08c6c34a5167cfe0b8d6029849126e6caf237b0074372a96911a55d75300a3f6d2708e958c04d79557287b3ac997b4bd2943cb6f090c2 WHIRLPOOL a6e7ca0dfc90dd6f219526158a18c402079ce6f9865a856fdc40b2fe55763be995ab5565c313536b99823e80fc7310ea579e5989210f5077f02f67af1e20af4d diff --git a/games-util/pyfa/files/configforced.py b/games-util/pyfa/files/configforced.py new file mode 100644 index 0000000..9b5b8c5 --- /dev/null +++ b/games-util/pyfa/files/configforced.py @@ -0,0 +1,4 @@ +# Gentoo-specific settings +pyfaPath = u'%%SITEDIR%%/pyfa' +gameDB = u'%%EPREFIX%%/usr/share/pyfa/eve.db' +imgs = u'%%EPREFIX%%/usr/share/pyfa' diff --git a/games-util/pyfa/files/pyfa-1.17.1.patch b/games-util/pyfa/files/pyfa-1.17.1.patch new file mode 100644 index 0000000..41cba86 --- /dev/null +++ b/games-util/pyfa/files/pyfa-1.17.1.patch @@ -0,0 +1,76 @@ +Only in Pyfa-1.17.1.orig/: __init__.py +diff -ru Pyfa-1.17.1/config.py Pyfa-1.17.1.orig/config.py +--- Pyfa-1.17.1/config.py 2015-12-27 14:50:39.738752494 -0800 ++++ Pyfa-1.17.1.orig/config.py 2015-12-27 14:53:07.194131679 -0800 +@@ -28,6 +28,8 @@ + savePath = None + saveDB = None + gameDB = None ++imgsZIP = None ++imgs = None + + + class StreamToLogger(object): +@@ -66,6 +68,8 @@ + global savePath + global saveDB + global gameDB ++ global imgsZIP ++ global imgs + global saveInRoot + + if debug: +@@ -121,7 +125,18 @@ + # The database where the static EVE data from the datadump is kept. + # This is not the standard sqlite datadump but a modified version created by eos + # maintenance script +- gameDB = os.path.join(pyfaPath, "eve.db") ++ gameDB = getattr(configforced, "gameDB", None) ++ if gameDB is None: ++ gameDB = os.path.join(pyfaPath, "eve.db") ++ ++ imgsZIP = getattr(configforced, "imgsZIP", None) ++ if imgsZIP is None: ++ imgsZIP = os.path.join(pyfaPath, "imgs.zip") ++ ++ imgs = getattr(configforced, "imgs", None) ++ if imgs is None: ++ imgs = os.path.join(pyfaPath, "imgs") ++ + + ## DON'T MODIFY ANYTHING BELOW ## + import eos.config +diff -ru Pyfa-1.17.1/gui/bitmapLoader.py Pyfa-1.17.1.orig/gui/bitmapLoader.py +--- Pyfa-1.17.1/gui/bitmapLoader.py 2015-12-10 17:18:02.000000000 -0800 ++++ Pyfa-1.17.1.orig/gui/bitmapLoader.py 2015-12-27 14:53:07.163131390 -0800 +@@ -31,7 +31,7 @@ + class BitmapLoader(): + + try: +- archive = zipfile.ZipFile(os.path.join(config.pyfaPath, 'imgs.zip'), 'r') ++ archive = zipfile.ZipFile(config.imgsZIP, 'r') + except IOError: + archive = None + +@@ -85,7 +85,7 @@ + except KeyError: + print "Missing icon file from zip: {0}".format(path) + else: +- path = os.path.join(config.pyfaPath, 'imgs', location, filename) ++ path = os.path.join(config.imgs, 'imgs', location, filename) + + if os.path.exists(path): + return wx.Image(path) +diff -ru Pyfa-1.17.1/pyfa.py Pyfa-1.17.1.orig/pyfa.py +--- Pyfa-1.17.1/pyfa.py 2015-12-27 14:50:39.739752504 -0800 ++++ Pyfa-1.17.1.orig/pyfa.py 2015-12-27 14:53:07.194131679 -0800 +@@ -20,6 +20,9 @@ + + import sys + import re ++ ++import os ++sys.path.append(os.path.join("%%SITEDIR%%", "pyfa")) + import config + + from optparse import OptionParser, BadOptionError, AmbiguousOptionError diff --git a/games-util/pyfa/files/pyfa.desktop b/games-util/pyfa/files/pyfa.desktop new file mode 100644 index 0000000..07f3f0e --- /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 0000000..39be7ad --- /dev/null +++ b/games-util/pyfa/metadata.xml @@ -0,0 +1,20 @@ + + + + + tetromino@gentoo.org + Alexandre Rostovtsev + + +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. + + + Enable support for graphs + + + DarkFenX/Pyfa + + diff --git a/games-util/pyfa/pyfa-1.17.1.ebuild b/games-util/pyfa/pyfa-1.17.1.ebuild new file mode 100644 index 0000000..c1306e8 --- /dev/null +++ b/games-util/pyfa/pyfa-1.17.1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite,threads" + +inherit eutils gnome2-utils python-r1 + +DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online" +HOMEPAGE="https://github.com/DarkFenX/Pyfa" + +LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm" +SLOT="0" +if [[ ${PV} = 9999 ]]; then + EGIT_REPO_URI="https://github.com/DarkFenX/Pyfa.git" + inherit git-2 + KEYWORDS="" +else + SRC_URI="https://github.com/DarkFenX/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi +IUSE="+graph" + +RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/wxpython:2.8[${PYTHON_USEDEP}] + graph? ( + dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] ) + ${PYTHON_DEPS}" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/Pyfa-${PV} + +src_prepare() { + # get rid of CRLF line endings introduced in 1.1.10 so patches work + edos2unix config.py pyfa.py service/settings.py + + # fix import path in the main script for systemwide installation + # make imgs and evd.db load from systemwide installation + epatch "${FILESDIR}/${PN}-1.17.1.patch" + touch __init__.py + + pyfa_make_configforced() { + mkdir -p "${BUILD_DIR}" || die + sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ + -e "s:%%EPREFIX%%:${EPREFIX}:" \ + "${FILESDIR}/configforced.py" > "${BUILD_DIR}/configforced.py" + sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ + pyfa.py > "${BUILD_DIR}/pyfa" + } + python_foreach_impl pyfa_make_configforced +} + +src_install() { + pyfa_py_install() { + local packagedir=$(python_get_sitedir)/${PN} + insinto "${packagedir}" + doins -r eos gui service utils config*.py __init__.py LICENSE + [[ -e info.py ]] && doins info.py # only in zip releases + doins "${BUILD_DIR}/configforced.py" + python_doscript "${BUILD_DIR}/pyfa" + python_optimize + } + python_foreach_impl pyfa_py_install + + insinto /usr/share/${PN} + doins -r imgs + doins eve.db + dodoc README.md + insinto /usr/share/icons/hicolor/32x32/apps + doins imgs/gui/pyfa.png + insinto /usr/share/icons/hicolor/64x64/apps + newins imgs/gui/pyfa64.png pyfa.png + domenu "${FILESDIR}/${PN}.desktop" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-util/pyfa/pyfa-9999.ebuild b/games-util/pyfa/pyfa-9999.ebuild new file mode 100644 index 0000000..5e11d00 --- /dev/null +++ b/games-util/pyfa/pyfa-9999.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite,threads" + +inherit eutils gnome2-utils python-r1 + +DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online" +HOMEPAGE="https://github.com/DarkFenX/Pyfa" + +LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm" +SLOT="0" +if [[ ${PV} = 9999 ]]; then + EGIT_REPO_URI="https://github.com/DarkFenX/Pyfa.git" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/DarkFenX/Pyfa/archive/v${PV}.tar.gz -> pyfa-${PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~x86" +fi +IUSE="+graph" + +RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/wxpython:3.0[${PYTHON_USEDEP}] + graph? ( + dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] ) + ${PYTHON_DEPS}" +DEPEND="app-arch/zip" + +[[ ${PV} = 9999 ]] || S=${WORKDIR}/Pyfa-${PV} + +src_prepare() { + # get rid of CRLF line endings introduced in 1.1.10 so patches work + edos2unix config.py pyfa.py service/settings.py + + # load gameDB and images from separate staticdata directory + epatch "${FILESDIR}/${PN}-1.15.1-staticdata.patch" + + # do not try to save exported html to python sitedir + epatch "${FILESDIR}/${PN}-1.1.8-html-export-path.patch" + + # fix import path in the main script for systemwide installation + epatch "${FILESDIR}/${PN}-1.15.1-import-pyfa.patch" + touch __init__.py + + pyfa_make_configforced() { + mkdir -p "${BUILD_DIR}" || die + sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ + -e "s:%%EPREFIX%%:${EPREFIX}:" \ + "${FILESDIR}/configforced-1.15.1.py" > "${BUILD_DIR}/configforced.py" + sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \ + pyfa.py > "${BUILD_DIR}/pyfa" + } + python_foreach_impl pyfa_make_configforced +} + +src_install() { + pyfa_py_install() { + local packagedir=$(python_get_sitedir)/${PN} + insinto "${packagedir}" + doins -r eos gui service utils config*.py __init__.py + [[ -e info.py ]] && doins info.py # only in zip releases + doins "${BUILD_DIR}/configforced.py" + python_doscript "${BUILD_DIR}/pyfa" + python_optimize + } + python_foreach_impl pyfa_py_install + + insinto /usr/share/${PN} + doins eve.db + + einfo "Compressing images ..." + pushd imgs > /dev/null || die + zip -r imgs.zip * || die "zip failed" + doins imgs.zip + popd > /dev/null || die + + dodoc README.md + insinto /usr/share/icons/hicolor/32x32/apps + doins imgs/gui/pyfa.png + insinto /usr/share/icons/hicolor/64x64/apps + newins imgs/gui/pyfa64.png pyfa.png + domenu "${FILESDIR}/${PN}.desktop" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +}