diff options
author | Justin Lecher <jlec@gentoo.org> | 2009-01-01 23:31:37 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2009-01-01 23:31:37 +0000 |
commit | 92246631a5394d3c41d483dfcd1379107f33fd94 (patch) | |
tree | 1e52336dd388e7edaa2a5330a10a6615486f3c51 /sys-fs | |
parent | gnome-extra/gdmap: gnome-extra/gdmap version bump to 0.8.1 (diff) | |
download | sunrise-reviewed-92246631a5394d3c41d483dfcd1379107f33fd94.tar.gz sunrise-reviewed-92246631a5394d3c41d483dfcd1379107f33fd94.tar.bz2 sunrise-reviewed-92246631a5394d3c41d483dfcd1379107f33fd94.zip |
sys-fs/pysize: sys-fs/pysize intial checkin
svn path=/sunrise/; revision=7570
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/pysize/ChangeLog | 6 | ||||
-rw-r--r-- | sys-fs/pysize/Manifest | 6 | ||||
-rw-r--r-- | sys-fs/pysize/files/psyco-0.2-automagic.patch | 20 | ||||
-rw-r--r-- | sys-fs/pysize/metadata.xml | 8 | ||||
-rw-r--r-- | sys-fs/pysize/pysize-0.2.ebuild | 49 |
5 files changed, 89 insertions, 0 deletions
diff --git a/sys-fs/pysize/ChangeLog b/sys-fs/pysize/ChangeLog new file mode 100644 index 000000000..4e0276450 --- /dev/null +++ b/sys-fs/pysize/ChangeLog @@ -0,0 +1,6 @@ +# ChangeLog for sys-fs/pysize +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 01 Jan 2009; Justin Lecher (jlec) <jlec@j-schmitz.net> +metadata.xml: + intial checkin diff --git a/sys-fs/pysize/Manifest b/sys-fs/pysize/Manifest new file mode 100644 index 000000000..0af1d2e12 --- /dev/null +++ b/sys-fs/pysize/Manifest @@ -0,0 +1,6 @@ +AUX psyco-0.2-automagic.patch 587 RMD160 7c082375f7bbc22d53a4470861cb7e7cf3045239 SHA1 72195d51b916b9fcfd827e225a1279ba73889554 SHA256 3889b43df410ba8ec678243f30b9e16fdf36a7966d10cc84359cb5674dfe47be +AUX psyco-dep.patch 407 RMD160 deb9ae2f56a7c2f16b733b5c7e3a107bd89e29a8 SHA1 23b9a03be37f0d5e59d364223fd602ca5de98ed7 SHA256 e1442a84cbdbacf80353f755a4bcedc2be6d5426377d70e137a9b0686d4b5e0b +DIST pysize-0.2.tar.bz2 498930 RMD160 34a631324eaf631b9d6e3492aa1141946baec517 SHA1 c4f34a0056518d491a3116d451b4cd2c2d3da635 SHA256 1b0aea834bb5a9a15b7fe9680d5618adeb58242bdf14fac218498ee49d4b3bf5 +EBUILD pysize-0.2.ebuild 1228 RMD160 9b1c13ecd4a1fb2048f87db065da892bfe365856 SHA1 d10629c53265a3d3c1dd96a40024f533774cb5dd SHA256 b8b9fe9b4a0dcd452bfeb30ac0dc92075a31e17addece0e628ce4cdad56522fe +MISC ChangeLog 303 RMD160 02fe83070c0a316d76738790962bbfc1e4625d36 SHA1 93b1fad9b44eb8111740bdcdc5d6794d20416f82 SHA256 29e829e55a7f34f492827d4131891bd262f84e5afcea22126b1902eda024ca41 +MISC metadata.xml 416 RMD160 6e42f1390655c326a5993a5bd683e9cdfebca8e6 SHA1 ffe281e9fa3345b021ff69fa3872ca46297b5beb SHA256 59b6c2b94695c9d84bd579a02bc2a1a06ac25e3f683fbe91e804ee9ea2e39842 diff --git a/sys-fs/pysize/files/psyco-0.2-automagic.patch b/sys-fs/pysize/files/psyco-0.2-automagic.patch new file mode 100644 index 000000000..696f81fa4 --- /dev/null +++ b/sys-fs/pysize/files/psyco-0.2-automagic.patch @@ -0,0 +1,20 @@ +--- pysize/main.py 2007-03-11 16:09:53.000000000 +0100 ++++ pysize/main.py.new 2009-01-02 00:08:43.384827054 +0100 +@@ -69,17 +69,8 @@ + stats.print_stats(40) + os.remove(prof_file) + +-def _try_psyco(): +- try: +- # Try to use psyco if available +- import psyco +- psyco.full() +- except ImportError: +- pass +- + def main(): + install_sigquit_traceback() +- _try_psyco() + locale.setlocale(locale.LC_ALL, '') + usage = '%s [OPTIONS] [DIRECTORIES...]' % (sys.argv[0]) + parser = optparse.OptionParser(usage=usage, version='pysize ' + VERSION) diff --git a/sys-fs/pysize/metadata.xml b/sys-fs/pysize/metadata.xml new file mode 100644 index 000000000..a45d3cbc0 --- /dev/null +++ b/sys-fs/pysize/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>maintainer-wanted</herd> + <use> + <flag name='psyco'>Adds psyco support</flag> + </use> +</pkgmetadata> diff --git a/sys-fs/pysize/pysize-0.2.ebuild b/sys-fs/pysize/pysize-0.2.ebuild new file mode 100644 index 000000000..b5debbac4 --- /dev/null +++ b/sys-fs/pysize/pysize-0.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils eutils + +DESCRIPTION="A graphical and console tool for exploring the size of directories" +HOMEPAGE="http://guichaz.free.fr/pysize/" +SRC_URI="http://guichaz.free.fr/${PN}/files/${P}.tar.bz2" + +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="gtk ncurses psyco" +DEPEND="gtk? ( dev-python/pygtk ) + ncurses? ( sys-libs/ncurses ) + psyco? ( dev-python/psyco )" + +src_unpack() { + unpack ${A} + cd "${S}" + + if ! use gtk; then + sed -e '/^from pysize.ui.gtk/d' \ + -e "s~'gtk': ui_gtk.run,~~g" \ + -e 's:ui_gtk.run,::g' \ + -i pysize/main.py || die "Failed to remove gtk support" + rm -rf pysize/ui/gtk || die "Failed to remove gtk support" + fi + + if ! use ncurses; then + sed -e '/^from pysize.ui.curses/d' \ + -e "s~'curses': ui_curses.run,~~g" \ + -e 's:ui_curses.run,::g' \ + -i pysize/main.py || die "Failed to remove ncurses support" + rm -rf pysize/ui/curses || die "Failed to remove ncurses support" + fi + + use psyco || epatch "${FILESDIR}/psyco-${PV}"-automagic.patch +} + + +src_install() { + distutils_src_install + + dobin bin/${PN} || die "Failed to install ${PN}" +} |