LICENSE="GPL-2+"
SLOT="0"
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"
-IUSE="bugzilla emacs gpg test tk"
+IUSE="+chg bugzilla emacs gpg test tk"
RDEPEND="app-misc/ca-certificates
dev-python/zstandard[${PYTHON_USEDEP}]
python_compile_all() {
rm -r contrib/win32 || die
- emake -C contrib/chg
+ if use chg; then
+ emake -C contrib/chg
+ fi
if use emacs; then
cd contrib || die
elisp-compile mercurial.el || die "elisp-compile failed!"
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi
- dobin contrib/chg/chg
- doman contrib/chg/chg.1
+ local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion wix plan9 *.el )
+
+ if use chg; then
+ dobin contrib/chg/chg
+ doman contrib/chg/chg.1
+ RM_CONTRIB+=( chg )
+ fi
- local RM_CONTRIB=( chg hgk hg-ssh bash_completion zsh_completion wix plan9 *.el )
for f in ${RM_CONTRIB[@]}; do
rm -r contrib/${f} || die
done
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS=""
-IUSE="bugzilla emacs gpg test tk zsh-completion"
+IUSE="+chg bugzilla emacs gpg test tk zsh-completion"
RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
gpg? ( app-crypt/gnupg )
python_compile_all() {
rm -r contrib/{win32,macosx} || die
emake doc
+ if use chg; then
+ emake -C contrib/chg
+ fi
if use emacs; then
cd contrib || die
elisp-compile mercurial.el || die "elisp-compile failed!"
local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
*.el mercurial.spec)
+
+ if use chg; then
+ dobin contrib/chg/chg
+ doman contrib/chg/chg.1
+ RM_CONTRIB+=( chg )
+ fi
+
for f in ${RM_CONTRIB[@]}; do
rm -rf contrib/$f || die
done
<name>Lars Wendler</name>
</maintainer>
<use>
+ <flag name="chg">Support Mercurial command server client</flag>
<flag name="bugzilla">Support bugzilla integration.</flag>
<flag name="gpg">Support signing with GnuPG.</flag>
<flag name="tk">Install dev-lang/tk for hgk script.</flag>