summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ross <aross@gentoo.org>2007-01-21 09:30:58 +0000
committerAndrew Ross <aross@gentoo.org>2007-01-21 09:30:58 +0000
commit95fab74c3d3fb37667e2ba354d84d80e5d52f724 (patch)
tree6b5366c2641b8ad91a1374f89765851c14953dc7 /dev-util/mercurial
parentAdd zsh-completion for use by dev-util/mercurial. (diff)
downloadgentoo-2-95fab74c3d3fb37667e2ba354d84d80e5d52f724.tar.gz
gentoo-2-95fab74c3d3fb37667e2ba354d84d80e5d52f724.tar.bz2
gentoo-2-95fab74c3d3fb37667e2ba354d84d80e5d52f724.zip
Add zsh completion (bug #162966)
(Portage version: 2.1.1-r2)
Diffstat (limited to 'dev-util/mercurial')
-rw-r--r--dev-util/mercurial/ChangeLog8
-rw-r--r--dev-util/mercurial/files/digest-mercurial-0.9.3-r13
-rw-r--r--dev-util/mercurial/mercurial-0.9.3-r1.ebuild73
3 files changed, 83 insertions, 1 deletions
diff --git a/dev-util/mercurial/ChangeLog b/dev-util/mercurial/ChangeLog
index 908c0b4b6a39..afc913bd11c2 100644
--- a/dev-util/mercurial/ChangeLog
+++ b/dev-util/mercurial/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/mercurial
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.44 2007/01/21 06:57:33 aross Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.45 2007/01/21 09:30:58 aross Exp $
+
+*mercurial-0.9.3-r1 (21 Jan 2007)
+
+ 21 Jan 2007; Andrew Ross <aross@gentoo.org> +mercurial-0.9.3-r1.ebuild:
+ Install zsh command completion when USE=zsh-completion, thanks to Steve
+ Borho <steve@borho.og> in bug #162966.
21 Jan 2007; <aross@gentoo.org> -mercurial-0.8.ebuild,
-mercurial-0.8.1.ebuild:
diff --git a/dev-util/mercurial/files/digest-mercurial-0.9.3-r1 b/dev-util/mercurial/files/digest-mercurial-0.9.3-r1
new file mode 100644
index 000000000000..dad7de3f4c0f
--- /dev/null
+++ b/dev-util/mercurial/files/digest-mercurial-0.9.3-r1
@@ -0,0 +1,3 @@
+MD5 5e39fed853e5669cbac32b77a67bb6dd mercurial-0.9.3.tar.gz 530289
+RMD160 9a25e508ebbe8e1827f26f6731ab085ce535f73a mercurial-0.9.3.tar.gz 530289
+SHA256 48485e6b16d304ef67f747c956ad257139796359ebfba9a66aede5cc0f550e86 mercurial-0.9.3.tar.gz 530289
diff --git a/dev-util/mercurial/mercurial-0.9.3-r1.ebuild b/dev-util/mercurial/mercurial-0.9.3-r1.ebuild
new file mode 100644
index 000000000000..62fdaa67046c
--- /dev/null
+++ b/dev-util/mercurial/mercurial-0.9.3-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/mercurial-0.9.3-r1.ebuild,v 1.1 2007/01/21 09:30:58 aross Exp $
+
+inherit bash-completion distutils elisp-common flag-o-matic
+
+MY_PV=${PV//_p/.}
+
+DESCRIPTION="scalable distributed SCM"
+HOMEPAGE="http://www.selenic.com/mercurial/"
+SRC_URI="http://www.selenic.com/mercurial/release/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd"
+IUSE="emacs zsh-completion"
+
+RDEPEND=">=dev-lang/python-2.3
+ zsh-completion? ( app-shells/zsh )"
+DEPEND="${RDEPEND}
+ emacs? ( virtual/emacs )"
+
+PYTHON_MODNAME="${PN} hgext"
+
+src_compile() {
+ filter-flags -ftracer -ftree-vectorize
+
+ distutils_src_compile
+
+ if use emacs; then
+ cd "${S}"/contrib
+ elisp-compile mercurial.el || die "Emacs modules failed!"
+ fi
+
+ rm -rf contrib/vim # app-vim/hgcommand app-vim/hgmenu
+ rm -rf contrib/{win32,macosx}
+}
+
+src_install() {
+ distutils_src_install
+
+ dobashcompletion contrib/bash_completion ${PN}
+
+ if use zsh-completion ; then
+ insinto /usr/share/zsh/site-functions
+ newins contrib/zsh_completion _hg
+ fi
+
+ dodoc CONTRIBUTORS PKG-INFO README *.txt
+ cp hgweb*.cgi "${D}"/usr/share/doc/${PF}/
+ rm -f contrib/bash_completion
+ cp -r contrib "${D}"/usr/share/doc/${PF}/
+ doman doc/*.?
+
+ if use emacs; then
+ insinto ${SITELISP}
+ doins contrib/mercurial.el*
+ elisp-site-file-install "${FILESDIR}"/70mercurial-gentoo.el
+ fi
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ use emacs && elisp-site-regen
+ bash-completion_pkg_postinst
+}
+
+pkg_postrm() {
+ distutils_pkg_postrm
+ # regenerate site-gentoo if we are merged USE=emacs and unmerged
+ # USE=-emacs
+ has_version virtual/emacs && elisp-site-regen
+}