diff options
author | 2011-09-03 04:21:59 +0000 | |
---|---|---|
committer | 2011-09-03 04:21:59 +0000 | |
commit | f66d2be4c73d03f61b04064cf7fd6a194230575d (patch) | |
tree | fcc16278673580106d6d78188abbfd9a019ed950 /dev-cpp/ctemplate/ctemplate-1.0.ebuild | |
parent | Version bump. TODO: review init scripts and logrotate compatibility. (diff) | |
download | historical-f66d2be4c73d03f61b04064cf7fd6a194230575d.tar.gz historical-f66d2be4c73d03f61b04064cf7fd6a194230575d.tar.bz2 historical-f66d2be4c73d03f61b04064cf7fd6a194230575d.zip |
Version bump.
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'dev-cpp/ctemplate/ctemplate-1.0.ebuild')
-rw-r--r-- | dev-cpp/ctemplate/ctemplate-1.0.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/dev-cpp/ctemplate/ctemplate-1.0.ebuild b/dev-cpp/ctemplate/ctemplate-1.0.ebuild new file mode 100644 index 000000000000..c300e4151438 --- /dev/null +++ b/dev-cpp/ctemplate/ctemplate-1.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ctemplate-1.0.ebuild,v 1.1 2011/09/03 04:21:59 radhermit Exp $ + +EAPI="3" + +inherit elisp-common python + +DESCRIPTION="A simple but powerful template language for C++" +HOMEPAGE="http://code.google.com/p/google-ctemplate/" +SRC_URI="http://google-ctemplate.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc emacs vim-syntax static-libs test" + +DEPEND="test? ( =dev-lang/python-2* )" +RDEPEND="vim-syntax? ( >=app-editors/vim-core-7 ) + emacs? ( virtual/emacs )" + +SITEFILE="70ctemplate-gentoo.el" + +pkg_setup() { + if use test ; then + python_set_active_version 2 + python_pkg_setup + fi +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + --enable-shared \ + $(use_enable static-libs static) +} + +src_compile() { + emake || die "emake failed" + + if use emacs ; then + elisp-compile contrib/tpl-mode.el || die "elisp-compile failed" + fi +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # Installs just every piece + rm -rf "${ED}/usr/share/doc" + + dodoc AUTHORS ChangeLog NEWS README + use doc && dohtml doc/* + + if use vim-syntax ; then + cd "${S}/contrib" + sh highlighting.vim || die "unpacking vim scripts failed" + insinto /usr/share/vim/vimfiles + doins -r .vim/* + fi + + if use emacs ; then + cd "${S}/contrib" + elisp-install ${PN} tpl-mode.el tpl-mode.elc || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + find "${ED}" -name '*.la' -exec rm -f {} + +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |