diff options
author | Sebastian Pipping <sping@gentoo.org> | 2010-06-01 22:16:21 +0200 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2010-06-01 22:18:39 +0200 |
commit | 1ae374033fe65a8cb72707850f8aa5b9c20e6a5c (patch) | |
tree | 5e9f0755a9925bc4fb233a5ec02772c5a668f37b /dev-cpp | |
parent | Set repo_name (diff) | |
download | betagarden-1ae374033fe65a8cb72707850f8aa5b9c20e6a5c.tar.gz betagarden-1ae374033fe65a8cb72707850f8aa5b9c20e6a5c.tar.bz2 betagarden-1ae374033fe65a8cb72707850f8aa5b9c20e6a5c.zip |
Migrate some ebuilds from sping overlay
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/ctemplate/Manifest | 3 | ||||
-rw-r--r-- | dev-cpp/ctemplate/ctemplate-0.96.ebuild | 60 | ||||
-rw-r--r-- | dev-cpp/ctemplate/metadata.xml | 5 |
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-cpp/ctemplate/Manifest b/dev-cpp/ctemplate/Manifest new file mode 100644 index 0000000..4d35b3a --- /dev/null +++ b/dev-cpp/ctemplate/Manifest @@ -0,0 +1,3 @@ +DIST ctemplate-0.96.tar.gz 762800 RMD160 38e79330665c6ba194a01f9de0633d4c53315c5e SHA1 7b4078b44a8deab412164c5f5293963b935b0005 SHA256 ac55d854b39db0ff36eeba6ee2fdf0cade95bfa6f5d89a26f136e7481bfa989b +EBUILD ctemplate-0.96.ebuild 1399 RMD160 2ff56a62dd82e753772e35a76dbaf7e9fd1b0915 SHA1 3e97bcbf33bfcea9d709b0eecb28928463c9126c SHA256 f255632582981371329cf0d8c50bfe7dc6dd9f1e459ec10640b7f58a1c97b8f1 +MISC metadata.xml 156 RMD160 537178ef5a820896e97475fb9aded47d50474bef SHA1 2a4ef4879b918a28132d21cd6d1bbaa2a30dccde SHA256 0e8490f9c62cb74e5894b52f643a02de0024d97dbfebad43082dce6bcb39555f diff --git a/dev-cpp/ctemplate/ctemplate-0.96.ebuild b/dev-cpp/ctemplate/ctemplate-0.96.ebuild new file mode 100644 index 0000000..a655339 --- /dev/null +++ b/dev-cpp/ctemplate/ctemplate-0.96.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ctemplate-0.95.ebuild,v 1.1 2009/07/22 14:16:47 dev-zero Exp $ + +EAPI="2" + +inherit elisp-common + +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 ~x86" +IUSE="emacs vim-syntax" + +DEPEND="" +RDEPEND="vim-syntax? ( >=app-editors/vim-core-7 ) + emacs? ( virtual/emacs )" + +SITEFILE="70ctemplate-gentoo.el" + +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 "${D}/usr/share/doc" + + dodoc AUTHORS ChangeLog NEWS README + 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 +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-cpp/ctemplate/metadata.xml b/dev-cpp/ctemplate/metadata.xml new file mode 100644 index 0000000..8434377 --- /dev/null +++ b/dev-cpp/ctemplate/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cpp</herd> +</pkgmetadata> |