Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/coccigrep: ChangeLog coccigrep-1.9.ebuild
Date: Wed, 01 Aug 2012 07:13:47
Message-Id: 20120801071336.6B29E2004B@flycatcher.gentoo.org
1 radhermit 12/08/01 07:13:36
2
3 Modified: ChangeLog
4 Added: coccigrep-1.9.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.9 dev-util/coccigrep/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccigrep/ChangeLog?rev=1.9&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccigrep/ChangeLog?rev=1.9&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccigrep/ChangeLog?r1=1.8&r2=1.9
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/coccigrep/ChangeLog,v
20 retrieving revision 1.8
21 retrieving revision 1.9
22 diff -u -r1.8 -r1.9
23 --- ChangeLog 24 Mar 2012 06:40:01 -0000 1.8
24 +++ ChangeLog 1 Aug 2012 07:13:36 -0000 1.9
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-util/coccigrep
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/coccigrep/ChangeLog,v 1.8 2012/03/24 06:40:01 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/coccigrep/ChangeLog,v 1.9 2012/08/01 07:13:36 radhermit Exp $
30 +
31 +*coccigrep-1.9 (01 Aug 2012)
32 +
33 + 01 Aug 2012; Tim Harder <radhermit@g.o> +coccigrep-1.9.ebuild:
34 + Version bump.
35
36 24 Mar 2012; Tim Harder <radhermit@g.o> -coccigrep-1.6.ebuild:
37 Remove old.
38
39
40
41 1.1 dev-util/coccigrep/coccigrep-1.9.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccigrep/coccigrep-1.9.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/coccigrep/coccigrep-1.9.ebuild?rev=1.1&content-type=text/plain
45
46 Index: coccigrep-1.9.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/coccigrep/coccigrep-1.9.ebuild,v 1.1 2012/08/01 07:13:36 radhermit Exp $
51
52 EAPI=4
53 PYTHON_DEPEND="2"
54
55 inherit distutils elisp-common vcs-snapshot
56
57 DESCRIPTION="A semantic grep for the C language"
58 HOMEPAGE="http://home.regit.org/software/coccigrep/"
59 SRC_URI="https://github.com/regit/${PN}/tarball/v${PV/_/} -> ${P}.tar.gz"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="doc emacs vim"
65
66 RDEPEND="dev-util/coccinelle[python]
67 || ( dev-lang/python:2.7 dev-python/argparse )
68 emacs? ( virtual/emacs )
69 vim? ( || ( app-editors/vim app-editors/gvim ) )"
70 DEPEND="doc? ( dev-python/sphinx )
71 emacs? ( virtual/emacs )"
72
73 SITEFILE="50${PN}-gentoo.el"
74
75 pkg_setup() {
76 python_set_active_version 2
77 python_pkg_setup
78 }
79
80 src_compile() {
81 distutils_src_compile
82 use doc && emake -C doc html
83
84 if use emacs ; then
85 elisp-compile editors/*.el || die
86 fi
87 }
88
89 src_install() {
90 distutils_src_install
91 doman ${PN}.1
92
93 use doc && dohtml -r doc/_build/html/*
94
95 if use emacs ; then
96 elisp-install ${PN} editors/*.{el,elc} || die
97 elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
98 fi
99
100 if use vim ; then
101 insinto /usr/share/vim/vimfiles/plugin
102 doins editors/cocci-grep.vim
103 fi
104 }
105
106 pkg_postinst() {
107 use emacs && elisp-site-regen
108
109 einfo "Syntax highlighting is supported through dev-python/pygments."
110 einfo "Install it if you want colorized output formats."
111 }
112
113 pkg_postrm() {
114 use emacs && elisp-site-regen
115 }