diff options
Diffstat (limited to 'dev-util/cflow')
-rw-r--r-- | dev-util/cflow/Manifest | 5 | ||||
-rw-r--r-- | dev-util/cflow/cflow-1.4.ebuild | 59 | ||||
-rw-r--r-- | dev-util/cflow/files/50cflow-gentoo.el | 6 | ||||
-rw-r--r-- | dev-util/cflow/files/cflow-1.4-info-direntry.patch | 13 | ||||
-rw-r--r-- | dev-util/cflow/metadata.xml | 15 |
5 files changed, 98 insertions, 0 deletions
diff --git a/dev-util/cflow/Manifest b/dev-util/cflow/Manifest new file mode 100644 index 000000000000..5c0a1aadb7ec --- /dev/null +++ b/dev-util/cflow/Manifest @@ -0,0 +1,5 @@ +AUX 50cflow-gentoo.el 177 BLAKE2B d43229ed9ebeea653f91ceadd84f641eff4bf1168cf6e94524c228c943ff973e2cf99216bf7be10dc766014d607f9edf1ab74230e963fbe62561c66914665b15 SHA512 1edbe2c330206fdb9ad3844a2278dc71d13a0ce7c46c73030192de3f05634fe08012c04e7c94883b1f6fde21483aba29e16f7a1466719c975e9c60d59507c5e3 +AUX cflow-1.4-info-direntry.patch 356 BLAKE2B 5edd13456dc90461927c0b2ecbb7c66987ef935e54d7d89010bdddac6193a9eee852fde601543149a3aeef1fc5e3447d43d2e076673e9ebd3b6e5bb978477008 SHA512 6bcfd0ec801b3c487d817d2fd1a0f030a1e3fccffb03f5343eb335c807fd763a8c00d8f98654ce3f8574e756a9c1d5769da71b9fb70acee0ecdace6395a3a624 +DIST cflow-1.4.tar.bz2 634862 BLAKE2B ac8d31b2af7c11bc09f440f0f044f67a538a2a2d574146216b11239097553c41d4982594cc919fc6cc3b861a9b1bf1bd200a0c1f14ee8ab437b724bf6d84c6c7 SHA512 b8f8bd0e75e9ad0ba112313c576766b7cf72ef1e29ad0b0a2ce233f43b4196e311077be2134ff6e0fa0bb18375469ca6a969307fa7565a63ab60dec20400ee03 +EBUILD cflow-1.4.ebuild 1062 BLAKE2B 7859e1bf77201114ebc9731efc12c0b406252f27bda699419f9d6569e08710d64eab4510e66d574ac5a741c929a867333579a841c6fe149ff014a00f40fdca34 SHA512 98d316fb2cef72bcf601a744604bda6bbc3bf28673d4879264993f79cb0c4468bee5ca65317d05924459f609ccb116e1745c10aa324608b7df02a2af4705de8d +MISC metadata.xml 588 BLAKE2B a5466656ce4c3a761b64b1ade2fef0363065450ddc10d590a0f52f5b8fd4df057cdc99a84c056925bdfcbabbb63ed2eb4e646d04b0adde4378adac56c290757f SHA512 cc702fd85f1e907a364f9e79e4b183bd4ff2317750bf917acbef7d326abded9c1adbd66bd21a46df7b394e9d4990c8c056c7173a4fa758217519f3def7c789a2 diff --git a/dev-util/cflow/cflow-1.4.ebuild b/dev-util/cflow/cflow-1.4.ebuild new file mode 100644 index 000000000000..d34006c749eb --- /dev/null +++ b/dev-util/cflow/cflow-1.4.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit elisp-common eutils + +DESCRIPTION="C function call hierarchy analyzer" +HOMEPAGE="https://www.gnu.org/software/cflow/" +SRC_URI="ftp://download.gnu.org.ua/pub/release/cflow/${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug emacs nls" + +RDEPEND="emacs? ( virtual/emacs ) + nls? ( virtual/libintl virtual/libiconv )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + epatch "${FILESDIR}/${P}-info-direntry.patch" +} + +src_configure() { + econf \ + $(use_enable nls) \ + $(use_enable debug) \ + EMACS=no +} + +src_compile() { + default + + if use emacs; then + elisp-compile elisp/cflow-mode.el + fi +} + +src_install() { + default + doinfo doc/cflow.info + + if use emacs; then + elisp-install ${PN} elisp/cflow-mode.{el,elc} + 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-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/cflow-1.4-info-direntry.patch b/dev-util/cflow/files/cflow-1.4-info-direntry.patch new file mode 100644 index 000000000000..ab7e4956425f --- /dev/null +++ b/dev-util/cflow/files/cflow-1.4-info-direntry.patch @@ -0,0 +1,13 @@ +diff --git a/doc/cflow.texi b/doc/cflow.texi +index dfb1fdf..5dc1d48 100644 +--- a/doc/cflow.texi ++++ b/doc/cflow.texi +@@ -21,7 +21,7 @@ + @end direntry + @dircategory Emacs + @direntry +-* cflow mode: (cflow)cflow mode. Major mode for visiting cflow charts. ++* cflow mode: (cflow)Emacs. Major mode for visiting cflow charts. + @end direntry + @end ifinfo + diff --git a/dev-util/cflow/metadata.xml b/dev-util/cflow/metadata.xml new file mode 100644 index 000000000000..8e343daf6159 --- /dev/null +++ b/dev-util/cflow/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>dev-zero@gentoo.org</email> + </maintainer> + <longdescription lang="en"> + GNU cflow analyzes a collection of C source files and prints a graph, + charting control flow within the program. + + GNU cflow is able to produce both direct and inverted flowgraphs for C + sources. Optionally a cross-reference listing can be generated. Two + output formats are implemented: POSIX and GNU (extended). + </longdescription> +</pkgmetadata> |