1 |
commit: eaa95a350044f4e4f94b9c59e7eefe0ba081d3de |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 25 09:30:04 2021 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 27 16:54:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaa95a35 |
7 |
|
8 |
bzr.eclass: Update for dev-vcs/breezy, support EAPIs 7 and 8 |
9 |
|
10 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
11 |
|
12 |
eclass/bzr.eclass | 39 +++++++++++++++------------------------ |
13 |
1 file changed, 15 insertions(+), 24 deletions(-) |
14 |
|
15 |
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass |
16 |
index fc1de9dc9cc..e76af5d41d5 100644 |
17 |
--- a/eclass/bzr.eclass |
18 |
+++ b/eclass/bzr.eclass |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2019 Gentoo Authors |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
# @ECLASS: bzr.eclass |
25 |
@@ -9,7 +9,7 @@ |
26 |
# Mark Lee <bzr-gentoo-overlay@×××××××××××××××.com> |
27 |
# Ulrich Müller <ulm@g.o> |
28 |
# Christian Faulhammer <fauli@g.o> |
29 |
-# @SUPPORTED_EAPIS: 2 3 4 5 6 7 |
30 |
+# @SUPPORTED_EAPIS: 7 8 |
31 |
# @BLURB: generic fetching functions for the Bazaar VCS |
32 |
# @DESCRIPTION: |
33 |
# The bzr.eclass provides functions to fetch and unpack sources from |
34 |
@@ -21,20 +21,15 @@ |
35 |
|
36 |
EBZR="bzr.eclass" |
37 |
|
38 |
-PROPERTIES+=" live" |
39 |
- |
40 |
-if [[ ${EBZR_REPO_URI%%:*} = sftp ]]; then |
41 |
- DEPEND=">=dev-vcs/bzr-2.6.0[sftp]" |
42 |
-else |
43 |
- DEPEND=">=dev-vcs/bzr-2.6.0" |
44 |
-fi |
45 |
- |
46 |
-case ${EAPI:-0} in |
47 |
- 2|3|4|5|6) ;; |
48 |
- 7) BDEPEND="${DEPEND}"; DEPEND="" ;; |
49 |
+case ${EAPI} in |
50 |
+ 7|8) ;; |
51 |
*) die "${EBZR}: EAPI ${EAPI:-0} is not supported" ;; |
52 |
esac |
53 |
|
54 |
+PROPERTIES+=" live" |
55 |
+ |
56 |
+BDEPEND="dev-vcs/breezy" |
57 |
+ |
58 |
EXPORT_FUNCTIONS src_unpack |
59 |
|
60 |
# @ECLASS-VARIABLE: EBZR_STORE_DIR |
61 |
@@ -50,32 +45,32 @@ EXPORT_FUNCTIONS src_unpack |
62 |
# @ECLASS-VARIABLE: EBZR_INIT_REPO_CMD |
63 |
# @DESCRIPTION: |
64 |
# The Bazaar command to initialise a shared repository. |
65 |
-: ${EBZR_INIT_REPO_CMD:="bzr init-repository --no-trees"} |
66 |
+: ${EBZR_INIT_REPO_CMD:="brz init-shared-repository --no-trees"} |
67 |
|
68 |
# @ECLASS-VARIABLE: EBZR_FETCH_CMD |
69 |
# @DESCRIPTION: |
70 |
# The Bazaar command to fetch the sources. |
71 |
-: ${EBZR_FETCH_CMD:="bzr branch --no-tree"} |
72 |
+: ${EBZR_FETCH_CMD:="brz branch --no-tree"} |
73 |
|
74 |
# @ECLASS-VARIABLE: EBZR_UPDATE_CMD |
75 |
# @DESCRIPTION: |
76 |
# The Bazaar command to update the sources. |
77 |
-: ${EBZR_UPDATE_CMD:="bzr pull --overwrite-tags"} |
78 |
+: ${EBZR_UPDATE_CMD:="brz pull --overwrite-tags"} |
79 |
|
80 |
# @ECLASS-VARIABLE: EBZR_EXPORT_CMD |
81 |
# @DESCRIPTION: |
82 |
# The Bazaar command to export a branch. |
83 |
-: ${EBZR_EXPORT_CMD:="bzr export"} |
84 |
+: ${EBZR_EXPORT_CMD:="brz export"} |
85 |
|
86 |
# @ECLASS-VARIABLE: EBZR_CHECKOUT_CMD |
87 |
# @DESCRIPTION: |
88 |
# The Bazaar command to checkout a branch. |
89 |
-: ${EBZR_CHECKOUT_CMD:="bzr checkout --lightweight -q"} |
90 |
+: ${EBZR_CHECKOUT_CMD:="brz checkout --lightweight -q"} |
91 |
|
92 |
# @ECLASS-VARIABLE: EBZR_REVNO_CMD |
93 |
# @DESCRIPTION: |
94 |
# The Bazaar command to list a revision number of the branch. |
95 |
-: ${EBZR_REVNO_CMD:="bzr revno"} |
96 |
+: ${EBZR_REVNO_CMD:="brz revno"} |
97 |
|
98 |
# @ECLASS-VARIABLE: EBZR_OPTIONS |
99 |
# @DEFAULT_UNSET |
100 |
@@ -87,9 +82,6 @@ EXPORT_FUNCTIONS src_unpack |
101 |
# @REQUIRED |
102 |
# @DESCRIPTION: |
103 |
# The repository URI for the source package. |
104 |
-# |
105 |
-# Note: If the ebuild uses an sftp:// URI, then the eclass will depend |
106 |
-# on dev-vcs/bzr[sftp]. |
107 |
|
108 |
# @ECLASS-VARIABLE: EBZR_INITIAL_URI |
109 |
# @DEFAULT_UNSET |
110 |
@@ -130,8 +122,7 @@ EXPORT_FUNCTIONS src_unpack |
111 |
# @ECLASS-VARIABLE: EBZR_REVISION |
112 |
# @DEFAULT_UNSET |
113 |
# @DESCRIPTION: |
114 |
-# Revision to fetch, defaults to the latest |
115 |
-# (see http://bazaar-vcs.org/BzrRevisionSpec or bzr help revisionspec). |
116 |
+# Revision to fetch, defaults to the latest (see brz help revisionspec). |
117 |
|
118 |
# @ECLASS-VARIABLE: EBZR_OFFLINE |
119 |
# @DESCRIPTION: |