blob: f41c6a869c9c1d1de100469616852a476441b9ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/rst/rst-0.5-r1.ebuild,v 1.8 2009/12/08 19:34:35 nixnut Exp $
inherit elisp
DESCRIPTION="ReStructuredText support for Emacs"
HOMEPAGE="http://www.emacswiki.org/cgi-bin/wiki/reStructuredText"
SRC_URI="mirror://sourceforge/docutils/docutils-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
IUSE=""
S="${WORKDIR}/docutils-${PV}/tools/editors/emacs"
DOCS="README.txt"
SITEFILE="50${PN}-gentoo.el"
pkg_setup() {
local have_emacs=$(elisp-emacs-version)
if [ "${have_emacs%%.*}" -ge 23 ]; then
echo
elog "Please note that \"${PN}\" is already included with Emacs 23 or"
elog "later, so ${CATEGORY}/${PN} is only needed for lower versions."
elog "You may select the active Emacs version with \"eselect emacs\"."
fi
}
src_install() {
elisp_src_install
# prevent inclusion of package dir by subdirs.el
touch "${D}${SITELISP}/${PN}/.nosearch"
}
|