diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-12-15 01:41:21 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-12-15 01:41:21 +0000 |
commit | 1ff749e1092c390c5e94cad94bfd4b7a2b60dfae (patch) | |
tree | b3c6c873f6ea006eb5f3d329ed8b88089a9c0af2 /dev-util/cflow | |
parent | Stable on x86 (bug #202245) (diff) | |
download | gentoo-2-1ff749e1092c390c5e94cad94bfd4b7a2b60dfae.tar.gz gentoo-2-1ff749e1092c390c5e94cad94bfd4b7a2b60dfae.tar.bz2 gentoo-2-1ff749e1092c390c5e94cad94bfd4b7a2b60dfae.zip |
Fix Emacs support, bug #202341.
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'dev-util/cflow')
-rw-r--r-- | dev-util/cflow/ChangeLog | 8 | ||||
-rw-r--r-- | dev-util/cflow/cflow-1.2-r1.ebuild | 54 | ||||
-rw-r--r-- | dev-util/cflow/files/50cflow-gentoo.el | 6 | ||||
-rw-r--r-- | dev-util/cflow/files/digest-cflow-1.2-r1 | 3 |
4 files changed, 70 insertions, 1 deletions
diff --git a/dev-util/cflow/ChangeLog b/dev-util/cflow/ChangeLog index de1819c8d087..a266ada199dd 100644 --- a/dev-util/cflow/ChangeLog +++ b/dev-util/cflow/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/cflow # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/cflow/ChangeLog,v 1.5 2007/07/15 20:24:48 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/cflow/ChangeLog,v 1.6 2007/12/15 01:41:21 ulm Exp $ + +*cflow-1.2-r1 (15 Dec 2007) + + 15 Dec 2007; Ulrich Mueller <ulm@gentoo.org> +files/50cflow-gentoo.el, + +cflow-1.2-r1.ebuild: + Fix Emacs support, bug #202341. *cflow-1.2 (15 Jul 2007) diff --git a/dev-util/cflow/cflow-1.2-r1.ebuild b/dev-util/cflow/cflow-1.2-r1.ebuild new file mode 100644 index 000000000000..6985f5f16cc9 --- /dev/null +++ b/dev-util/cflow/cflow-1.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/cflow/cflow-1.2-r1.ebuild,v 1.1 2007/12/15 01:41:21 ulm Exp $ + +inherit elisp-common + +DESCRIPTION="C function call hierarchy analyzer" +HOMEPAGE="http://www.gnu.org/software/cflow/" +SRC_URI="ftp://download.gnu.org.ua/pub/release/cflow/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug emacs nls" + +DEPEND="nls? ( sys-devel/gettext ) + emacs? ( virtual/emacs )" +RDEPEND="${DEPEND}" + +SITEFILE=50${PN}-gentoo.el + +src_compile() { + econf \ + $(use_enable nls) \ + $(use_enable debug) \ + EMACS=no \ + || die "econf failed" + emake || die "emake failed" + + if use emacs; then + elisp-compile elisp/cflow-mode.el || die "elisp-compile failed" + fi +} + +src_install() { + dodoc AUTHORS ChangeLog NEWS README THANKS TODO + doinfo doc/cflow.info + emake DESTDIR="${D}" install || die "emake install failed" + + if use emacs; then + elisp-install ${PN} elisp/cflow-mode.{el,elc} \ + || die "elisp-install failed" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ + || die "elisp-site-file-install failed" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-util/cflow/files/50cflow-gentoo.el b/dev-util/cflow/files/50cflow-gentoo.el new file mode 100644 index 000000000000..56a2c8c5d775 --- /dev/null +++ b/dev-util/cflow/files/50cflow-gentoo.el @@ -0,0 +1,6 @@ + +;;; cflow site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'cflow-mode "cflow-mode" nil t) +(add-to-list 'auto-mode-alist '("\\.cflow\\'" . cflow-mode)) diff --git a/dev-util/cflow/files/digest-cflow-1.2-r1 b/dev-util/cflow/files/digest-cflow-1.2-r1 new file mode 100644 index 000000000000..f147e57ea23f --- /dev/null +++ b/dev-util/cflow/files/digest-cflow-1.2-r1 @@ -0,0 +1,3 @@ +MD5 860fc15fe9e9aaf42930af5191c518a7 cflow-1.2.tar.bz2 517457 +RMD160 e03c23d4dfc2507ed2081c4a4f49a673aa18d29f cflow-1.2.tar.bz2 517457 +SHA256 db30aa2cb1a2c9f9845b424d284c5b93928a1100545e64761d22a6177a58852c cflow-1.2.tar.bz2 517457 |