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/git-cola: git-cola-1.9.4.ebuild ChangeLog
Date: Fri, 31 Jan 2014 07:31:25
Message-Id: 20140131073120.B8B202004C@flycatcher.gentoo.org
1 jlec 14/01/31 07:31:20
2
3 Modified: ChangeLog
4 Added: git-cola-1.9.4.ebuild
5 Log:
6 Version Bump
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
9
10 Revision Changes Path
11 1.21 dev-vcs/git-cola/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git-cola/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git-cola/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git-cola/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/git-cola/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 29 Jan 2014 11:55:12 -0000 1.20
24 +++ ChangeLog 31 Jan 2014 07:31:20 -0000 1.21
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/git-cola
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git-cola/ChangeLog,v 1.20 2014/01/29 11:55:12 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git-cola/ChangeLog,v 1.21 2014/01/31 07:31:20 jlec Exp $
30 +
31 +*git-cola-1.9.4 (31 Jan 2014)
32 +
33 + 31 Jan 2014; Justin Lecher <jlec@g.o> +git-cola-1.9.4.ebuild:
34 + Version Bump
35
36 *git-cola-1.9.3-r1 (29 Jan 2014)
37
38
39
40
41 1.1 dev-vcs/git-cola/git-cola-1.9.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git-cola/git-cola-1.9.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git-cola/git-cola-1.9.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: git-cola-1.9.4.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/git-cola/git-cola-1.9.4.ebuild,v 1.1 2014/01/31 07:31:20 jlec Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_6,2_7} )
55 DISTUTILS_SINGLE_IMPL=true
56
57 inherit distutils-r1
58
59 DESCRIPTION="The highly caffeinated git GUI"
60 HOMEPAGE="http://git-cola.github.com/"
61 SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
66 IUSE="doc test"
67
68 RDEPEND="
69 dev-python/jsonpickle[${PYTHON_USEDEP}]
70 dev-python/pyinotify[${PYTHON_USEDEP}]
71 dev-python/PyQt4[${PYTHON_USEDEP}]
72 dev-vcs/git"
73 DEPEND="${RDEPEND}
74 app-text/asciidoc
75 app-text/xmlto
76 sys-devel/gettext
77 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
78 test? (
79 dev-python/nose[${PYTHON_USEDEP}]
80 sys-apps/net-tools
81 )"
82
83 PATCHES=(
84 "${FILESDIR}"/${PN}-1.9.3-disable-tests.patch
85 "${FILESDIR}"/${PN}-1.9.1-system-ssh-askpass.patch
86 )
87
88 pkg_pretend() {
89 if use test && [[ -z "$(hostname -d)" ]] ; then
90 die "Test will fail if no domain is set"
91 fi
92 }
93
94 python_prepare_all() {
95 rm share/git-cola/bin/*askpass* || die
96
97 # unfinished translate framework
98 rm test/i18n_test.py || die
99
100 # don't install docs into wrong location
101 sed -i \
102 -e '/doc/d' \
103 setup.py || die "sed failed"
104
105 sed -i \
106 -e "s|'doc', 'git-cola'|'doc', '${PF}'|" \
107 cola/resources.py || die "sed failed"
108
109 distutils-r1_python_prepare_all
110 }
111
112 python_compile_all() {
113 cd share/doc/${PN}/
114 if use doc ; then
115 emake all
116 else
117 sed \
118 -e '/^install:/s:install-html::g' \
119 -i Makefile || die
120 fi
121 }
122
123 python_install_all() {
124 cd share/doc/${PN}/ || die
125 emake \
126 DESTDIR="${D}" \
127 docdir="${EPREFIX}/usr/share/doc/${PF}" \
128 prefix="${EPREFIX}/usr" \
129 install
130
131 if use doc ; then
132 HTML_DOCS=( share/doc/${PN}/_build/html/. )
133 else
134 HTML_DOCS=( "${FILESDIR}"/index.html )
135 fi
136
137 distutils-r1_python_install_all
138 docompress /usr/share/doc/${PF}/git-cola.txt
139 }
140
141 python_test() {
142 PYTHONPATH="${S}:${S}/build/lib:${PYTHONPATH}" LC_ALL="C" nosetests \
143 --verbose --with-doctest --with-id --exclude=jsonpickle --exclude=json \
144 || die "running nosetests failed"
145 }
146
147 pkg_postinst() {
148 elog "Please make sure you have either a SSH key management installed and activated or"
149 elog "installed a SSH askpass app like net-misc/x11-ssh-askpass."
150 elog "Otherwise ${PN} may hang when pushing/pulling from remote git repositories via SSH. "
151 }