diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-11-04 08:57:51 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-11-04 08:57:51 +0000 |
commit | 3200f2010335083f6936de29e83c66ba4c7c7a81 (patch) | |
tree | 4b533764579cd82e1d7dc1dd1d67c7a774fdd566 /dev-util/coccigrep | |
parent | Version Bump with permission of robbat2, fixes Segf on non-NUMA systems (diff) | |
download | gentoo-2-3200f2010335083f6936de29e83c66ba4c7c7a81.tar.gz gentoo-2-3200f2010335083f6936de29e83c66ba4c7c7a81.tar.bz2 gentoo-2-3200f2010335083f6936de29e83c66ba4c7c7a81.zip |
Initial import.
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/coccigrep')
-rw-r--r-- | dev-util/coccigrep/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/coccigrep/Manifest | 5 | ||||
-rw-r--r-- | dev-util/coccigrep/coccigrep-1.5.ebuild | 68 | ||||
-rw-r--r-- | dev-util/coccigrep/files/50-coccigrep-gentoo.el | 4 | ||||
-rw-r--r-- | dev-util/coccigrep/metadata.xml | 11 |
5 files changed, 98 insertions, 0 deletions
diff --git a/dev-util/coccigrep/ChangeLog b/dev-util/coccigrep/ChangeLog new file mode 100644 index 000000000000..77a137b5248c --- /dev/null +++ b/dev-util/coccigrep/ChangeLog @@ -0,0 +1,10 @@ +# 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 $ + +*coccigrep-1.5 (04 Nov 2011) + + 04 Nov 2011; Tim Harder <radhermit@gentoo.org> +files/50-coccigrep-gentoo.el, + +coccigrep-1.5.ebuild, +metadata.xml: + Initial import. + diff --git a/dev-util/coccigrep/Manifest b/dev-util/coccigrep/Manifest new file mode 100644 index 000000000000..55ddb7594414 --- /dev/null +++ b/dev-util/coccigrep/Manifest @@ -0,0 +1,5 @@ +AUX 50-coccigrep-gentoo.el 99 RMD160 77c5ec2da1680eccae59add87d8ebef9a5652fd3 SHA1 5e11da91b37a7a9bd456933ca604c464706ced09 SHA256 f43c286e8ab2615dc12b610208b140823fccaf0005b7b39616ce487af5a05922 +DIST coccigrep-1.5.tar.gz 30045 RMD160 0eb35bafcca99a37890e53801946e79fd6b4520d SHA1 527336eb8f1ad534a51e1035778c228845556c28 SHA256 1c14495af3b7f0d3543748b95cb87959fb5c63b73162369c2962394327db69fe +EBUILD coccigrep-1.5.ebuild 1389 RMD160 3d7ba3b97dcc4841859de287edb944d80c19f2e9 SHA1 efac1fb420dd8cf5fe79792c41bc164daa94f18c SHA256 982b06d9d2ec0a0e0df9f76522a2d8b8373a5c398df644ce370a5e6592328dcf +MISC ChangeLog 288 RMD160 d114238370aba43c0b69c34774f7d55e439d775d SHA1 5f3fe64fc05eedb9eb1ecbfe1f645c4bb555d638 SHA256 f6462106d85c6fc25ba965aa84d97d7bf64131af7e98d3282281ccd2c50d8f02 +MISC metadata.xml 306 RMD160 adee1876cb01b4a95dd98fbafa7372ca60cf228d SHA1 d7142ba26a44e55ff791075069f97ef27545cc6c SHA256 d08f420aca2a6c186286c4d23769814bb12ed844e474f2742a97248316ee1f53 diff --git a/dev-util/coccigrep/coccigrep-1.5.ebuild b/dev-util/coccigrep/coccigrep-1.5.ebuild new file mode 100644 index 000000000000..a40a5df22bdb --- /dev/null +++ b/dev-util/coccigrep/coccigrep-1.5.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.5.ebuild,v 1.1 2011/11/04 08:57:51 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 +} diff --git a/dev-util/coccigrep/files/50-coccigrep-gentoo.el b/dev-util/coccigrep/files/50-coccigrep-gentoo.el new file mode 100644 index 000000000000..7fbc6b93e541 --- /dev/null +++ b/dev-util/coccigrep/files/50-coccigrep-gentoo.el @@ -0,0 +1,4 @@ +;;; coccigrep site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(require 'cocci-grep) diff --git a/dev-util/coccigrep/metadata.xml b/dev-util/coccigrep/metadata.xml new file mode 100644 index 000000000000..5de03a4c192a --- /dev/null +++ b/dev-util/coccigrep/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>radhermit@gentoo.org</email> + <name>Tim Harder</name> + </maintainer> + <use> + <flag name="vim">Install the coccigrep vim plugin</flag> + </use> +</pkgmetadata> |