1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 AM_OPTS="--force-missing"
9 AUTOTOOLS_IN_SOURCE_BUILD=1
10 PYTHON_COMPAT=( python2_7 )
11 inherit autotools-utils elisp-common python-any-r1
13 DESCRIPTION="A simple but powerful template language for C++"
14 HOMEPAGE="http://code.google.com/p/ctemplate/"
15 SRC_URI="https://dev.gentoo.org/~pinkbyte/distfiles/snapshots/${P}.tar.bz2"
19 KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux"
20 IUSE="doc emacs vim-syntax static-libs test"
22 DEPEND="test? ( ${PYTHON_DEPS} )"
23 RDEPEND="vim-syntax? ( >=app-editors/vim-core-7 )
24 emacs? ( virtual/emacs )"
26 DOCS=( AUTHORS ChangeLog NEWS README )
28 SITEFILE="70ctemplate-gentoo.el"
30 # Some tests are broken in 2.2_p129
34 autotools-utils_src_compile
37 elisp-compile contrib/tpl-mode.el || die "elisp-compile failed"
42 autotools-utils_src_install
44 # Installs just every piece
45 rm -rf "${ED}/usr/share/doc"
47 use doc && dohtml doc/*
49 if use vim-syntax ; then
51 sh highlighting.vim || die "unpacking vim scripts failed"
52 insinto /usr/share/vim/vimfiles
58 elisp-install ${PN} tpl-mode.el tpl-mode.elc || die "elisp-install failed"
59 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
64 use emacs && elisp-site-regen
68 use emacs && elisp-site-regen