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: cola-1.4.3.1.ebuild ChangeLog
Date: Wed, 30 Mar 2011 08:55:38
Message-Id: 20110330085529.86A8B20054@flycatcher.gentoo.org
1 jlec 11/03/30 08:55:29
2
3 Modified: ChangeLog
4 Added: cola-1.4.3.1.ebuild
5 Log:
6 Non maintainer Version Bump
7
8 (Portage version: 2.2.0_alpha29/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.7 dev-vcs/cola/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/ChangeLog?rev=1.7&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/ChangeLog?rev=1.7&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/ChangeLog?r1=1.6&r2=1.7
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/cola/ChangeLog,v
20 retrieving revision 1.6
21 retrieving revision 1.7
22 diff -u -r1.6 -r1.7
23 --- ChangeLog 25 Jan 2011 16:30:30 -0000 1.6
24 +++ ChangeLog 30 Mar 2011 08:55:29 -0000 1.7
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.6 2011/01/25 16:30:30 arfrever Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/cola/ChangeLog,v 1.7 2011/03/30 08:55:29 jlec Exp $
30 +
31 +*cola-1.4.3.1 (30 Mar 2011)
32 +
33 + 30 Mar 2011; Justin Lecher <jlec@g.o> +cola-1.4.3.1.ebuild:
34 + Non maintainer Version Bump
35
36 25 Jan 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
37 cola-1.4.3.ebuild:
38
39
40
41 1.1 dev-vcs/cola/cola-1.4.3.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/cola-1.4.3.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/cola/cola-1.4.3.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: cola-1.4.3.1.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.1.ebuild,v 1.1 2011/03/30 08:55:29 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="dev-python/PyQt4
68 >=dev-python/pyinotify-0.7.1
69 dev-python/jsonpickle
70 >=dev-vcs/git-1.6.3"
71 DEPEND="${RDEPEND}
72 doc? ( app-text/asciidoc
73 dev-python/sphinx
74 app-text/xmlto )
75 sys-devel/gettext
76 test? ( dev-python/nose )"
77
78 # tests currently broken due to unfinished translation framework
79 RESTRICT="test"
80
81 pkg_setup() {
82 python_set_active_version 2
83 python_pkg_setup
84 }
85
86 src_prepare() {
87 # don't install docs into wrong location
88 sed -i \
89 -e '/doc/d' \
90 setup.py || die "sed failed"
91
92 sed -i \
93 -e "s|'doc', 'git-cola'|'doc', '${PF}', 'html'|" \
94 cola/resources.py || die "sed failed"
95
96 # don't prefix install path with homedir
97 rm setup.cfg
98
99 epatch "${FILESDIR}/1.3.8-disable-tests.patch"
100
101 python_convert_shebangs 2 bin/git-cola share/git-cola/bin/ssh-askpass
102 }
103
104 src_compile() {
105 distutils_src_compile
106
107 if use doc ; then
108 cd share/doc/git-cola/
109 emake all || die "building docs failed"
110 fi
111 }
112
113 src_install() {
114 distutils_src_install
115
116 # remove bundled libraries
117 rm -rf "${D}"/usr/share/git-cola/lib/{jsonpickle,simplejson}
118
119 # remove wrong translation file
120 rm -rf "${D}/usr/share/locale/"
121
122 insinto /usr/share/locale
123 doins -r share/locale/*
124
125 cd share/doc/git-cola/
126 dodoc *.txt
127
128 if use doc ; then
129 dohtml -r _build/html/*
130 doman *.1
131 else
132 dohtml "${FILESDIR}/index.html"
133 fi
134 }
135
136 src_test() {
137 PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C" nosetests \
138 --verbose --with-doctest --with-id --exclude=jsonpickle --exclude=json \
139 || die "running nosetests failed"
140 }
141
142 pkg_postinst() {
143 python_mod_optimize /usr/share/git-cola/lib/cola
144 }
145
146 pkg_postrm() {
147 python_mod_cleanup /usr/share/git-cola/lib/cola
148 }