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-cpp/ctemplate: ChangeLog ctemplate-0.99.ebuild ctemplate-0.95.ebuild
Date: Fri, 28 Jan 2011 11:10:22
Message-Id: 20110128111011.A306D20054@flycatcher.gentoo.org
1 radhermit 11/01/28 11:10:11
2
3 Modified: ChangeLog
4 Added: ctemplate-0.99.ebuild
5 Removed: ctemplate-0.95.ebuild
6 Log:
7 Version bump, add static-libs USE flag, and remove old.
8
9 (Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.9 dev-cpp/ctemplate/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/ctemplate/ChangeLog?rev=1.9&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/ctemplate/ChangeLog?rev=1.9&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/ctemplate/ChangeLog?r1=1.8&r2=1.9
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ChangeLog,v
21 retrieving revision 1.8
22 retrieving revision 1.9
23 diff -u -r1.8 -r1.9
24 --- ChangeLog 26 Oct 2010 07:41:45 -0000 1.8
25 +++ ChangeLog 28 Jan 2011 11:10:11 -0000 1.9
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-cpp/ctemplate
28 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ChangeLog,v 1.8 2010/10/26 07:41:45 radhermit Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ChangeLog,v 1.9 2011/01/28 11:10:11 radhermit Exp $
32 +
33 +*ctemplate-0.99 (28 Jan 2011)
34 +
35 + 28 Jan 2011; Tim Harder <radhermit@g.o> -ctemplate-0.95.ebuild,
36 + +ctemplate-0.99.ebuild:
37 + Version bump, add static-libs USE flag, and remove old.
38
39 *ctemplate-0.98 (26 Oct 2010)
40
41
42
43
44 1.1 dev-cpp/ctemplate/ctemplate-0.99.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/ctemplate/ctemplate-0.99.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-cpp/ctemplate/ctemplate-0.99.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ctemplate-0.99.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ctemplate-0.99.ebuild,v 1.1 2011/01/28 11:10:11 radhermit Exp $
54
55 EAPI="3"
56
57 inherit elisp-common
58
59 DESCRIPTION="A simple but powerful template language for C++"
60 HOMEPAGE="http://code.google.com/p/google-ctemplate/"
61 SRC_URI="http://google-ctemplate.googlecode.com/files/${P}.tar.gz"
62
63 LICENSE="BSD"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
66 IUSE="doc emacs vim-syntax static-libs"
67
68 DEPEND=""
69 RDEPEND="vim-syntax? ( >=app-editors/vim-core-7 )
70 emacs? ( virtual/emacs )"
71
72 SITEFILE="70ctemplate-gentoo.el"
73
74 src_configure() {
75 econf \
76 --disable-dependency-tracking \
77 --enable-shared \
78 $(use_enable static-libs static)
79 }
80
81 src_compile() {
82 emake || die "emake failed"
83
84 if use emacs ; then
85 elisp-compile contrib/tpl-mode.el || die "elisp-compile failed"
86 fi
87 }
88
89 src_install() {
90 emake DESTDIR="${D}" install || die "emake install failed"
91
92 # Installs just every piece
93 rm -rf "${ED}/usr/share/doc"
94
95 dodoc AUTHORS ChangeLog NEWS README
96 use doc && dohtml doc/*
97
98 if use vim-syntax ; then
99 cd "${S}/contrib"
100 sh highlighting.vim || die "unpacking vim scripts failed"
101 insinto /usr/share/vim/vimfiles
102 doins -r .vim/*
103 fi
104
105 if use emacs ; then
106 cd "${S}/contrib"
107 elisp-install ${PN} tpl-mode.el tpl-mode.elc || die "elisp-install failed"
108 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
109 fi
110 }
111
112 pkg_postinst() {
113 use emacs && elisp-site-regen
114 }
115
116 pkg_postrm() {
117 use emacs && elisp-site-regen
118 }