/[gentoo-x86]/app-emacs/easypg/easypg-0.0.16.ebuild
Gentoo

Contents of /app-emacs/easypg/easypg-0.0.16.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Nov 23 16:59:51 2009 UTC (8 years, 2 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.
(Portage version: 2.2_rc51/cvs/Linux i686)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emacs/easypg/easypg-0.0.16.ebuild,v 1.4 2009/10/23 14:13:02 ulm Exp $
4
5 inherit elisp versionator
6
7 MY_PN=epg
8
9 DESCRIPTION="GnuPG interface for Emacs"
10 HOMEPAGE="http://www.easypg.org/"
11 SRC_URI="mirror://sourceforge.jp/epg/29289/${MY_PN}-${PV}.tar.gz
12 gnus? ( mirror://sourceforge.jp/epg/25608/pgg-${MY_PN}.el )"
13
14 LICENSE="GPL-2 FDL-1.1"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE="gnus"
18
19 DEPEND="app-crypt/gnupg"
20 RDEPEND="${DEPEND}
21 gnus? ( virtual/gnus )"
22
23 S="${WORKDIR}/${MY_PN}-${PV}"
24 SITEFILE="50${PN}-gentoo-${PV}.el"
25
26 src_unpack() {
27 unpack ${A}
28 use gnus && cp "${DISTDIR}/pgg-epg.el" "${S}"
29 }
30
31 src_compile() {
32 econf || die "econf failed"
33 emake || die "emake failed"
34 elisp-make-autoload-file \
35 || die "elisp-make-autoload-file failed"
36
37 if use gnus && version_is_at_least 22 "$(elisp-emacs-version)"; then
38 # pgg-epg requires pgg, it will not compile with Emacs 21
39 elisp-compile pgg-epg.el || die "elisp-compile failed"
40 fi
41 }
42
43 src_install() {
44 einstall || die "einstall failed"
45
46 elisp-install ${MY_PN} ${PN}-autoloads.el
47 elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${MY_PN}
48 if use gnus; then
49 elisp-install ${MY_PN} pgg-epg.el*
50 fi
51 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
52 }
53
54 pkg_postinst() {
55 elisp-site-regen
56 elog "See the epa info page for more information"
57 if use gnus; then
58 elog "To use, add (setq pgg-scheme 'epg) to your ~/.gnus"
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20