Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/cola: ChangeLog cola-1.4.3.4.ebuild
Date: Thu, 26 May 2011 06:38:52
Message-Id: 20110526063842.9963120054@flycatcher.gentoo.org
1 jlec 11/05/26 06:38:42
2
3 Modified: ChangeLog
4 Added: cola-1.4.3.4.ebuild
5 Log:
6 Version Bump
7
8 (Portage version: 2.2.0_alpha36/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.11 dev-vcs/cola/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/ChangeLog?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/ChangeLog?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/ChangeLog?r1=1.10&r2=1.11
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/cola/ChangeLog,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- ChangeLog 23 Apr 2011 07:05:25 -0000 1.10
24 +++ ChangeLog 26 May 2011 06:38:42 -0000 1.11
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/cola
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cola/ChangeLog,v 1.10 2011/04/23 07:05:25 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cola/ChangeLog,v 1.11 2011/05/26 06:38:42 jlec Exp $
30 +
31 +*cola-1.4.3.4 (26 May 2011)
32 +
33 + 26 May 2011; Justin Lecher <jlec@g.o> +cola-1.4.3.4.ebuild:
34 + Version Bump
35
36 *cola-1.4.3.3 (23 Apr 2011)
37
38
39
40
41 1.1 dev-vcs/cola/cola-1.4.3.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/cola-1.4.3.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/cola-1.4.3.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cola-1.4.3.4.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/cola/cola-1.4.3.4.ebuild,v 1.1 2011/05/26 06:38:42 jlec Exp $
51
52 EAPI="3"
53
54 PYTHON_DEPEND="2"
55
56 inherit distutils eutils
57
58 DESCRIPTION="A sweet, carbonated git gui known for its sugary flavour and caffeine-inspired features."
59 HOMEPAGE="http://cola.tuxfamily.org/"
60 SRC_URI="http://cola.tuxfamily.org/releases/${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="doc test"
66
67 RDEPEND="
68 dev-python/jsonpickle
69 dev-python/pyinotify
70 dev-python/PyQt4
71 dev-vcs/git"
72 DEPEND="${RDEPEND}
73 doc? (
74 app-text/asciidoc
75 dev-python/sphinx
76 app-text/xmlto )
77 sys-devel/gettext
78 test? ( dev-python/nose )"
79
80 # tests currently broken due to unfinished translation framework
81 RESTRICT="test"
82
83 pkg_setup() {
84 python_set_active_version 2
85 python_pkg_setup
86 }
87
88 src_prepare() {
89 # don't install docs into wrong location
90 sed -i \
91 -e '/doc/d' \
92 setup.py || die "sed failed"
93
94 sed -i \
95 -e "s|'doc', 'git-cola'|'doc', '${PF}', 'html'|" \
96 cola/resources.py || die "sed failed"
97
98 # don't prefix install path with homedir
99 rm setup.cfg
100
101 epatch "${FILESDIR}"/1.3.8-disable-tests.patch
102
103 python_convert_shebangs 2 bin/git-cola share/git-cola/bin/ssh-askpass
104 }
105
106 src_compile() {
107 distutils_src_compile
108
109 if use doc ; then
110 cd share/doc/git-cola/
111 emake all || die "building docs failed"
112 fi
113 }
114
115 src_install() {
116 distutils_src_install
117
118 # remove bundled libraries
119 rm -rf "${D}"/usr/share/git-cola/lib/{jsonpickle,simplejson}
120
121 # remove wrong translation file
122 rm -rf "${D}/usr/share/locale/"
123
124 insinto /usr/share/locale
125 doins -r share/locale/*
126
127 cd share/doc/git-cola/
128 dodoc *.txt
129
130 if use doc ; then
131 dohtml -r _build/html/*
132 doman *.1
133 else
134 dohtml "${FILESDIR}/index.html"
135 fi
136 }
137
138 src_test() {
139 PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C" nosetests \
140 --verbose --with-doctest --with-id --exclude=jsonpickle --exclude=json \
141 || die "running nosetests failed"
142 }
143
144 pkg_postinst() {
145 python_mod_optimize /usr/share/git-cola/lib/cola
146 }
147
148 pkg_postrm() {
149 python_mod_cleanup /usr/share/git-cola/lib/cola
150 }