forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bicyclerepair-0.9-r3.ebuild
57 lines (42 loc) · 1.11 KB
/
bicyclerepair-0.9-r3.ebuild
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
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1 elisp-common
DESCRIPTION="Bicycle Repair Man is the Python Refactoring Browser"
HOMEPAGE="http://bicyclerepair.sourceforge.net/"
SRC_URI="mirror://sourceforge/bicyclerepair/${P}.tar.gz"
LICENSE="icu GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~ia64 ppc ppc64 x86"
IUSE="emacs"
DEPEND="
emacs? (
app-emacs/pymacs[${PYTHON_USEDEP}]
app-emacs/python-mode
)"
RDEPEND="${DEPEND}"
SITEFILE="50${PN}-gentoo.el"
PATCHES=(
"${FILESDIR}/${P}-idle.patch"
"${FILESDIR}/${P}-invalid-syntax.patch"
)
python_prepare_all() {
# bikeemacs.py contains non-ASCII characters in comments.
sed -e '1s/$/\t-*- coding: latin-1 -*-/' -i ide-integration/bikeemacs.py || die "sed failed"
distutils-r1_python_prepare_all
}
python_test() {
"${PYTHON}" testall.py || die
}
src_install() {
distutils-r1_src_install
use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}"
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}