diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2019-03-02 10:22:13 +0100 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2019-03-02 10:26:00 +0100 |
commit | 7faf57b761061ee834f98c44b2d3973a7ffaa673 (patch) | |
tree | 2bd64297dde2665cf1f60ff616eeba734a1a48ec /dev-util/cflow/cflow-1.6.ebuild | |
parent | gnome-base/gnome-session: bump to 3.28.1, update MIME defaults (diff) | |
download | gentoo-7faf57b761061ee834f98c44b2d3973a7ffaa673.tar.gz gentoo-7faf57b761061ee834f98c44b2d3973a7ffaa673.tar.bz2 gentoo-7faf57b761061ee834f98c44b2d3973a7ffaa673.zip |
dev-util/cflow: version bump to 1.6, adapt to EAPI-7
thanks to jer for the heads-up
Closes: https://bugs.gentoo.org/678688
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Tiziano Müller <dev-zero@gentoo.org>
Diffstat (limited to 'dev-util/cflow/cflow-1.6.ebuild')
-rw-r--r-- | dev-util/cflow/cflow-1.6.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/cflow/cflow-1.6.ebuild b/dev-util/cflow/cflow-1.6.ebuild new file mode 100644 index 000000000000..a7aa5e876cbf --- /dev/null +++ b/dev-util/cflow/cflow-1.6.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit elisp-common + +DESCRIPTION="C function call hierarchy analyzer" +HOMEPAGE="https://www.gnu.org/software/cflow/" +SRC_URI="http://ftp.gnu.org/gnu/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 )" +BDEPEND="${RDEPEND} + sys-devel/flex + nls? ( sys-devel/gettext )" + +SITEFILE="50${PN}-gentoo.el" +PATCHES=( "${FILESDIR}/cflow-1.4-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 +} |