Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/anki: ChangeLog anki-0.9.9.8.6.ebuild
Date: Fri, 19 Feb 2010 14:29:06
Message-Id: E1NiTqq-0003Hn-D2@stork.gentoo.org
1 patrick 10/02/19 14:29:04
2
3 Modified: ChangeLog
4 Added: anki-0.9.9.8.6.ebuild
5 Log:
6 Bump for #305635, fixed SRC_URI
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.19 app-misc/anki/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/anki/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/anki/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/anki/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-misc/anki/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 21 Jul 2009 00:39:39 -0000 1.18
23 +++ ChangeLog 19 Feb 2010 14:29:03 -0000 1.19
24 @@ -1,6 +1,11 @@
25 # ChangeLog for app-misc/anki
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/ChangeLog,v 1.18 2009/07/21 00:39:39 hncaldwell Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-misc/anki/ChangeLog,v 1.19 2010/02/19 14:29:03 patrick Exp $
30 +
31 +*anki-0.9.9.8.6 (19 Feb 2010)
32 +
33 + 19 Feb 2010; Patrick Lauer <patrick@g.o> +anki-0.9.9.8.6.ebuild:
34 + Bump for #305635, fixed SRC_URI
35
36 *anki-0.9.9.8.5 (21 Jul 2009)
37
38
39
40
41 1.1 app-misc/anki/anki-0.9.9.8.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/anki/anki-0.9.9.8.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/anki/anki-0.9.9.8.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: anki-0.9.9.8.6.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-misc/anki/anki-0.9.9.8.6.ebuild,v 1.1 2010/02/19 14:29:03 patrick Exp $
51
52 EAPI=2
53
54 inherit eutils multilib python
55
56 DESCRIPTION="A spaced-repetition memory training program (flash cards)"
57 HOMEPAGE="http://ichi2.net/anki/"
58 SRC_URI="http://anki.googlecode.com/files/${P}.tgz"
59 LICENSE="GPL-3"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="furigana +graph latex recording +sound"
63
64 DEPEND="dev-lang/python
65 dev-python/setuptools"
66 RDEPEND=">=dev-python/PyQt4-4.4[X,svg,webkit]
67 >=dev-python/sqlalchemy-0.5.3
68 >=dev-python/simplejson-1.7.3
69 || ( >=dev-python/pysqlite-2.3.0 >=dev-lang/python-2.5[sqlite] )
70 latex? ( app-text/dvipng )
71 furigana? ( app-i18n/kakasi )
72 graph? (
73 dev-python/numpy
74 >=dev-python/matplotlib-0.91.2
75 )
76 recording? (
77 media-sound/sox
78 dev-python/pyaudio
79 media-sound/lame
80 )
81 sound? ( media-video/mplayer )"
82
83 src_install() {
84 doicon icons/${PN}.png || die
85
86 cd libanki
87 python setup.py install --root="${D}" || die
88 cd ..
89 python setup.py install --root="${D}" || die
90
91 make_desktop_entry ${PN} ${PN} ${PN}.png "Education"
92 }
93
94 pkg_postinst() {
95 python_version
96 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/ankiqt
97 python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/anki
98 }
99
100 pkg_postrm() {
101 python_version
102 python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/ankiqt
103 python_mod_cleanup /usr/$(get_libdir)/python${PYVER}/site-packages/anki
104 }