Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/gato: ChangeLog gato-0.99c.ebuild
Date: Fri, 04 Jun 2010 16:20:40
Message-Id: 20100604162034.9EA552CE14@corvid.gentoo.org
1 arfrever 10/06/04 16:20:34
2
3 Modified: ChangeLog gato-0.99c.ebuild
4 Log:
5 Use Python 2 (bug #316239).
6 (Portage version: HEAD/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.12 sci-misc/gato/ChangeLog
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/ChangeLog?rev=1.12&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/ChangeLog?rev=1.12&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/ChangeLog?r1=1.11&r2=1.12
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sci-misc/gato/ChangeLog,v
18 retrieving revision 1.11
19 retrieving revision 1.12
20 diff -u -r1.11 -r1.12
21 --- ChangeLog 27 Oct 2008 12:06:52 -0000 1.11
22 +++ ChangeLog 4 Jun 2010 16:20:34 -0000 1.12
23 @@ -1,6 +1,10 @@
24 # ChangeLog for sci-misc/gato
25 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/ChangeLog,v 1.11 2008/10/27 12:06:52 bicatali Exp $
27 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/ChangeLog,v 1.12 2010/06/04 16:20:34 arfrever Exp $
29 +
30 + 04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + gato-0.99c.ebuild:
32 + Use Python 2 (bug #316239).
33
34 27 Oct 2008; Sébastien Fabbro <bicatali@g.o>
35 -files/gato-0.99-python.patch, -files/gato-python2.4-gentoo.patch,
36
37
38
39 1.5 sci-misc/gato/gato-0.99c.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild?rev=1.5&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild?rev=1.5&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild?r1=1.4&r2=1.5
44
45 Index: gato-0.99c.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v
48 retrieving revision 1.4
49 retrieving revision 1.5
50 diff -u -r1.4 -r1.5
51 --- gato-0.99c.ebuild 27 Oct 2008 12:06:52 -0000 1.4
52 +++ gato-0.99c.ebuild 4 Jun 2010 16:20:34 -0000 1.5
53 @@ -1,25 +1,35 @@
54 -# Copyright 1999-2008 Gentoo Foundation
55 +# Copyright 1999-2010 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v 1.4 2008/10/27 12:06:52 bicatali Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v 1.5 2010/06/04 16:20:34 arfrever Exp $
59
60 -EAPI=2
61 -inherit python eutils multilib
62 +EAPI="3"
63 +PYTHON_DEPEND="2"
64 +PYTHON_USE_WITH="tk"
65 +
66 +inherit eutils python
67
68 MY_PN="Gato"
69 MY_PV=$(echo ${PV} | tr '[:lower:]' '[:upper:]')
70
71 DESCRIPTION="Graph Animation Toolbox"
72 -LICENSE="LGPL-2"
73 HOMEPAGE="http://gato.sourceforge.net/"
74 SRC_URI="http://gato.sourceforge.net/Download/${MY_PN}-${MY_PV}.tar.gz
75 doc? ( http://gato.sourceforge.net/Download/${MY_PN}-Doc-${MY_PV}.tar.gz )"
76
77 +LICENSE="LGPL-2"
78 SLOT="0"
79 KEYWORDS="~x86 ~ppc ~amd64"
80 IUSE="doc"
81 -DEPEND="dev-lang/python[tk]"
82
83 -S="${WORKDIR}"/${MY_PN}
84 +DEPEND=""
85 +RDEPEND=""
86 +
87 +S="${WORKDIR}/${MY_PN}"
88 +
89 +pkg_setup() {
90 + python_set_active_version 2
91 + python_pkg_setup
92 +}
93
94 src_prepare() {
95 # convert to python >=2.4
96 @@ -31,10 +41,8 @@
97 }
98
99 src_install() {
100 -
101 # install python code
102 - python_version
103 - local instdir=/usr/$(get_libdir)/python${PYVER}/${PN}
104 + local instdir=$(python_get_sitedir)/${PN}
105 insinto ${instdir}
106 doins *.py || die "Failed to install python files"
107 fperms 755 ${instdir}/{Gato,Gred}.py
108 @@ -50,3 +58,11 @@
109
110 use doc && dohtml -r "${WORKDIR}"/Doc/*
111 }
112 +
113 +pkg_postinst() {
114 + python_mod_optimize gato
115 +}
116 +
117 +pkg_postrm() {
118 + python_mod_cleanup gato
119 +}