blob: 3e98ef46158e3bfbf6bb206d7efa6118f9034703 (
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
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/python-mode/python-mode-1.0.ebuild,v 1.11 2007/10/06 20:31:20 ulm Exp $
inherit elisp distutils
DESCRIPTION="An Emacs major mode for editing Python source"
HOMEPAGE="http://sourceforge.net/projects/python-mode/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="amd64 arm ~hppa ia64 ppc ~ppc64 s390 sh x86 ~x86-fbsd"
IUSE=""
DEPEND="app-emacs/pymacs"
SITEFILE=60${PN}-gentoo.el
src_unpack() {
unpack ${A}
cp "${FILESDIR}"/setup.py "${S}"
}
src_compile() {
distutils_src_compile
elisp-comp *.el || die
}
src_install() {
distutils_src_install
elisp-install python-mode *.{el,elc}
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
}
pkg_postinst() {
elisp_pkg_postinst
distutils_pkg_postinst
}
pkg_postrm() {
elisp_pkg_postrm
distutils_pkg_postrm
}
|