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: ChangeLog pyfa-1.1.18.ebuild pyfa-9999.ebuild pyfa-1.1.15.ebuild pyfa-1.1.16.ebuild
Date: Mon, 02 Dec 2013 02:09:36
Message-Id: 20131202020930.352B52004E@flycatcher.gentoo.org
1 tetromino 13/12/02 02:09:30
2
3 Modified: ChangeLog
4 Added: pyfa-1.1.18.ebuild pyfa-9999.ebuild
5 Removed: pyfa-1.1.15.ebuild pyfa-1.1.16.ebuild
6 Log:
7 Version bump for Rubicon (bug #492396, thanks to Denis Misiurca). Add live git ebuild. Drop old.
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
10
11 Revision Changes Path
12 1.24 games-util/pyfa/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?rev=1.24&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?rev=1.24&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?r1=1.23&r2=1.24
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v
21 retrieving revision 1.23
22 retrieving revision 1.24
23 diff -u -r1.23 -r1.24
24 --- ChangeLog 4 Sep 2013 04:59:30 -0000 1.23
25 +++ ChangeLog 2 Dec 2013 02:09:29 -0000 1.24
26 @@ -1,6 +1,15 @@
27 # ChangeLog for games-util/pyfa
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.23 2013/09/04 04:59:30 tetromino Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.24 2013/12/02 02:09:29 tetromino Exp $
31 +
32 +*pyfa-9999 (02 Dec 2013)
33 +*pyfa-1.1.18 (02 Dec 2013)
34 +
35 + 02 Dec 2013; Alexandre Rostovtsev <tetromino@g.o> -pyfa-1.1.15.ebuild,
36 + -pyfa-1.1.16.ebuild, +pyfa-1.1.18.ebuild, +pyfa-9999.ebuild,
37 + -files/pyfa-1.1.4-wxversion.patch, -files/pyfa-1.1.16-wxversion.patch:
38 + Version bump for Rubicon (bug #492396, thanks to Denis Misiurca). Add live
39 + git ebuild. Drop old.
40
41 *pyfa-1.1.16 (04 Sep 2013)
42
43
44
45
46 1.1 games-util/pyfa/pyfa-1.1.18.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-1.1.18.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-1.1.18.ebuild?rev=1.1&content-type=text/plain
50
51 Index: pyfa-1.1.18.ebuild
52 ===================================================================
53 # Copyright 1999-2013 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/pyfa-1.1.18.ebuild,v 1.1 2013/12/02 02:09:29 tetromino Exp $
56
57 EAPI="5"
58 PYTHON_COMPAT=( python{2_6,2_7} )
59 PYTHON_REQ_USE="sqlite,threads"
60
61 inherit eutils gnome2-utils python-r1
62
63 DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
64 HOMEPAGE="https://github.com/DarkFenX/Pyfa"
65
66 LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm"
67 SLOT="0"
68 if [[ ${PV} = 9999 ]]; then
69 EGIT_REPO_URI="https://github.com/DarkFenX/Pyfa.git"
70 inherit git-2
71 KEYWORDS=""
72 else
73 SRC_URI="https://github.com/DarkFenX/Pyfa/releases/download/v${PV}/${P}-rubicon-1.0-src.zip"
74 KEYWORDS="~amd64 ~arm ~x86"
75 fi
76 IUSE="+graph"
77
78 RDEPEND="dev-python/sqlalchemy[${PYTHON_USEDEP}]
79 dev-python/wxpython:2.8[${PYTHON_USEDEP}]
80 graph? (
81 dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
82 dev-python/numpy[${PYTHON_USEDEP}] )
83 ${PYTHON_DEPS}"
84 DEPEND="app-arch/unzip"
85
86 S=${WORKDIR}/${PN}
87
88 src_prepare() {
89 # get rid of CRLF line endings introduced in 1.1.10 so patches work
90 edos2unix config.py pyfa.py service/settings.py
91
92 # make staticPath settable from configforced again
93 epatch "${FILESDIR}/${PN}-1.1-staticPath.patch"
94
95 # do not try to save exported html to python sitedir
96 epatch "${FILESDIR}/${PN}-1.1.8-html-export-path.patch"
97
98 # fix import path in the main script for systemwide installation
99 epatch "${FILESDIR}/${PN}-1.1.11-import-pyfa.patch"
100 touch __init__.py
101
102 pyfa_make_configforced() {
103 mkdir -p "${BUILD_DIR}" || die
104 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
105 -e "s:%%EPREFIX%%:${EPREFIX}:" \
106 "${FILESDIR}/configforced.py" > "${BUILD_DIR}/configforced.py"
107 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
108 pyfa.py > "${BUILD_DIR}/pyfa"
109 }
110 python_foreach_impl pyfa_make_configforced
111 }
112
113 src_install() {
114 pyfa_py_install() {
115 local packagedir=$(python_get_sitedir)/${PN}
116 insinto "${packagedir}"
117 doins -r eos gui icons service config*.py __init__.py gpl.txt
118 [[ -e info.py ]] && doins info.py # only in zip releases
119 doins "${BUILD_DIR}/configforced.py"
120 python_doscript "${BUILD_DIR}/pyfa"
121 python_optimize
122 }
123 python_foreach_impl pyfa_py_install
124
125 insinto /usr/share/${PN}
126 doins -r staticdata
127 dodoc readme.txt
128 insinto /usr/share/icons/hicolor/32x32/apps
129 doins icons/pyfa.png
130 insinto /usr/share/icons/hicolor/64x64/apps
131 newins icons/pyfa64.png pyfa.png
132 domenu "${FILESDIR}/${PN}.desktop"
133 }
134
135 pkg_preinst() {
136 gnome2_icon_savelist
137 }
138
139 pkg_postinst() {
140 gnome2_icon_cache_update
141 }
142
143 pkg_postrm() {
144 gnome2_icon_cache_update
145 }
146
147
148
149 1.1 games-util/pyfa/pyfa-9999.ebuild
150
151 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-9999.ebuild?rev=1.1&view=markup
152 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-9999.ebuild?rev=1.1&content-type=text/plain
153
154 Index: pyfa-9999.ebuild
155 ===================================================================
156 # Copyright 1999-2013 Gentoo Foundation
157 # Distributed under the terms of the GNU General Public License v2
158 # $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/pyfa-9999.ebuild,v 1.1 2013/12/02 02:09:29 tetromino Exp $
159
160 EAPI="5"
161 PYTHON_COMPAT=( python{2_6,2_7} )
162 PYTHON_REQ_USE="sqlite,threads"
163
164 inherit eutils gnome2-utils python-r1
165
166 DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
167 HOMEPAGE="https://github.com/DarkFenX/Pyfa"
168
169 LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm"
170 SLOT="0"
171 if [[ ${PV} = 9999 ]]; then
172 EGIT_REPO_URI="https://github.com/DarkFenX/Pyfa.git"
173 inherit git-2
174 KEYWORDS=""
175 else
176 SRC_URI="https://github.com/DarkFenX/Pyfa/releases/download/v${PV}/${P}-rubicon-1.0-src.zip"
177 KEYWORDS="~amd64 ~arm ~x86"
178 fi
179 IUSE="+graph"
180
181 RDEPEND="dev-python/sqlalchemy[${PYTHON_USEDEP}]
182 dev-python/wxpython:2.8[${PYTHON_USEDEP}]
183 graph? (
184 dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
185 dev-python/numpy[${PYTHON_USEDEP}] )
186 ${PYTHON_DEPS}"
187 DEPEND="app-arch/unzip"
188
189 S=${WORKDIR}/${PN}
190
191 src_prepare() {
192 # get rid of CRLF line endings introduced in 1.1.10 so patches work
193 edos2unix config.py pyfa.py service/settings.py
194
195 # make staticPath settable from configforced again
196 epatch "${FILESDIR}/${PN}-1.1-staticPath.patch"
197
198 # do not try to save exported html to python sitedir
199 epatch "${FILESDIR}/${PN}-1.1.8-html-export-path.patch"
200
201 # fix import path in the main script for systemwide installation
202 epatch "${FILESDIR}/${PN}-1.1.11-import-pyfa.patch"
203 touch __init__.py
204
205 pyfa_make_configforced() {
206 mkdir -p "${BUILD_DIR}" || die
207 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
208 -e "s:%%EPREFIX%%:${EPREFIX}:" \
209 "${FILESDIR}/configforced.py" > "${BUILD_DIR}/configforced.py"
210 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
211 pyfa.py > "${BUILD_DIR}/pyfa"
212 }
213 python_foreach_impl pyfa_make_configforced
214 }
215
216 src_install() {
217 pyfa_py_install() {
218 local packagedir=$(python_get_sitedir)/${PN}
219 insinto "${packagedir}"
220 doins -r eos gui icons service config*.py __init__.py gpl.txt
221 [[ -e info.py ]] && doins info.py # only in zip releases
222 doins "${BUILD_DIR}/configforced.py"
223 python_doscript "${BUILD_DIR}/pyfa"
224 python_optimize
225 }
226 python_foreach_impl pyfa_py_install
227
228 insinto /usr/share/${PN}
229 doins -r staticdata
230 dodoc readme.txt
231 insinto /usr/share/icons/hicolor/32x32/apps
232 doins icons/pyfa.png
233 insinto /usr/share/icons/hicolor/64x64/apps
234 newins icons/pyfa64.png pyfa.png
235 domenu "${FILESDIR}/${PN}.desktop"
236 }
237
238 pkg_preinst() {
239 gnome2_icon_savelist
240 }
241
242 pkg_postinst() {
243 gnome2_icon_cache_update
244 }
245
246 pkg_postrm() {
247 gnome2_icon_cache_update
248 }