Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-misc/gato: ChangeLog gato-0.99c.ebuild gato-1.02.ebuild
Date: Thu, 24 Jun 2010 12:51:44
Message-Id: 20100624125138.D4F7E2CF47@corvid.gentoo.org
1 jlec 10/06/24 12:51:38
2
3 Modified: ChangeLog gato-0.99c.ebuild
4 Added: gato-1.02.ebuild
5 Log:
6 Version Bump, QA cleanup
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 sci-misc/gato/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-misc/gato/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 4 Jun 2010 16:20:34 -0000 1.12
23 +++ ChangeLog 24 Jun 2010 12:51:38 -0000 1.13
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sci-misc/gato
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/ChangeLog,v 1.12 2010/06/04 16:20:34 arfrever Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/ChangeLog,v 1.13 2010/06/24 12:51:38 jlec Exp $
29 +
30 +*gato-1.02 (24 Jun 2010)
31 +
32 + 24 Jun 2010; Justin Lecher <jlec@g.o> gato-0.99c.ebuild,
33 + -files/gato-0.99c-python.patch, +gato-1.02.ebuild:
34 + Version Bump, QA cleanup
35
36 04 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
37 gato-0.99c.ebuild:
38
39
40
41 1.7 sci-misc/gato/gato-0.99c.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild?rev=1.7&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild?rev=1.7&content-type=text/plain
45 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild?r1=1.6&r2=1.7
46
47 Index: gato-0.99c.ebuild
48 ===================================================================
49 RCS file: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v
50 retrieving revision 1.6
51 retrieving revision 1.7
52 diff -u -r1.6 -r1.7
53 --- gato-0.99c.ebuild 4 Jun 2010 16:26:09 -0000 1.6
54 +++ gato-0.99c.ebuild 24 Jun 2010 12:51:38 -0000 1.7
55 @@ -1,6 +1,6 @@
56 # Copyright 1999-2010 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 -# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v 1.6 2010/06/04 16:26:09 arfrever Exp $
59 +# $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-0.99c.ebuild,v 1.7 2010/06/24 12:51:38 jlec Exp $
60
61 EAPI="3"
62 PYTHON_DEPEND="2"
63 @@ -18,11 +18,9 @@
64
65 LICENSE="LGPL-2"
66 SLOT="0"
67 -KEYWORDS="~x86 ~ppc ~amd64"
68 +KEYWORDS="~amd64 ~ppc ~x86"
69 IUSE="doc"
70
71 -DEPEND=""
72 -RDEPEND=""
73
74 S="${WORKDIR}/${MY_PN}"
75
76 @@ -32,8 +30,6 @@
77 }
78
79 src_prepare() {
80 - # convert to python >=2.4
81 - epatch "${FILESDIR}"/${P}-python.patch
82 # change TKinter call to avoid crashing of X
83 sed -i \
84 -e 's:self.overrideredirect(1):self.overrideredirect(0):' \
85 @@ -49,9 +45,8 @@
86 python_convert_shebangs -r 2 "${ED}"
87
88 # create symlinks
89 - dodir /usr/bin
90 - dosym ${instdir}/Gato.py /usr/bin/gato
91 - dosym ${instdir}/Gred.py /usr/bin/gred
92 + dosym ${instdir}/Gato.py /usr/bin/gato || die
93 + dosym ${instdir}/Gred.py /usr/bin/gred || die
94
95 # install data files
96 insinto /usr/share/${PN}
97 @@ -61,9 +56,9 @@
98 }
99
100 pkg_postinst() {
101 - python_mod_optimize gato
102 + python_mod_optimize ${PN}
103 }
104
105 pkg_postrm() {
106 - python_mod_cleanup gato
107 + python_mod_cleanup ${PN}
108 }
109
110
111
112 1.1 sci-misc/gato/gato-1.02.ebuild
113
114 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-1.02.ebuild?rev=1.1&view=markup
115 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-misc/gato/gato-1.02.ebuild?rev=1.1&content-type=text/plain
116
117 Index: gato-1.02.ebuild
118 ===================================================================
119 # Copyright 1999-2010 Gentoo Foundation
120 # Distributed under the terms of the GNU General Public License v2
121 # $Header: /var/cvsroot/gentoo-x86/sci-misc/gato/gato-1.02.ebuild,v 1.1 2010/06/24 12:51:38 jlec Exp $
122
123 EAPI="3"
124
125 PYTHON_DEPEND="2"
126 PYTHON_USE_WITH="tk"
127
128 inherit eutils python
129
130 MY_PN="Gato"
131 MY_PV=$(echo ${PV} | tr '[:lower:]' '[:upper:]')
132
133 DESCRIPTION="Graph Animation Toolbox"
134 HOMEPAGE="http://gato.sourceforge.net/"
135 SRC_URI="http://gato.sourceforge.net/Download/${MY_PN}-${MY_PV}.tar.gz"
136
137 LICENSE="LGPL-2"
138 SLOT="0"
139 KEYWORDS="~amd64 ~ppc ~x86"
140 IUSE=""
141
142 S="${WORKDIR}/${MY_PN}"
143
144 pkg_setup() {
145 python_set_active_version 2
146 python_pkg_setup
147 }
148
149 src_prepare() {
150 # change TKinter call to avoid crashing of X
151 sed -i \
152 -e 's:self.overrideredirect(1):self.overrideredirect(0):' \
153 "${S}"/GatoDialogs.py || die "failed to patch GatoDialogs.py"
154 }
155
156 src_install() {
157 # install python code
158 local instdir=$(python_get_sitedir)/${PN}
159 insinto ${instdir}
160 doins *.py || die "Failed to install python files"
161 fperms 755 ${instdir}/{Gato,Gred}.py
162 python_convert_shebangs -r 2 "${ED}"
163
164 # create symlinks
165 dosym ${instdir}/Gato.py /usr/bin/gato || die
166 dosym ${instdir}/Gred.py /usr/bin/gred || die
167
168 # install data files
169 insinto /usr/share/${PN}
170 doins BFS.* DFS.* sample.cat || die "failed to data files"
171 }
172
173 pkg_postinst() {
174 python_mod_optimize ${PN}
175 }
176
177 pkg_postrm() {
178 python_mod_cleanup ${PN}
179 }