1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools elisp-common ltprune
8 DESCRIPTION="Namazu is a full-text search engine"
9 HOMEPAGE="http://www.namazu.org/"
10 SRC_URI="http://www.namazu.org/stable/${P}.tar.gz"
14 KEYWORDS="amd64 ~ppc ~ppc64 x86"
15 IUSE="emacs l10n_ja nls static-libs tk"
17 RDEPEND="dev-perl/File-MMagic
18 emacs? ( virtual/emacs )
28 nls? ( virtual/libintl )
34 nls? ( sys-devel/gettext )"
37 "${FILESDIR}"/${PN}-gentoo.patch
38 "${FILESDIR}"/${PN}-perl-5.18.patch
39 "${FILESDIR}"/${PN}-perl-5.26.patch
40 "${FILESDIR}"/${P}-memmove.patch
47 mv tk${PN}/configure.{in,ac}
54 $(use_enable static-libs static)
55 $(use_enable tk tk${PN})
58 --with-${PN}="${EPREFIX}"/usr/bin/${PN}
59 --with-mknmz="${EPREFIX}"/usr/bin/mknmz
60 --with-indexdir="${EPREFIX}"/var/lib/${PN}/index
81 emake DESTDIR="${D}" install
84 elisp-install ${PN} lisp/*.el*
85 elisp-site-file-install "${FILESDIR}"/50${PN}-gentoo.el
95 use emacs && elisp-site-regen
99 use emacs && elisp-site-regen