summaryrefslogtreecommitdiff
path: root/dev-util/coccigrep
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/coccigrep
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/coccigrep')
-rw-r--r--dev-util/coccigrep/Manifest6
-rw-r--r--dev-util/coccigrep/coccigrep-1.13.ebuild60
-rw-r--r--dev-util/coccigrep/files/50coccigrep-gentoo.el4
-rw-r--r--dev-util/coccigrep/metadata.xml14
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-util/coccigrep/Manifest b/dev-util/coccigrep/Manifest
new file mode 100644
index 000000000000..eca92a81ae5c
--- /dev/null
+++ b/dev-util/coccigrep/Manifest
@@ -0,0 +1,6 @@
+AUX 50coccigrep-gentoo.el 99 SHA256 f43c286e8ab2615dc12b610208b140823fccaf0005b7b39616ce487af5a05922 SHA512 13cf90c99017cfb865c1d41e9813bb20993b4a91419e4bcca6b5536e8c35bfb871616c5174dd08eb8f1726f05296205428d14eaf9e9fabcf08bff01b287581f4 WHIRLPOOL eaabbae5a7084d5e6d7c434060dcf27ee14ee93ef427d93c97eba9fb155c8e8f4642da8c9fbc89a5e84b89b31112b0311081f12b9284be76fc2fc9a170087147
+DIST coccigrep-1.13.tar.gz 32366 SHA256 15fb99a1f5435a6d30fa967cc24141fee2d5116d1140d7ca34b38b763cf26b32 SHA512 d01baefe1c5f5d23ce03e5daccde0c38d4c05872313a0c8d15e53444c34fa6ae0db3b25bd62d8635a3f7b16e64767f92051c59d29bbd81cd24f94c9376af08ba WHIRLPOOL 0c5fded9ac451298754c95f9453c4f4d08c82b3f59749b4cf099d51b22b8885b1cd5c440f781783a226b0bc7707980eed644b3aa8efbba14f591978c835b698d
+EBUILD coccigrep-1.13.ebuild 1331 SHA256 6bafd8c7b059b0564502795e0cae28573495f4bc639c842a95599e641b7bda10 SHA512 bfbfe08294264e7f982e2f68e0ce0ecf72bb28eaac4f73d6afe45a9a63e56350481a7979923588a825a0e2de249a86788b6adae7cd5274fb4991868354c37a45 WHIRLPOOL 47d47cd293ee284d0279d1f8bf921ebc46fd00bbdefd0e565687d8abed850326ff106fb7764974cb10f73562771411f9e5262c12106fb24d8cf0a78af83f9432
+MISC ChangeLog 2603 SHA256 00666f8a603c880c7e56eff92a57529a76cc9a02b3debaef9c894505f8da4a27 SHA512 4da6e812ce655645c59f4c733a4968a81127a6693987868d5c445c675d13e2a9520dbf2ee810b3fe1cebd93ef1b517f018556346ad490ad66b726459907020fe WHIRLPOOL 4eebbb4d3354279da5fa83024edd2072c55792e468784dd4a6c13d0c85e3fe56dc0ec8814bbb81cd1a1b971fb685a7037353fdeaebb602a42808a10fd453c35a
+MISC ChangeLog-2015 2719 SHA256 e019a39a8a62bf882da10d8d6eb183e1c0d6d29cb5902e7e13ce086eb47ba543 SHA512 6400adfdf90d68ff9cc50c38fe27a56d08b47565064f294b36ff9d86f69b8e5b4de57046f4e66a81acf24ae8bb1849bbb68aa6f0536ad60e4f07f112eae1345a WHIRLPOOL 40fafa825cc721ea0c95ebf4d47db684256bdc82fc3b746c7f5fd9ae66a06e796b459ad7a4ffa265c7dcde4d3db781028f78f1593ab2582545ec6c7eaae2e31c
+MISC metadata.xml 400 SHA256 00b14336b7e4f35c5d5a1d850b81901a229708be5c713094b1b8862ba89b4737 SHA512 785b3ffe7af1ca248f1aad24c21e3d5c5e0fdef899a7002ae53fea4a8fcafd3ad2d2e759540a1e0556853b62bfa7b0c27303a5be45bde5ce176db3be94c31c40 WHIRLPOOL 110f992be3edf6702ba2e24e1d1e8a420ca685064a431f525391b3d34027e72c5e0048082349fa609dc8df5f4df45827219ca6844b99e29cbb68f7024db3645c
diff --git a/dev-util/coccigrep/coccigrep-1.13.ebuild b/dev-util/coccigrep/coccigrep-1.13.ebuild
new file mode 100644
index 000000000000..6cc6aa3b0ab8
--- /dev/null
+++ b/dev-util/coccigrep/coccigrep-1.13.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 elisp-common
+
+DESCRIPTION="A semantic grep for the C language"
+HOMEPAGE="http://home.regit.org/software/coccigrep/"
+SRC_URI="https://github.com/regit/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc emacs vim"
+
+RDEPEND="dev-util/coccinelle[python]
+ emacs? ( virtual/emacs )
+ vim? ( || ( app-editors/vim app-editors/gvim ) )"
+DEPEND="doc? ( dev-python/sphinx )
+ emacs? ( virtual/emacs )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+python_compile_all() {
+ use doc && emake -C doc html
+
+ if use emacs ; then
+ elisp-compile editors/*.el || die
+ fi
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS="doc/_build/html/."
+ distutils-r1_python_install_all
+
+ doman ${PN}.1
+
+ if use emacs ; then
+ elisp-install ${PN} editors/*.{el,elc} || 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/50coccigrep-gentoo.el b/dev-util/coccigrep/files/50coccigrep-gentoo.el
new file mode 100644
index 000000000000..7fbc6b93e541
--- /dev/null
+++ b/dev-util/coccigrep/files/50coccigrep-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..0c548f25bb2b
--- /dev/null
+++ b/dev-util/coccigrep/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="vim">Install the coccigrep vim plugin</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">regit/coccigrep</remote-id>
+ </upstream>
+</pkgmetadata>