summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-07-11 15:16:06 +0000
committerJustin Lecher <jlec@gentoo.org>2010-07-11 15:16:06 +0000
commit3a82a81dd94f8366607e47c04ef8febfb5434d50 (patch)
treeb3f04f82ae1270556047e031c994d763fdc3e7e7 /sys-fs/pysize
parentDrop hppa keyword per bug #324511. (diff)
downloadhistorical-3a82a81dd94f8366607e47c04ef8febfb5434d50.tar.gz
historical-3a82a81dd94f8366607e47c04ef8febfb5434d50.tar.bz2
historical-3a82a81dd94f8366607e47c04ef8febfb5434d50.zip
Import from sunrise
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sys-fs/pysize')
-rw-r--r--sys-fs/pysize/ChangeLog11
-rw-r--r--sys-fs/pysize/Manifest16
-rw-r--r--sys-fs/pysize/files/0.2-setuptools-automagic.patch12
-rw-r--r--sys-fs/pysize/files/psyco-0.2-automagic.patch20
-rw-r--r--sys-fs/pysize/metadata.xml9
-rw-r--r--sys-fs/pysize/pysize-0.2.ebuild49
6 files changed, 117 insertions, 0 deletions
diff --git a/sys-fs/pysize/ChangeLog b/sys-fs/pysize/ChangeLog
new file mode 100644
index 000000000000..d990aa9cc914
--- /dev/null
+++ b/sys-fs/pysize/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-fs/pysize
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/pysize/ChangeLog,v 1.1 2010/07/11 15:16:05 jlec Exp $
+
+*pysize-0.2 (11 Jul 2010)
+
+ 11 Jul 2010; Justin Lecher <jlec@gentoo.org>
+ +files/0.2-setuptools-automagic.patch, +pysize-0.2.ebuild,
+ +files/psyco-0.2-automagic.patch, +metadata.xml:
+ Import from sunrise
+
diff --git a/sys-fs/pysize/Manifest b/sys-fs/pysize/Manifest
new file mode 100644
index 000000000000..dca1d3546a7a
--- /dev/null
+++ b/sys-fs/pysize/Manifest
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 0.2-setuptools-automagic.patch 265 RMD160 9a3ee40bf7a29d7b1437ea8f46823b8deeaa00fb SHA1 0916d05fb3c78e75b21e32dfb312fa7ac113074b SHA256 50f238c1dd594cd1dac1a6c954f599dd834577133ad9e789fc182c7127fab8be
+AUX psyco-0.2-automagic.patch 587 RMD160 7c082375f7bbc22d53a4470861cb7e7cf3045239 SHA1 72195d51b916b9fcfd827e225a1279ba73889554 SHA256 3889b43df410ba8ec678243f30b9e16fdf36a7966d10cc84359cb5674dfe47be
+DIST pysize-0.2.tar.bz2 498930 RMD160 34a631324eaf631b9d6e3492aa1141946baec517 SHA1 c4f34a0056518d491a3116d451b4cd2c2d3da635 SHA256 1b0aea834bb5a9a15b7fe9680d5618adeb58242bdf14fac218498ee49d4b3bf5
+EBUILD pysize-0.2.ebuild 1381 RMD160 c2d96de7f43ab3e8f8a73b9ee3bc8e9cce07e178 SHA1 b00f1c5cad889f003d67f393846a6bd87ea109a2 SHA256 2451f1028fd82eaa2eac882d6b3788cf23671c2f344c97a34cd571a87aebbaa5
+MISC ChangeLog 406 RMD160 d5868d2b13fd6519eb3e25d0ea9720197e3fb4c2 SHA1 140e67efc3dadfcc1db0de887b932cd543cdabf3 SHA256 1b03f5f0fa54c260b5c73497a80efb61967b0147f01faacfe70d80854ec2ff16
+MISC metadata.xml 307 RMD160 616264174f5e5232d5415ffe071389788679f465 SHA1 eaeeaed1fbbef8d2fa248b1838ddf42d7e62cc4c SHA256 d547e60a0576c3ec82afb44fe8413ba926a74f9b99ff8491bd942d730dc27b6c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.15 (GNU/Linux)
+
+iEYEARECAAYFAkw54DsACgkQgAnW8HDreRbh7ACgqnM0/O1qmO4aqiHkSwvOkXFS
+yKcAoMUPrMA1SAQAFhtB8UkU2k9gRsKD
+=TFKO
+-----END PGP SIGNATURE-----
diff --git a/sys-fs/pysize/files/0.2-setuptools-automagic.patch b/sys-fs/pysize/files/0.2-setuptools-automagic.patch
new file mode 100644
index 000000000000..3e27c889f1a5
--- /dev/null
+++ b/sys-fs/pysize/files/0.2-setuptools-automagic.patch
@@ -0,0 +1,12 @@
+diff --git a/setup.py b/setup.py
+index 5550188..123d22c 100755
+--- a/setup.py
++++ b/setup.py
+@@ -2,7 +2,6 @@
+
+ import sys
+
+-sys.path.append('setuptools-0.7a1dev_r53614-py2.4.egg')
+ from setuptools import setup, find_packages
+ from pysize.version import VERSION
+
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 000000000000..696f81fa4feb
--- /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 000000000000..7585c56085fc
--- /dev/null
+++ b/sys-fs/pysize/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+<maintainer><email>jlec@gentoo.org</email></maintainer>
+ <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 000000000000..5ab9c34460d6
--- /dev/null
+++ b/sys-fs/pysize/pysize-0.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/pysize/pysize-0.2.ebuild,v 1.1 2010/07/11 15:16:05 jlec Exp $
+
+EAPI="3"
+
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+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 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ 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
+
+ epatch "${FILESDIR}"/${PV}-setuptools-automagic.patch
+ distutils_src_prepare
+}