Files
gentoo/dev-util/cflow/cflow-1.6.ebuild
T
Ulrich Müller f2594e03a6 dev-util/cflow: Update virtual/emacs dependency.
The virtual is deprecated, depend on app-editors/emacs instead.

Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
2019-12-20 23:48:34 +01:00

58 lines
1.0 KiB
Bash

# 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? ( >=app-editors/emacs-23.1:* )
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
}