1 |
commit: 60ae26372c5dbb24dd9d22246eb78713483c1865 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 15 09:40:25 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 15 09:40:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60ae2637 |
7 |
|
8 |
dev-vcs/mercurial: make chg optional behind USE=chg (use-default) |
9 |
|
10 |
chg client fails to compile on at least Solaris, so allow disabling this |
11 |
non-essential contrib addition. |
12 |
|
13 |
revbump from -r1 with stable keywords per maintainer's request. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/683374 |
16 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
17 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
18 |
RepoMan-Options: --force |
19 |
|
20 |
.../{mercurial-4.9-r1.ebuild => mercurial-4.9-r2.ebuild} | 16 +++++++++++----- |
21 |
dev-vcs/mercurial/mercurial-9999.ebuild | 12 +++++++++++- |
22 |
dev-vcs/mercurial/metadata.xml | 1 + |
23 |
3 files changed, 23 insertions(+), 6 deletions(-) |
24 |
|
25 |
diff --git a/dev-vcs/mercurial/mercurial-4.9-r1.ebuild b/dev-vcs/mercurial/mercurial-4.9-r2.ebuild |
26 |
similarity index 93% |
27 |
rename from dev-vcs/mercurial/mercurial-4.9-r1.ebuild |
28 |
rename to dev-vcs/mercurial/mercurial-4.9-r2.ebuild |
29 |
index d4c35b6b713..931e3ed280d 100644 |
30 |
--- a/dev-vcs/mercurial/mercurial-4.9-r1.ebuild |
31 |
+++ b/dev-vcs/mercurial/mercurial-4.9-r2.ebuild |
32 |
@@ -15,7 +15,7 @@ SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz" |
33 |
LICENSE="GPL-2+" |
34 |
SLOT="0" |
35 |
KEYWORDS="alpha amd64 arm ~arm64 hppa ~ia64 ~mips ~ppc ppc64 sparc ~x86 ~ppc-aix ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
-IUSE="bugzilla emacs gpg test tk" |
37 |
+IUSE="+chg bugzilla emacs gpg test tk" |
38 |
|
39 |
RDEPEND="app-misc/ca-certificates |
40 |
dev-python/zstandard[${PYTHON_USEDEP}] |
41 |
@@ -58,7 +58,9 @@ python_configure_all() { |
42 |
|
43 |
python_compile_all() { |
44 |
rm -r contrib/win32 || die |
45 |
- emake -C contrib/chg |
46 |
+ if use chg; then |
47 |
+ emake -C contrib/chg |
48 |
+ fi |
49 |
if use emacs; then |
50 |
cd contrib || die |
51 |
elisp-compile mercurial.el || die "elisp-compile failed!" |
52 |
@@ -86,10 +88,14 @@ python_install_all() { |
53 |
elisp-site-file-install "${FILESDIR}"/${SITEFILE} |
54 |
fi |
55 |
|
56 |
- dobin contrib/chg/chg |
57 |
- doman contrib/chg/chg.1 |
58 |
+ local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion wix plan9 *.el ) |
59 |
+ |
60 |
+ if use chg; then |
61 |
+ dobin contrib/chg/chg |
62 |
+ doman contrib/chg/chg.1 |
63 |
+ RM_CONTRIB+=( chg ) |
64 |
+ fi |
65 |
|
66 |
- local RM_CONTRIB=( chg hgk hg-ssh bash_completion zsh_completion wix plan9 *.el ) |
67 |
for f in ${RM_CONTRIB[@]}; do |
68 |
rm -r contrib/${f} || die |
69 |
done |
70 |
|
71 |
diff --git a/dev-vcs/mercurial/mercurial-9999.ebuild b/dev-vcs/mercurial/mercurial-9999.ebuild |
72 |
index 797fc104685..39b4c67502e 100644 |
73 |
--- a/dev-vcs/mercurial/mercurial-9999.ebuild |
74 |
+++ b/dev-vcs/mercurial/mercurial-9999.ebuild |
75 |
@@ -16,7 +16,7 @@ EHG_REVISION="@" |
76 |
LICENSE="GPL-2+" |
77 |
SLOT="0" |
78 |
KEYWORDS="" |
79 |
-IUSE="bugzilla emacs gpg test tk zsh-completion" |
80 |
+IUSE="+chg bugzilla emacs gpg test tk zsh-completion" |
81 |
|
82 |
RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] ) |
83 |
gpg? ( app-crypt/gnupg ) |
84 |
@@ -52,6 +52,9 @@ python_configure_all() { |
85 |
python_compile_all() { |
86 |
rm -r contrib/{win32,macosx} || die |
87 |
emake doc |
88 |
+ if use chg; then |
89 |
+ emake -C contrib/chg |
90 |
+ fi |
91 |
if use emacs; then |
92 |
cd contrib || die |
93 |
elisp-compile mercurial.el || die "elisp-compile failed!" |
94 |
@@ -83,6 +86,13 @@ python_install_all() { |
95 |
|
96 |
local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9 |
97 |
*.el mercurial.spec) |
98 |
+ |
99 |
+ if use chg; then |
100 |
+ dobin contrib/chg/chg |
101 |
+ doman contrib/chg/chg.1 |
102 |
+ RM_CONTRIB+=( chg ) |
103 |
+ fi |
104 |
+ |
105 |
for f in ${RM_CONTRIB[@]}; do |
106 |
rm -rf contrib/$f || die |
107 |
done |
108 |
|
109 |
diff --git a/dev-vcs/mercurial/metadata.xml b/dev-vcs/mercurial/metadata.xml |
110 |
index 6f2bedbfd60..8abebf1fdf1 100644 |
111 |
--- a/dev-vcs/mercurial/metadata.xml |
112 |
+++ b/dev-vcs/mercurial/metadata.xml |
113 |
@@ -6,6 +6,7 @@ |
114 |
<name>Lars Wendler</name> |
115 |
</maintainer> |
116 |
<use> |
117 |
+ <flag name="chg">Support Mercurial command server client</flag> |
118 |
<flag name="bugzilla">Support bugzilla integration.</flag> |
119 |
<flag name="gpg">Support signing with GnuPG.</flag> |
120 |
<flag name="tk">Install dev-lang/tk for hgk script.</flag> |