Merge lp:~fauli/bzr-gentoo-overlay/bzr-live-overhaul into lp:bzr-gentoo-overlay

Proposed by Christian Faulhammer
Status: Merged
Merged at revision: 377
Proposed branch: lp:~fauli/bzr-gentoo-overlay/bzr-live-overhaul
Merge into: lp:bzr-gentoo-overlay
Diff against target: 129 lines (+26/-19)
4 files modified
dev-vcs/bzr-difftools/Manifest (+1/-1)
dev-vcs/bzr-difftools/bzr-difftools-9999.ebuild (+1/-1)
dev-vcs/bzr/Manifest (+1/-1)
dev-vcs/bzr/bzr-9999.ebuild (+23/-16)
To merge this branch: bzr merge lp:~fauli/bzr-gentoo-overlay/bzr-live-overhaul
Reviewer Review Type Date Requested Status
Martin von Gagern Approve
Review via email: mp+72351@code.launchpad.net

Description of the change

Updated the live ebuilds for bzr and bzr-difftools.

To post a comment you must log in.
Revision history for this message
Martin von Gagern (gagern) wrote :

Looks like a definite improvement. difftools should probably support multiple ABIs as well, and the bzr ebuild will fail for FEATURES=bash-completion, but even so it's already an improvement. Will merge and push, and address the other issues in a week or two unless you beat me to it.

review: Approve
Revision history for this message
Vincent Ladeuil (vila) wrote :

Coming from bug #830405 and giving a quick look (I don't understand most of the stuff here :-/) but still:

53 +test_dep=">=dev-python/testtools-0.9.2

I'm pretty sure we require *at least* 0.9.5 (though older (circa 2.0 era) bzr selftest may not like it)

54 + dev-python/medusa

This was needed for the ftp tests but we now prefer pyftplib (see bug #781140 too),

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'dev-vcs/bzr-difftools/Manifest'
2--- dev-vcs/bzr-difftools/Manifest 2010-11-27 11:11:12 +0000
3+++ dev-vcs/bzr-difftools/Manifest 2011-08-21 17:30:25 +0000
4@@ -1,2 +1,2 @@
5-EBUILD bzr-difftools-9999.ebuild 545 RMD160 9cdbd1347a6bbc0f1c8ac5ba1f6718807079cdef SHA1 3b6b306f533a819b44afa18a9379b99a198d30cb SHA256 c31ba941e62f937d474c32e710b51ca1b299546d15502f660634e49fc8f06a56
6+EBUILD bzr-difftools-9999.ebuild 548 RMD160 9d4e75c17cb33de608d93c095c816a3d0802f1d0 SHA1 a976e7b6f3cb2ee0d9a359bd391d621f9337638b SHA256 c778befd39ba30d93c8459a63540498209757e9e8ab840719806136231ab5563
7 MISC metadata.xml 285 RMD160 a8952a49acb5b00e48df37554397820e313c99b9 SHA1 4fcb8a3ef1ef0a98a45e198fde764ea292e08ee8 SHA256 b44ef9ceebc8a707893640732ebd31680a99fbaab6cbbe3d9bf99f4c5486e0d4
8
9=== modified file 'dev-vcs/bzr-difftools/bzr-difftools-9999.ebuild'
10--- dev-vcs/bzr-difftools/bzr-difftools-9999.ebuild 2010-11-27 11:11:12 +0000
11+++ dev-vcs/bzr-difftools/bzr-difftools-9999.ebuild 2011-08-21 17:30:25 +0000
12@@ -23,6 +23,6 @@
13 RDEPEND="${DEPEND}"
14
15 src_install() {
16- insinto $(python_get_sitedir)/bzrlib/plugins/difftools
17+ insinto $(python_get_sitedir -f)/bzrlib/plugins/difftools
18 doins *
19 }
20
21=== modified file 'dev-vcs/bzr/Manifest'
22--- dev-vcs/bzr/Manifest 2010-12-20 18:28:01 +0000
23+++ dev-vcs/bzr/Manifest 2011-08-21 17:30:25 +0000
24@@ -1,5 +1,5 @@
25 AUX 71bzr-gentoo.el 83 RMD160 409d99a9841616acedb77766074f65fe02c71ef0 SHA1 41ed64ffdbf3ab80a3fd054ca868ed82f3622da2 SHA256 4c60e63d561d32420b34d6749fed1b93dbfca7f235ec1c46402fc368ca707d1c
26 AUX bzr-0.90-tests-fix_root.patch 1173 RMD160 572b86dbf99620abe5090b72a9a29c3d6d2ea566 SHA1 a41671354dcf7498039c421e81bc7d9fbbc7bb29 SHA256 b2275d04401bd4ba36c0a565f5e6b7c8471ca50acd48bbf5f5d1995b197809ec
27 AUX bzr-0.90-tests-sgid.patch 611 RMD160 09a40cb4424e7dc86b48a577152cc7297c6333db SHA1 b7c42cb9b5cd5de4ebe11378870c6cf8eae52591 SHA256 e7514aa51c23405ba619c323b1bd6dbafffe5c584d8274d4e1df0c2347fd55a7
28-EBUILD bzr-9999.ebuild 2960 RMD160 dec6241851375b228b6e2d8b8a6d35ba9a26da78 SHA1 1bcf46469813615121422e2c38462d92ae53c7cb SHA256 dd5b4d10fc5636eeb06a2665ef1c6bcddc777056e99962f3f08fdc96b0327a64
29+EBUILD bzr-9999.ebuild 2967 RMD160 a7fddd7a6989997354a89ec2d58aa5d029b24a8e SHA1 2687d449dd1375f6e4f8fad7a49fa06135a092d2 SHA256 5a56410e03683d1e9e9222f5197c748e3af824b05326b046b3f8e30cbe32699e
30 MISC metadata.xml 712 RMD160 36b19a78e61a946c4bd8db576c4ee1ee3039f9f8 SHA1 bc90063835a8043bea6940cba69c0134d6b34e0a SHA256 dcfc4ef80c924142d79801e013ba53c17731d6813e130dd23d7007dd4011a2bb
31
32=== modified file 'dev-vcs/bzr/bzr-9999.ebuild'
33--- dev-vcs/bzr/bzr-9999.ebuild 2010-11-27 11:11:12 +0000
34+++ dev-vcs/bzr/bzr-9999.ebuild 2011-08-21 17:30:25 +0000
35@@ -1,4 +1,4 @@
36-# Copyright 1999-2010 Gentoo Foundation
37+# Copyright 1999-2011 Gentoo Foundation
38 # Distributed under the terms of the GNU General Public License v2
39 # $Header: $
40
41@@ -19,44 +19,45 @@
42 KEYWORDS=""
43 IUSE="curl doc emacs kerberos +sftp test"
44
45-python_rdep="|| ( >=dev-lang/python-2.5 dev-python/celementtree )
46+python_rdep="|| ( dev-lang/python:2.7[xml] dev-lang/python:2.6[xml] dev-lang/python:2.5[xml] dev-python/celementtree )
47 sftp? ( >=dev-python/paramiko-1.5 )
48 curl? ( dev-python/pycurl )
49- kerberos? ( dev-python/pykerberos )
50- sys-libs/zlib"
51-test_dep=">=dev-python/testtools-0.9.2"
52+ kerberos? ( dev-python/pykerberos )"
53+test_dep=">=dev-python/testtools-0.9.2
54+ dev-python/medusa
55+ dev-python/subunit"
56 DEPEND="dev-python/pyrex
57 !=dev-python/pyrex-0.9.6.3
58 emacs? ( virtual/emacs )
59 test? (
60 ${python_rdep}
61 ${test_dep}
62- || ( dev-python/pyftpdlib dev-python/medusa )
63 )"
64 RDEPEND="${python_rdep}
65 test? ( ${test_dep} )"
66
67+
68+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
69+DOCS="doc/*.txt"
70+
71 PYTHON_MODNAME="bzrlib"
72 SITEFILE=71${PN}-gentoo.el
73
74-DOCS="README NEWS doc/*.txt"
75-
76 src_prepare() {
77- # Don't run lock permission tests when running as root
78- epatch "${FILESDIR}"/${PN}-0.90-tests-fix_root.patch
79- # Fix permission errors when run under directories with setgid set.
80- epatch "${FILESDIR}"/${PN}-0.90-tests-sgid.patch
81+ distutils_src_prepare
82 }
83
84 src_compile() {
85 distutils_src_compile
86+
87 if use emacs; then
88 elisp-compile contrib/emacs/bzr-mode.el || die
89 fi
90 }
91
92 src_install() {
93- distutils_src_install --install-data /usr/share
94+ distutils_src_install --install-data "${EPREFIX}/usr/share"
95+
96 if use doc; then
97 docinto developers
98 dodoc doc/developers/*
99@@ -83,7 +84,7 @@
100 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
101 # don't add automatically to the load-path, so the sitefile
102 # can do a conditional loading
103- touch "${D}${SITELISP}/${PN}/.nosearch"
104+ touch "${ED}${SITELISP}/${PN}/.nosearch"
105 fi
106 insinto /usr/share/zsh/site-functions
107 doins contrib/zsh/_bzr
108@@ -93,6 +94,7 @@
109 pkg_postinst() {
110 distutils_pkg_postinst
111 bash-completion_pkg_postinst
112+
113 if use emacs; then
114 elisp-site-regen
115 elog "If you are using a GNU Emacs version greater than 22.1, bzr support"
116@@ -109,6 +111,11 @@
117 }
118
119 src_test() {
120- PYTHONPATH="build/lib*" "${python}" "${S}"/bzr --no-plugins selftest \
121- || die
122+ testing() {
123+ LC_ALL="C" "$(PYTHON)" bzr --no-plugins selftest ${skip_tests:+-x} ${skip_tests}
124+ }
125+ python_execute_function testing
126+
127+ # Just to make sure we don't hit any errors on later stages.
128+ python_disable_pyc
129 }

Subscribers

People subscribed via source and target branches