diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2008-01-31 08:57:02 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2008-01-31 08:57:02 +0000 |
commit | 71301692105d96034de6651a1aadb17a3e88c6ae (patch) | |
tree | b7bc80b60a1ef17dca7cc82ca4e3b7e46a970c0e | |
parent | Install elisp source files earlier, bug 205156 comment 3. (diff) | |
download | gentoo-2-71301692105d96034de6651a1aadb17a3e88c6ae.tar.gz gentoo-2-71301692105d96034de6651a1aadb17a3e88c6ae.tar.bz2 gentoo-2-71301692105d96034de6651a1aadb17a3e88c6ae.zip |
Initial commit (bug #200861, based on the ebuild provided by pepone).
(Portage version: 2.1.4)
-rw-r--r-- | dev-cpp/ctemplate/ChangeLog | 10 | ||||
-rw-r--r-- | dev-cpp/ctemplate/Manifest | 20 | ||||
-rw-r--r-- | dev-cpp/ctemplate/ctemplate-0.9.ebuild | 60 | ||||
-rw-r--r-- | dev-cpp/ctemplate/files/70ctemplate-gentoo.el | 7 | ||||
-rw-r--r-- | dev-cpp/ctemplate/files/digest-ctemplate-0.9 | 3 | ||||
-rw-r--r-- | dev-cpp/ctemplate/metadata.xml | 5 |
6 files changed, 105 insertions, 0 deletions
diff --git a/dev-cpp/ctemplate/ChangeLog b/dev-cpp/ctemplate/ChangeLog new file mode 100644 index 000000000000..a7bbf07a45d2 --- /dev/null +++ b/dev-cpp/ctemplate/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-cpp/ctemplate +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ChangeLog,v 1.1 2008/01/31 08:57:01 dev-zero Exp $ + +*ctemplate-0.9 (31 Jan 2008) + + 31 Jan 2008; Tiziano Müller <dev-zero@gentoo.org> + +files/70ctemplate-gentoo.el, +metadata.xml, +ctemplate-0.9.ebuild: + Initial commit (bug #200861, based on the ebuild provided by pepone). + diff --git a/dev-cpp/ctemplate/Manifest b/dev-cpp/ctemplate/Manifest new file mode 100644 index 000000000000..a90fb4332b64 --- /dev/null +++ b/dev-cpp/ctemplate/Manifest @@ -0,0 +1,20 @@ +AUX 70ctemplate-gentoo.el 282 RMD160 3719bdae10ccdaaadf403b21031930f8f107d8fc SHA1 638e8e8d1614873fe6a85ab23d94875ac1b8019b SHA256 5b0f78a1bfc6171856ba0822612cff0a0451ee9c7969ab4ae935f15eed715de7 +MD5 a641280d0c2b4ab2a23b7dbe2caeaf51 files/70ctemplate-gentoo.el 282 +RMD160 3719bdae10ccdaaadf403b21031930f8f107d8fc files/70ctemplate-gentoo.el 282 +SHA256 5b0f78a1bfc6171856ba0822612cff0a0451ee9c7969ab4ae935f15eed715de7 files/70ctemplate-gentoo.el 282 +DIST ctemplate-0.9.tar.gz 536000 RMD160 e16da072b3066128886ba2259d7698aae5575567 SHA1 320273a18a7a304fe66d543ae2a377158da61080 SHA256 c4a68c27ccf32558046b41f173037e19e2b8d474c9fa4160485339165179548a +EBUILD ctemplate-0.9.ebuild 1317 RMD160 bec795f85f3426fbd9cbab6f1434c7fb7a7786e2 SHA1 34d4d8af6c1fc494008ca18f7c4e2ac58179bd32 SHA256 b25c6c21d673dd940ae748e11321807757c44b7d67bad87ca18a457f9ef06a17 +MD5 5bead3a675f0d9d43afa42a6292bf345 ctemplate-0.9.ebuild 1317 +RMD160 bec795f85f3426fbd9cbab6f1434c7fb7a7786e2 ctemplate-0.9.ebuild 1317 +SHA256 b25c6c21d673dd940ae748e11321807757c44b7d67bad87ca18a457f9ef06a17 ctemplate-0.9.ebuild 1317 +MISC ChangeLog 344 RMD160 4be7f5d8398d1618ce7cd577c99304d3f1cc4f44 SHA1 fcf65b032df961ec6d314a21d7d150c9ee963475 SHA256 c44b9e8371a102ee9cee8084bb5491bc15443108b1b43f0775c84b609b74a892 +MD5 5958160c61644a43b809c9de54cd5ad6 ChangeLog 344 +RMD160 4be7f5d8398d1618ce7cd577c99304d3f1cc4f44 ChangeLog 344 +SHA256 c44b9e8371a102ee9cee8084bb5491bc15443108b1b43f0775c84b609b74a892 ChangeLog 344 +MISC metadata.xml 156 RMD160 537178ef5a820896e97475fb9aded47d50474bef SHA1 2a4ef4879b918a28132d21cd6d1bbaa2a30dccde SHA256 0e8490f9c62cb74e5894b52f643a02de0024d97dbfebad43082dce6bcb39555f +MD5 41d7ac32dc54956e937401bb5a2c3810 metadata.xml 156 +RMD160 537178ef5a820896e97475fb9aded47d50474bef metadata.xml 156 +SHA256 0e8490f9c62cb74e5894b52f643a02de0024d97dbfebad43082dce6bcb39555f metadata.xml 156 +MD5 5d6f0784cd66454b5e1ea43ae7680cc7 files/digest-ctemplate-0.9 241 +RMD160 d43a1c892cef6cf1eecde0eff6b81b4889b26004 files/digest-ctemplate-0.9 241 +SHA256 c4139603ea31cd4df274adae75db55fb3a02f1383f99a52f07d4f6ebae792e5b files/digest-ctemplate-0.9 241 diff --git a/dev-cpp/ctemplate/ctemplate-0.9.ebuild b/dev-cpp/ctemplate/ctemplate-0.9.ebuild new file mode 100644 index 000000000000..4315d2619a8c --- /dev/null +++ b/dev-cpp/ctemplate/ctemplate-0.9.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-cpp/ctemplate/ctemplate-0.9.ebuild,v 1.1 2008/01/31 08:57:01 dev-zero Exp $ + +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() { + econf || die "econf failed" + emake || die "emake failed" + + if use emacs ; then + cd contrib + elisp-comp tpl-mode.el || die "elisp-comp 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/files/70ctemplate-gentoo.el b/dev-cpp/ctemplate/files/70ctemplate-gentoo.el new file mode 100644 index 000000000000..a7fce964c3e4 --- /dev/null +++ b/dev-cpp/ctemplate/files/70ctemplate-gentoo.el @@ -0,0 +1,7 @@ +;;; ctemplate site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") + +(setq auto-mode-alist (cons '("\\.tpl$" . tpl-mode) auto-mode-alist)) +(autoload 'tpl-mode "tpl-mode" "Major mode for editing CTemplate files." t) +(add-hook 'tpl-mode-hook '(lambda () (font-lock-mode 1))) diff --git a/dev-cpp/ctemplate/files/digest-ctemplate-0.9 b/dev-cpp/ctemplate/files/digest-ctemplate-0.9 new file mode 100644 index 000000000000..e3f19553ffb9 --- /dev/null +++ b/dev-cpp/ctemplate/files/digest-ctemplate-0.9 @@ -0,0 +1,3 @@ +MD5 9f5208af10592079dcf8059bd4c62b1a ctemplate-0.9.tar.gz 536000 +RMD160 e16da072b3066128886ba2259d7698aae5575567 ctemplate-0.9.tar.gz 536000 +SHA256 c4a68c27ccf32558046b41f173037e19e2b8d474c9fa4160485339165179548a ctemplate-0.9.tar.gz 536000 diff --git a/dev-cpp/ctemplate/metadata.xml b/dev-cpp/ctemplate/metadata.xml new file mode 100644 index 000000000000..8434377a6047 --- /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> |