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.14.ebuild pyfa-1.1.12.ebuild
Date: Thu, 06 Jun 2013 03:47:31
Message-Id: 20130606034723.8CB052171D@flycatcher.gentoo.org
1 tetromino 13/06/06 03:47:23
2
3 Modified: ChangeLog
4 Added: pyfa-1.1.14.ebuild
5 Removed: pyfa-1.1.12.ebuild
6 Log:
7 Bump, adds Odyssey 1.0 updates. Drop old.
8
9 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61)
10
11 Revision Changes Path
12 1.20 games-util/pyfa/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?rev=1.20&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?rev=1.20&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/ChangeLog?r1=1.19&r2=1.20
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v
21 retrieving revision 1.19
22 retrieving revision 1.20
23 diff -u -r1.19 -r1.20
24 --- ChangeLog 31 Mar 2013 17:55:31 -0000 1.19
25 +++ ChangeLog 6 Jun 2013 03:47:23 -0000 1.20
26 @@ -1,6 +1,12 @@
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.19 2013/03/31 17:55:31 tetromino Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/ChangeLog,v 1.20 2013/06/06 03:47:23 tetromino Exp $
31 +
32 +*pyfa-1.1.14 (06 Jun 2013)
33 +
34 + 06 Jun 2013; Alexandre Rostovtsev <tetromino@g.o> -pyfa-1.1.12.ebuild,
35 + +pyfa-1.1.14.ebuild:
36 + Bump, adds Odyssey 1.0 updates. Drop old.
37
38 *pyfa-1.1.13 (31 Mar 2013)
39
40
41
42
43 1.1 games-util/pyfa/pyfa-1.1.14.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-1.1.14.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-util/pyfa/pyfa-1.1.14.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pyfa-1.1.14.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/pyfa-1.1.14.ebuild,v 1.1 2013/06/06 03:47:23 tetromino Exp $
53
54 EAPI="5"
55 PYTHON_COMPAT=( python{2_6,2_7} )
56 PYTHON_REQ_USE="sqlite,threads"
57
58 inherit eutils gnome2-utils python-r1
59
60 if [[ ${PV/_rc*/} == ${PV} ]] ; then
61 MY_PV=${PV}-odyssey-1.0-src
62 FOLDER=pyfa/stable/${PV}
63 else
64 MY_PV=${PV/_rc/-stable-RC}-src
65 FOLDER=pyfa/stable/${PV/*_rc/RC}
66 fi
67
68 DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
69 HOMEPAGE="http://www.evefit.org/static/pyfa"
70 SRC_URI="http://dl.evefit.org/${FOLDER}/${PN}-${MY_PV}.tar.bz2"
71
72 LICENSE="GPL-3+ LGPL-2.1+ CC-BY-2.5 free-noncomm"
73 SLOT="0"
74 KEYWORDS="~amd64 ~x86"
75 IUSE="+graph"
76
77 RDEPEND="dev-python/sqlalchemy[${PYTHON_USEDEP}]
78 dev-python/wxpython:2.8[${PYTHON_USEDEP}]
79 graph? (
80 dev-python/matplotlib[wxwidgets,${PYTHON_USEDEP}]
81 dev-python/numpy[${PYTHON_USEDEP}] )
82 ${PYTHON_DEPS}"
83 DEPEND="app-text/dos2unix
84 ${PYTHON_DEPS}"
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 dos2unix config.py pyfa.py service/settings.py || die
91
92 # make staticPath settable from configforced again
93 epatch "${FILESDIR}/${PN}-1.1-staticPath.patch"
94
95 # use correct slot of wxpython, http://trac.evefit.org/ticket/475
96 epatch "${FILESDIR}/${PN}-1.1.4-wxversion.patch"
97
98 # do not try to save exported html to python sitedir
99 epatch "${FILESDIR}/${PN}-1.1.8-html-export-path.patch"
100
101 # fix import path in the main script for systemwide installation
102 epatch "${FILESDIR}/${PN}-1.1.11-import-pyfa.patch"
103 touch __init__.py
104
105 pyfa_make_configforced() {
106 mkdir -p "${BUILD_DIR}" || die
107 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
108 -e "s:%%EPREFIX%%:${EPREFIX}:" \
109 "${FILESDIR}/configforced.py" > "${BUILD_DIR}/configforced.py"
110 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
111 pyfa.py > "${BUILD_DIR}/pyfa"
112 }
113 python_foreach_impl pyfa_make_configforced
114 }
115
116 src_install() {
117 pyfa_py_install() {
118 local packagedir=$(python_get_sitedir)/${PN}
119 insinto "${packagedir}"
120 doins -r eos gui icons service config*.py info.py __init__.py gpl.txt
121 doins "${BUILD_DIR}/configforced.py"
122 python_doscript "${BUILD_DIR}/pyfa"
123 python_optimize
124 }
125 python_foreach_impl pyfa_py_install
126
127 insinto /usr/share/${PN}
128 doins -r staticdata
129 dodoc readme.txt
130 insinto /usr/share/icons/hicolor/32x32/apps
131 doins icons/pyfa.png
132 insinto /usr/share/icons/hicolor/64x64/apps
133 newins icons/pyfa64.png pyfa.png
134 domenu "${FILESDIR}/${PN}.desktop"
135 }
136
137 pkg_preinst() {
138 gnome2_icon_savelist
139 }
140
141 pkg_postinst() {
142 gnome2_icon_cache_update
143 }
144
145 pkg_postrm() {
146 gnome2_icon_cache_update
147 }