diff options
author | 2018-08-10 08:22:02 +0200 | |
---|---|---|
committer | 2018-08-10 08:22:41 +0200 | |
commit | 5e3ee0a508a71cbc4090d86e09e3a5c124566034 (patch) | |
tree | 66c04ab6d3c54449f089d1cac27c75c364472b25 /app-emacs/vm/vm-8.2.0_beta-r1.ebuild | |
parent | app-emacs/vm: Depend on <app-emacs/bbdb-3. (diff) | |
download | gentoo-5e3ee0a508a71cbc4090d86e09e3a5c124566034.tar.gz gentoo-5e3ee0a508a71cbc4090d86e09e3a5c124566034.tar.bz2 gentoo-5e3ee0a508a71cbc4090d86e09e3a5c124566034.zip |
app-emacs/vm: Fix function definition in vm-pcrisis.el.
Bug: https://bugs.gentoo.org/652952
Package-Manager: Portage-2.3.45, Repoman-2.3.10
Diffstat (limited to 'app-emacs/vm/vm-8.2.0_beta-r1.ebuild')
-rw-r--r-- | app-emacs/vm/vm-8.2.0_beta-r1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/app-emacs/vm/vm-8.2.0_beta-r1.ebuild b/app-emacs/vm/vm-8.2.0_beta-r1.ebuild new file mode 100644 index 000000000000..0cdf2674f889 --- /dev/null +++ b/app-emacs/vm/vm-8.2.0_beta-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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="~amd64 ~ppc ~x86" +IUSE="bbdb ssl" + +DEPEND="bbdb? ( <app-emacs/bbdb-3 )" +RDEPEND="${DEPEND} + ssl? ( net-misc/stunnel )" +BDEPEND="sys-apps/texinfo" + +S="${WORKDIR}/${MY_P}" +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + eapply "${FILESDIR}/${P}-datadir.patch" + eapply "${FILESDIR}/${P}-texinfo-5.patch" + eapply "${FILESDIR}/${P}-optional-args.patch" + eapply_user + + 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 +} |