/[gentoo-x86]/app-emacs/vm/vm-7.19.282.ebuild
Gentoo

Contents of /app-emacs/vm/vm-7.19.282.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Thu Jan 3 21:51:28 2008 UTC (10 years, 11 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Version bump.
(Portage version: 2.1.4_rc14)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emacs/vm/vm-7.19.282.ebuild,v 1.7 2007/07/13 19:46:13 ulm Exp $
4
5 inherit elisp eutils versionator
6
7 VM_PV=$(get_version_component_range 1-2 ${PV})
8 VM_P=vm-${VM_PV}
9 PATCH_PV=$(get_version_component_range 3- ${PV})
10
11 DESCRIPTION="The VM mail reader for Emacs"
12 HOMEPAGE="http://www.robf.de/Hacking/elisp/"
13 SRC_URI="ftp://ftp.uni-mainz.de/pub/software/gnu/vm/${VM_P}.tar.gz
14 mirror://gentoo/${P}.patch.gz"
15 # patch taken from http://www.robf.de/Hacking/elisp/${VM_P}.patch.gz
16
17 LICENSE="GPL-1"
18 SLOT="0"
19 KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
20 IUSE="bbdb"
21
22 DEPEND="bbdb? ( app-emacs/bbdb )"
23 RDEPEND="${DEPEND}"
24
25 S="${WORKDIR}/${VM_P}"
26
27 SITEFILE=51${PN}-gentoo.el
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32
33 epatch "${WORKDIR}/${P}.patch"
34 epatch "${FILESDIR}/vm-info-dir-fix-gentoo.patch"
35
36 # extract patchdoc.txt from leading text of patch
37 sed -e '1,/^\*\**$/d;/^diff\|^Bin/,$d' "${WORKDIR}/${P}.patch" \
38 >patchdoc.txt || die "sed failed"
39
40 # fix vm-version
41 sed -i -e '/^ (interactive)/,/^$/c\' \
42 -e " (concat vm-version \"-devo-${PATCH_PV}\"))\n" vm-version.el \
43 || die "sed failed"
44
45 if ! use bbdb; then
46 elog "Excluding vm-pcrisis.el since the \"bbdb\" USE flag is not set."
47 rm -f vm-pcrisis.*
48 sed -i -e '1,/^vm\.info:/s/ vm-pcrisis.info//' Makefile \
49 || die "sed failed"
50 fi
51
52 # Avoid using mkdirhier from imake package, it's just a replacement
53 # for mkdir -p, and it would add quite some dependencies
54 sed -i -e 's:mkdirhier:mkdir -p:' Makefile
55 }
56
57 src_compile() {
58 emake CC="$(tc-getCC)" || die "compilation failed"
59 }
60
61 src_install() {
62 elisp-install vm *.el
63 emake prefix="${D}/usr" \
64 INFODIR="${D}/usr/share/info" \
65 LISPDIR="${D}${SITELISP}/vm" \
66 PIXMAPDIR="${D}/usr/share/pixmaps/vm" \
67 install || die "installation failed"
68
69 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
70 dodoc README ChangeLog oldChangeLog TODO patchdoc.txt
71 }

  ViewVC Help
Powered by ViewVC 1.1.20