Gentoo Archives: gentoo-commits

From: "Christian Faulhammer (fauli)" <fauli@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/bzr: ChangeLog bzr-1.16.1.ebuild bzr-1.16_rc1.ebuild
Date: Thu, 02 Jul 2009 16:36:52
Message-Id: E1MMPHG-0005OD-3m@stork.gentoo.org
1 fauli 09/07/02 16:36:50
2
3 Modified: ChangeLog
4 Added: bzr-1.16.1.ebuild
5 Removed: bzr-1.16_rc1.ebuild
6 Log:
7 version bump and clean up
8 (Portage version: 2.1.6.13/cvs/Linux i686)
9
10 Revision Changes Path
11 1.100 dev-util/bzr/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/ChangeLog?rev=1.100&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/ChangeLog?rev=1.100&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/ChangeLog?r1=1.99&r2=1.100
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/bzr/ChangeLog,v
20 retrieving revision 1.99
21 retrieving revision 1.100
22 diff -u -r1.99 -r1.100
23 --- ChangeLog 2 Jul 2009 14:36:50 -0000 1.99
24 +++ ChangeLog 2 Jul 2009 16:36:50 -0000 1.100
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/bzr
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/bzr/ChangeLog,v 1.99 2009/07/02 14:36:50 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/bzr/ChangeLog,v 1.100 2009/07/02 16:36:50 fauli Exp $
30 +
31 +*bzr-1.16.1 (02 Jul 2009)
32 +
33 + 02 Jul 2009; Christian Faulhammer <fauli@g.o> -bzr-1.16_rc1.ebuild,
34 + +bzr-1.16.1.ebuild:
35 + version bump and clean up
36
37 02 Jul 2009; Raúl Porcel <armin76@g.o> bzr-1.15.1.ebuild:
38 sparc stable wrt #274451
39
40
41
42 1.1 dev-util/bzr/bzr-1.16.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/bzr-1.16.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/bzr/bzr-1.16.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: bzr-1.16.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.16.1.ebuild,v 1.1 2009/07/02 16:36:50 fauli 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*|"
158 skip_tests+="test_http.TestWallServer.test_http_*|"
159 skip_tests+="blackbox.test_too_much.SFTPTestsRelative.test_*|"
160 # https://bugs.launchpad.net/bzr/+bug/383920
161 skip_tests+="test_transport_implementations.TransportTests.test_get*|"
162 #https://bugs.launchpad.net/bzr/+bug/341648
163 skip_tests+="test_osutils.TestWalkDirs.test_walkdirs_os_error"
164 skip_tests+=")"
165 # Some tests expect the usual pyc compiling behaviour.
166 python_enable_pyc
167 if [[ -n ${skip_tests} ]]; then
168 einfo "Skipping tests known to fail: ${skip_tests}"
169 "${python}" bzr --no-plugins selftest -x ${skip_tests} || die "bzr selftest failed"
170 else
171 "${python}" bzr --no-plugins selftest || die "bzr selftest failed"
172 fi
173 # Just to make sure we don't hit any errors on later stages.
174 python_disable_pyc
175 }