/[gentoo-x86]/sys-fs/pysize/pysize-0.2.ebuild
Gentoo

Contents of /sys-fs/pysize/pysize-0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Mar 31 16:14:58 2012 UTC (2 years, 5 months ago) by jlec
Branch: MAIN
Changes since 1.5: +2 -2 lines
Complete removal of psyco support, thanks ssuominen for heads up

(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/pysize/pysize-0.2.ebuild,v 1.5 2012/03/31 16:07:30 jlec Exp $
4
5 EAPI="3"
6
7 PYTHON_DEPEND="2"
8 SUPPORT_PYTHON_ABIS="1"
9 RESTRICT_PYTHON_ABIS="3.*"
10
11 inherit distutils eutils
12
13 DESCRIPTION="A graphical and console tool for exploring the size of directories"
14 HOMEPAGE="http://guichaz.free.fr/pysize/"
15 SRC_URI="http://guichaz.free.fr/${PN}/files/${P}.tar.bz2"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
20 IUSE="gtk ncurses"
21
22 DEPEND="
23 gtk? ( dev-python/pygtk:2 )
24 ncurses? ( sys-libs/ncurses )"
25 RDEPEND="${DEPEND}"
26
27 src_prepare() {
28 if ! use gtk; then
29 sed -e '/^from pysize.ui.gtk/d' \
30 -e "s~'gtk': ui_gtk.run,~~g" \
31 -e 's:ui_gtk.run,::g' \
32 -i pysize/main.py || die "Failed to remove gtk support"
33 rm -rf pysize/ui/gtk || die "Failed to remove gtk support"
34 fi
35
36 if ! use ncurses; then
37 sed -e '/^from pysize.ui.curses/d' \
38 -e "s~'curses': ui_curses.run,~~g" \
39 -e 's:ui_curses.run,::g' \
40 -i pysize/main.py || die "Failed to remove ncurses support"
41 rm -rf pysize/ui/curses || die "Failed to remove ncurses support"
42 fi
43
44 epatch "${FILESDIR}/psyco-${PV}"-automagic.patch
45
46 epatch "${FILESDIR}"/${PV}-setuptools-automagic.patch
47 distutils_src_prepare
48 }

  ViewVC Help
Powered by ViewVC 1.1.20