summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-11-07 21:40:42 +0000
committerTim Harder <radhermit@gentoo.org>2011-11-07 21:40:42 +0000
commitbc908a8a7dfddb4b32f915906a1142dae03a72a8 (patch)
treea42785ca225b290e0a5b4782e15c3d84d94f2cfd /dev-util/coccigrep
parent3.2 series version bump (diff)
downloadgentoo-2-bc908a8a7dfddb4b32f915906a1142dae03a72a8.tar.gz
gentoo-2-bc908a8a7dfddb4b32f915906a1142dae03a72a8.tar.bz2
gentoo-2-bc908a8a7dfddb4b32f915906a1142dae03a72a8.zip
Version bump.
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/coccigrep')
-rw-r--r--dev-util/coccigrep/ChangeLog7
-rw-r--r--dev-util/coccigrep/coccigrep-1.6.ebuild68
2 files changed, 74 insertions, 1 deletions
diff --git a/dev-util/coccigrep/ChangeLog b/dev-util/coccigrep/ChangeLog
index 77a137b5248c..24afa7d5d52f 100644
--- a/dev-util/coccigrep/ChangeLog
+++ b/dev-util/coccigrep/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/coccigrep
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/coccigrep/ChangeLog,v 1.1 2011/11/04 08:57:51 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/coccigrep/ChangeLog,v 1.2 2011/11/07 21:40:42 radhermit Exp $
+
+*coccigrep-1.6 (07 Nov 2011)
+
+ 07 Nov 2011; Tim Harder <radhermit@gentoo.org> +coccigrep-1.6.ebuild:
+ Version bump.
*coccigrep-1.5 (04 Nov 2011)
diff --git a/dev-util/coccigrep/coccigrep-1.6.ebuild b/dev-util/coccigrep/coccigrep-1.6.ebuild
new file mode 100644
index 000000000000..cade61380816
--- /dev/null
+++ b/dev-util/coccigrep/coccigrep-1.6.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/coccigrep/coccigrep-1.6.ebuild,v 1.1 2011/11/07 21:40:42 radhermit Exp $
+
+EAPI=4
+USE_PYTHON="2"
+
+inherit distutils elisp-common
+
+DESCRIPTION="A semantic grep for the C language"
+HOMEPAGE="http://home.regit.org/software/coccigrep/"
+SRC_URI="https://github.com/regit/${PN}/tarball/v${PV/_/} -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc emacs vim"
+
+RDEPEND="dev-util/coccinelle[python]
+ || ( dev-lang/python:2.7 dev-python/argparse )
+ emacs? ( virtual/emacs )
+ vim? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="doc? ( dev-python/sphinx )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ mv *-${PN}-* "${S}"
+}
+
+src_compile() {
+ distutils_src_compile
+ use doc && emake -C doc html
+}
+
+src_install() {
+ distutils_src_install
+ doman ${PN}.1
+
+ use doc && dohtml -r doc/_build/html/*
+
+ if use emacs ; then
+ elisp-install ${PN} editor/*.el || die
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
+ fi
+
+ if use vim ; then
+ insinto /usr/share/vim/vimfiles/plugin
+ doins editors/cocci-grep.vim
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+
+ einfo "Syntax highlighting is supported through dev-python/pygments."
+ einfo "Install it if you want colorized output formats."
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}