Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/bzr: ChangeLog bzr-1.14.1.ebuild bzr-1.14.ebuild
Date: Sat, 02 May 2009 10:10:39
Message-Id: E1M0CB3-00065B-EL@stork.gentoo.org
1 pva 09/05/02 10:10:37
2
3 Modified: ChangeLog
4 Added: bzr-1.14.1.ebuild
5 Removed: bzr-1.14.ebuild
6 Log:
7 Version bump.
8 (Portage version: 2.1.6.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.92 dev-util/bzr/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/ChangeLog?rev=1.92&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/ChangeLog?rev=1.92&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/ChangeLog?r1=1.91&r2=1.92
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/bzr/ChangeLog,v
20 retrieving revision 1.91
21 retrieving revision 1.92
22 diff -u -r1.91 -r1.92
23 --- ChangeLog 1 May 2009 17:20:24 -0000 1.91
24 +++ ChangeLog 2 May 2009 10:10:37 -0000 1.92
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/bzr
27 # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/bzr/ChangeLog,v 1.91 2009/05/01 17:20:24 pva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/bzr/ChangeLog,v 1.92 2009/05/02 10:10:37 pva Exp $
30 +
31 +*bzr-1.14.1 (02 May 2009)
32 +
33 + 02 May 2009; Peter Volkov <pva@g.o> -bzr-1.14.ebuild,
34 + +bzr-1.14.1.ebuild:
35 + Version bump.
36
37 *bzr-1.14 (01 May 2009)
38 *bzr-1.13.2 (01 May 2009)
39
40
41
42 1.1 dev-util/bzr/bzr-1.14.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/bzr-1.14.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/bzr-1.14.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bzr-1.14.1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/bzr/bzr-1.14.1.ebuild,v 1.1 2009/05/02 10:10:37 pva Exp $
52
53 EAPI=1
54
55 NEED_PYTHON=2.4
56
57 inherit distutils bash-completion elisp-common eutils versionator
58
59 MY_PV=${PV/_rc/rc}
60 MY_P=${PN}-${MY_PV}
61 SERIES=$(get_version_component_range 1-2)
62
63 DESCRIPTION="Bazaar is a next generation distributed version control system."
64 HOMEPAGE="http://bazaar-vcs.org/"
65 #SRC_URI="http://bazaar-vcs.org/releases/src/${MY_P}.tar.gz"
66 SRC_URI="http://launchpad.net/bzr/${SERIES}/${MY_PV}/+download/${MY_P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
71 IUSE="curl doc emacs +sftp test"
72
73 RDEPEND="|| ( >=dev-lang/python-2.5 dev-python/celementtree )
74 curl? ( dev-python/pycurl )
75 sftp? ( dev-python/paramiko )"
76
77 DEPEND="emacs? ( virtual/emacs )
78 test? (
79 $RDEPEND
80 dev-python/medusa
81 )"
82
83 S="${WORKDIR}/${MY_P}"
84 PYTHON_MODNAME="bzrlib"
85 SITEFILE=71bzr-gentoo.el
86 DOCS="doc/*.txt"
87
88 src_unpack() {
89 distutils_src_unpack
90
91 # Don't regenerate .c files from .pyx when pyrex is found.
92 epatch "${FILESDIR}/${PN}-1.8-no-pyrex.patch"
93 # Don't run lock permission tests when running as root
94 epatch "${FILESDIR}/${PN}-0.90-tests-fix_root.patch"
95 # Fix permission errors when run under directories with setgid set.
96 epatch "${FILESDIR}/${PN}-0.90-tests-sgid.patch"
97 }
98
99 src_compile() {
100 distutils_src_compile
101
102 if use emacs; then
103 elisp-compile contrib/emacs/bzr-mode.el || die "Emacs modules failed!"
104 fi
105 }
106
107 src_install() {
108 distutils_src_install --install-data /usr/share
109
110 if use doc; then
111 docinto developers
112 dodoc doc/developers/* || die "dodoc failed"
113 for doc in mini-tutorial tutorials user-{guide,reference}; do
114 docinto $doc
115 dodoc doc/en/$doc/* || die "dodoc failed"
116 done
117 fi
118
119 if use emacs; then
120 elisp-install ${PN} contrib/emacs/*.el* || die "elisp-install failed"
121 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die "elisp-site-file-install failed"
122
123 # don't add automatically to the load-path, so the sitefile
124 # can do a conditional loading
125 touch "${D}${SITELISP}/${PN}/.nosearch"
126 fi
127
128 insinto /usr/share/zsh/site-functions
129 doins contrib/zsh/_bzr
130 dobashcompletion contrib/bash/bzr
131 }
132
133 pkg_postinst() {
134 distutils_pkg_postinst
135 bash-completion_pkg_postinst
136
137 if use emacs; then
138 elisp-site-regen
139 elog "If you are using a GNU Emacs version greater than 22.1, bzr support"
140 elog "is already included. This ebuild does not automatically activate bzr support"
141 elog "in versions below, but prepares it in a way you can load it from your ~/.emacs"
142 elog "file by adding"
143 elog " (load \"bzr-mode\")"
144 fi
145 }
146
147 pkg_postrm() {
148 distutils_pkg_postrm
149 use emacs && elisp-site-regen
150 }
151
152 src_test() {
153 export LC_ALL=C
154 # Define tests which are known to fail below.
155 local skip_tests="("
156 # https://bugs.launchpad.net/bzr/+bug/306264
157 skip_tests+="test_http.SmartHTTPTunnellingTest.test_bulk_data|"
158 skip_tests+="test_http.TestWallServer.test_http_*|"
159 skip_tests+="blackbox.test_too_much.SFTPTestsRelative.test_*|"
160 #https://bugs.launchpad.net/bzr/+bug/341648
161 skip_tests+="test_osutils.TestWalkDirs.test_walkdirs_os_error"
162 skip_tests+=")"
163 # Some tests expect the usual pyc compiling behaviour.
164 python_enable_pyc
165 if [[ -n ${skip_tests} ]]; then
166 einfo "Skipping tests known to fail: ${skip_tests}"
167 "${python}" bzr --no-plugins selftest -x ${skip_tests} || die "bzr selftest failed"
168 else
169 "${python}" bzr --no-plugins selftest || die "bzr selftest failed"
170 fi
171 # Just to make sure we don't hit any errors on later stages.
172 python_disable_pyc
173 }