/[gentoo-x86]/games-util/pyfa/pyfa-1.1.9.ebuild
Gentoo

Contents of /games-util/pyfa/pyfa-1.1.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 11 19:36:52 2012 UTC (2 years, 4 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Upstream source tarball was updated but not renamed.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-util/pyfa/pyfa-1.1.9.ebuild,v 1.1 2012/08/08 22:18:44 tetromino Exp $
4
5 EAPI="4"
6 PYTHON_DEPEND="2:2.6"
7 PYTHON_USE_WITH="sqlite threads"
8
9 inherit eutils gnome2-utils python
10
11 if [[ ${PV/_rc*/} == ${PV} ]] ; then
12 MY_PV=${PV}-inferno-1.2-src
13 FOLDER=stable/${PV}
14 else
15 MY_PV=${PV/_rc/-stable-RC}-src
16 FOLDER=stable/${PV/*_rc/RC}
17 fi
18
19 DESCRIPTION="Python Fitting Assistant - a ship fitting application for EVE Online"
20 HOMEPAGE="http://www.evefit.org/Pyfa"
21 SRC_URI="http://dl.evefit.org/${FOLDER}/${PN}-${MY_PV}.tar.bz2"
22
23 LICENSE="GPL-3 LGPL-2.1 CCPL-Attribution-2.5 free-noncomm"
24 SLOT="0"
25 KEYWORDS="~amd64 ~x86"
26 IUSE="+graph"
27
28 RDEPEND="dev-python/sqlalchemy
29 dev-python/wxpython:2.8
30 graph? ( dev-python/matplotlib[wxwidgets] dev-python/numpy )"
31 DEPEND=""
32
33 S=${WORKDIR}/${PN}
34
35 pkg_setup() {
36 python_set_active_version 2
37 python_pkg_setup
38 }
39
40 src_prepare() {
41 # make staticPath settable from configforced again
42 epatch "${FILESDIR}/${PN}-1.1-staticPath.patch"
43
44 # use correct slot of wxpython, http://trac.evefit.org/ticket/475
45 epatch "${FILESDIR}/${PN}-1.1.4-wxversion.patch"
46
47 # do not try to save exported html to python sitedir
48 epatch "${FILESDIR}/${PN}-1.1.8-html-export-path.patch"
49
50 chmod 755 pyfa.py || die "chmod failed"
51 python_convert_shebangs -r -x 2 .
52 sed -e "s:%%SITEDIR%%:$(python_get_sitedir):" \
53 -e "s:%%EPREFIX%%:${EPREFIX}:" \
54 "${FILESDIR}/configforced.py" > configforced.py
55 }
56
57 src_install() {
58 local packagedir=$(python_get_sitedir)/${PN}
59 insinto "${packagedir}"
60 doins -r eos gui icons service config*.py info.py gpl.txt
61 exeinto "${packagedir}"
62 doexe ${PN}.py
63 dosym "${packagedir}/${PN}.py" /usr/bin/${PN}
64 insinto /usr/share/${PN}
65 doins -r staticdata
66 dodoc readme.txt
67 insinto /usr/share/icons/hicolor/32x32/apps
68 doins icons/pyfa.png
69 insinto /usr/share/icons/hicolor/64x64/apps
70 newins icons/pyfa64.png pyfa.png
71 domenu "${FILESDIR}/${PN}.desktop"
72 }
73
74 pkg_preinst() {
75 gnome2_icon_savelist
76 }
77
78 pkg_postinst() {
79 gnome2_icon_cache_update
80 python_mod_optimize ${PN}
81 }
82
83 pkg_postrm() {
84 gnome2_icon_cache_update
85 python_mod_cleanup ${PN}
86 }

  ViewVC Help
Powered by ViewVC 1.1.20