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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed May 18 18:19:09 2011 UTC (6 years, 5 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove package app-emacs/easypg, bug 358351.

1 # Copyright 1999-2010 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-r1.ebuild,v 1.3 2010/05/13 19:41:31 ulm Exp $
4
5 NEED_EMACS=22
6
7 inherit elisp
8
9 MY_PN=epg
10
11 DESCRIPTION="GnuPG interface for Emacs"
12 HOMEPAGE="http://www.easypg.org/"
13 SRC_URI="mirror://sourceforge.jp/epg/29289/${MY_PN}-${PV}.tar.gz
14 gnus? ( mirror://sourceforge.jp/epg/25608/pgg-${MY_PN}.el )"
15
16 LICENSE="GPL-2 FDL-1.1"
17 SLOT="0"
18 KEYWORDS="amd64 x86"
19 IUSE="gnus"
20
21 DEPEND="app-crypt/gnupg"
22 RDEPEND="${DEPEND}"
23
24 S="${WORKDIR}/${MY_PN}-${PV}"
25 SITEFILE="50${PN}-gentoo.el"
26
27 pkg_setup() {
28 EMACS_VERSION=$(elisp-emacs-version)
29 einfo "Emacs version: ${EMACS_VERSION}"
30 if [ "${EMACS_VERSION%%.*}" -ge 23 ]; then
31 echo
32 elog "Please note that \"${PN}\" is already included with Emacs 23 or"
33 elog "later, so ${CATEGORY}/${PN} is only needed for lower versions."
34 elog "You may select the active Emacs version with \"eselect emacs\"."
35 fi
36 }
37
38 src_unpack() {
39 unpack ${A}
40 use gnus && cp "${DISTDIR}/pgg-epg.el" "${S}"
41 }
42
43 src_compile() {
44 econf
45 emake || die "emake failed"
46 elisp-make-autoload-file || die
47
48 if use gnus; then
49 elisp-compile pgg-epg.el || die
50 fi
51 }
52
53 src_install() {
54 einstall || die "einstall failed"
55
56 elisp-install ${MY_PN} ${PN}-autoloads.el || die
57 elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${MY_PN} || die
58 if use gnus; then
59 elisp-install ${MY_PN} pgg-epg.el* || die
60 fi
61 # prevent inclusion of package dir by subdirs.el
62 touch "${D}${SITELISP}/${MY_PN}/.nosearch" || die
63
64 dodoc AUTHORS ChangeLog NEWS README || die
65 }
66
67 pkg_postinst() {
68 elisp-site-regen
69 elog "See the epa info page for more information"
70 if use gnus; then
71 elog "To use, add (setq pgg-scheme 'epg) to your ~/.gnus"
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20