Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-util/pyfa: pyfa-1.2.1.ebuild ChangeLog
Date: Sun, 29 Jun 2014 00:16:39
Message-Id: 20140629001634.D2F822004E@flycatcher.gentoo.org
1 tetromino 14/06/29 00:16:34
2
3 Modified: ChangeLog
4 Added: pyfa-1.2.1.ebuild
5 Log:
6 Version bump, see https://github.com/DarkFenX/Pyfa/releases/tag/v1.2.1 for the announcement.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
9
10 Revision Changes Path
11 1.29 games-util/pyfa/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?rev=1.29&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?rev=1.29&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?r1=1.28&r2=1.29
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v
20 retrieving revision 1.28
21 retrieving revision 1.29
22 diff -u -r1.28 -r1.29
23 --- ChangeLog 4 Jun 2014 13:56:31 -0000 1.28
24 +++ ChangeLog 29 Jun 2014 00:16:34 -0000 1.29
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-util/pyfa
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.28 2014/06/04 13:56:31 tetromino Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.29 2014/06/29 00:16:34 tetromino Exp $
30 +
31 +*pyfa-1.2.1 (28 Jun 2014)
32 +
33 + 28 Jun 2014; Alexandre Rostovtsev <tetromino@g.o> +pyfa-1.2.1.ebuild:
34 + Version bump, see https://github.com/DarkFenX/Pyfa/releases/tag/v1.2.1 for
35 + the announcement.
36
37 *pyfa-1.2.0 (04 Jun 2014)
38
39
40
41
42 1.1 games-util/pyfa/pyfa-1.2.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-1.2.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-1.2.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pyfa-1.2.1.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/pyfa-1.2.1.ebuild,v 1.1 2014/06/29 00:16:34 tetromino Exp $
52
53 EAPI="5"
54 PYTHON_COMPAT=( python{2_6,2_7} )
55 PYTHON_REQ_USE="sqlite,threads"
56
57 inherit eutils gnome2-utils python-r1
58
59 DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
60 HOMEPAGE="https://github.com/DarkFenX/Pyfa"
61
62 LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm"
63 SLOT="0"
64 if [[ ${PV} = 9999 ]]; then
65 EGIT_REPO_URI="https://github.com/DarkFenX/Pyfa.git"
66 inherit git-2
67 KEYWORDS=""
68 else
69 SRC_URI="https://github.com/DarkFenX/Pyfa/releases/download/v${PV}/${P}-kronos-1.0-src.zip"
70 KEYWORDS="~amd64 ~arm ~x86"
71 fi
72 IUSE="+graph"
73
74 RDEPEND="dev-python/sqlalchemy[${PYTHON_USEDEP}]
75 dev-python/wxpython:2.8[${PYTHON_USEDEP}]
76 graph? (
77 dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
78 dev-python/numpy[${PYTHON_USEDEP}] )
79 ${PYTHON_DEPS}"
80 DEPEND="app-arch/unzip"
81
82 S=${WORKDIR}/${PN}
83
84 src_prepare() {
85 # get rid of CRLF line endings introduced in 1.1.10 so patches work
86 edos2unix config.py pyfa.py service/settings.py
87
88 # make staticPath settable from configforced again
89 epatch "${FILESDIR}/${PN}-1.1.20-staticPath.patch"
90
91 # do not try to save exported html to python sitedir
92 epatch "${FILESDIR}/${PN}-1.1.8-html-export-path.patch"
93
94 # fix import path in the main script for systemwide installation
95 epatch "${FILESDIR}/${PN}-1.1.11-import-pyfa.patch"
96 touch __init__.py
97
98 pyfa_make_configforced() {
99 mkdir -p "${BUILD_DIR}" || die
100 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
101 -e "s:%%EPREFIX%%:${EPREFIX}:" \
102 "${FILESDIR}/configforced.py" > "${BUILD_DIR}/configforced.py"
103 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
104 pyfa.py > "${BUILD_DIR}/pyfa"
105 }
106 python_foreach_impl pyfa_make_configforced
107 }
108
109 src_install() {
110 pyfa_py_install() {
111 local packagedir=$(python_get_sitedir)/${PN}
112 insinto "${packagedir}"
113 doins -r eos gui icons service config*.py __init__.py gpl.txt
114 [[ -e info.py ]] && doins info.py # only in zip releases
115 doins "${BUILD_DIR}/configforced.py"
116 python_doscript "${BUILD_DIR}/pyfa"
117 python_optimize
118 }
119 python_foreach_impl pyfa_py_install
120
121 insinto /usr/share/${PN}
122 doins -r staticdata
123 dodoc readme.txt
124 insinto /usr/share/icons/hicolor/32x32/apps
125 doins icons/pyfa.png
126 insinto /usr/share/icons/hicolor/64x64/apps
127 newins icons/pyfa64.png pyfa.png
128 domenu "${FILESDIR}/${PN}.desktop"
129 }
130
131 pkg_preinst() {
132 gnome2_icon_savelist
133 }
134
135 pkg_postinst() {
136 gnome2_icon_cache_update
137 }
138
139 pkg_postrm() {
140 gnome2_icon_cache_update
141 }