blob: 960248e0538b7c00a864bde0f85b7bcc4dbb4c55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit elisp
MY_PV="${PV/_beta/b}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="The VM mail reader for Emacs"
HOMEPAGE="http://www.nongnu.org/viewmail/"
SRC_URI="https://launchpad.net/vm/${PV%.*}.x/${MY_PV}/+download/${MY_P}.tgz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 ppc ~ppc64 x86"
IUSE="bbdb ssl"
BDEPEND="bbdb? ( app-emacs/bbdb )"
RDEPEND="${BDEPEND}
ssl? ( net-misc/stunnel )"
BDEPEND="${BDEPEND}
sys-apps/texinfo"
S="${WORKDIR}/${MY_P}"
SITEFILE="50${PN}-gentoo.el"
PATCHES=(
"${FILESDIR}"/${P}-datadir.patch
"${FILESDIR}"/${P}-texinfo-5.patch
"${FILESDIR}"/${P}-optional-args.patch
"${FILESDIR}"/${P}-texinfo-encoding.patch
)
src_prepare() {
elisp_src_prepare
if ! use bbdb; then
elog "Excluding vm-pcrisis.el since the \"bbdb\" USE flag is not set."
eapply "${FILESDIR}/${PN}-8.0-no-pcrisis.patch"
fi
}
src_configure() {
econf \
--with-emacs="emacs" \
--with-lispdir="${SITELISP}/${PN}" \
--with-etcdir="${SITEETC}/${PN}" \
--with-docdir="/usr/share/doc/${PF}" \
$(use bbdb && echo "--with-other-dirs=${SITELISP}/bbdb")
}
src_compile() {
emake -j1
}
src_install() {
emake -j1 DESTDIR="${D}" install
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
# delete duplicate documentation
find "${D}/${SITEETC}/${PN}" -type d -name pixmaps -prune \
-o -type f -exec rm '{}' '+' || die
rm "${D}/usr/share/doc/${PF}/COPYING" || die
dodoc example.vm
# NEWS is accessed from lisp and must not be compressed
docompress -x /usr/share/doc/${PF}/NEWS
}
|