You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.2 KiB
61 lines
1.2 KiB
5 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
5 years ago
|
EAPI=7
|
||
10 years ago
|
|
||
|
inherit elisp autotools
|
||
|
|
||
|
DESCRIPTION="The Insidious Big Brother Database"
|
||
8 years ago
|
HOMEPAGE="https://savannah.nongnu.org/projects/bbdb/"
|
||
10 years ago
|
SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz"
|
||
|
|
||
5 years ago
|
LICENSE="GPL-3+ GPL-1+"
|
||
10 years ago
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~alpha amd64 ~ia64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
|
||
10 years ago
|
IUSE="tex vm"
|
||
7 years ago
|
RESTRICT="test" #631700
|
||
10 years ago
|
|
||
5 years ago
|
BDEPEND="vm? ( app-emacs/vm )"
|
||
|
RDEPEND="${BDEPEND}
|
||
|
tex? ( virtual/tex-base )"
|
||
10 years ago
|
|
||
|
SITEFILE="50${PN}-gentoo-${PV}.el"
|
||
|
TEXMF="/usr/share/texmf-site"
|
||
|
|
||
|
src_prepare() {
|
||
5 years ago
|
eapply "${FILESDIR}"/${P}-no-init.patch
|
||
|
eapply_user
|
||
10 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
|
--with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
|
||
|
"$(use_with vm vm-dir "${EPREFIX}${SITELISP}/vm")"
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake -C lisp
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake -C lisp DESTDIR="${D}" install
|
||
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||
|
dodoc AUTHORS ChangeLog NEWS README TODO
|
||
|
|
||
|
if use tex; then
|
||
|
insinto "${TEXMF}"/tex/plain/${PN}
|
||
|
doins tex/*.tex
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elisp-site-regen
|
||
|
use tex && texconfig rehash
|
||
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
|
elisp-site-regen
|
||
|
use tex && texconfig rehash
|
||
|
}
|