blob: 72dda98d1a4eaa6e4bbef02490249f67985c1d91 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2:2.6"
GCONF_DEBUG=no
build=954
inherit autotools eutils gnome2 python
MY_P="${P}-dev-build${build}"
DESCRIPTION="a text editor that is simple, slim and sleek, yet powerful"
HOMEPAGE="http://scribes.sourceforge.net"
SRC_URI="http://launchpad.net/scribes/${PV}/scribes-milestone1/+download/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
RDEPEND="gnome-base/gconf
doc? ( gnome-extra/yelp )
dev-libs/dbus-glib
dev-python/dbus-python
dev-python/pygtk
dev-python/gtkspell-python
dev-python/pygtksourceview
dev-python/pyxdg"
DEPEND="app-text/gnome-doc-utils
dev-util/pkgconfig
dev-util/intltool
sys-devel/gettext"
S=${WORKDIR}/${MY_P}
DOCS="AUTHORS ChangeLog CONTRIBUTORS NEWS README TODO TRANSLATORS"
pkg_setup() {
python_set_active_version 2
G2CONF="--disable-scrollkeeper"
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-sandbox.patch
# keep make from byte-compiling python modules itself
epatch "${FILESDIR}"/${PN}-byte-compiling-plugins.patch
eautoreconf
# make py-compile useless (but true)
echo -e '#!'$(type -P sh)'\n:' > py-compile || die "Could not kill py-compile"
python_convert_shebangs -r 2 .
gnome2_src_prepare
}
src_install() {
gnome2_src_install
python_clean_installation_image
}
pkg_postinst() {
gnome2_pkg_postinst
python_mod_optimize SCRIBES
}
pkg_postrm() {
gnome2_pkg_postrm
python_mod_cleanup SCRIBES
}
|