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