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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 23 08:53:50 2008 UTC (9 years, 10 months ago) by opfer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
clean up
(Portage version: 2.1.3.19)

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/easypg/easypg-0.0.13.ebuild,v 1.1 2007/07/15 10:12:46 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/25608/${MY_PN}-${PV}.tar.gz
12 gnus? ( mirror://sourceforge.jp/epg/25608/pgg-${MY_PN}.el )"
13
14 LICENSE="GPL-2"
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 SITEFILE=50${PN}-gentoo.el
24
25 S="${WORKDIR}/${MY_PN}-${PV}"
26
27 src_unpack() {
28 unpack ${A}
29 use gnus && cp "${DISTDIR}/pgg-epg.el" "${S}"
30 }
31
32 src_compile() {
33 econf || die "econf failed"
34 emake || die "emake failed"
35 elisp-make-autoload-file \
36 || die "elisp-make-autoload-file failed"
37
38 if use gnus && version_is_at_least 22 "$(elisp-emacs-version)"; then
39 # pgg-epg requires pgg, it will not compile with Emacs 21
40 # it also requires epa, so we must use elisp-comp here
41 elisp-comp pgg-epg.el || die "elisp-comp failed"
42 fi
43 }
44
45 src_install() {
46 einstall || die "einstall failed"
47
48 elisp-install ${MY_PN} ${PN}-autoloads.el
49 elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${MY_PN}
50 if use gnus; then
51 elisp-install ${MY_PN} pgg-epg.el*
52 fi
53 dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
54 }
55
56 elisp_pkg_postinst() {
57 elog "See the epa info page for more information"
58 if use gnus; then
59 elog "To use, add (setq pgg-scheme 'epg) to your ~/.gnus"
60 fi
61 elisp-site-regen
62 }

  ViewVC Help
Powered by ViewVC 1.1.20