summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-04 09:35:47 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-04 09:35:47 +0000
commitc4f7dff9cdba5d0ed8d69cf737a65093e0acd373 (patch)
tree2834e76f647980c3b3a99045f8d905dd1c450600 /app-admin/durep
parentold (diff)
downloadgentoo-2-c4f7dff9cdba5d0ed8d69cf737a65093e0acd373.tar.gz
gentoo-2-c4f7dff9cdba5d0ed8d69cf737a65093e0acd373.tar.bz2
gentoo-2-c4f7dff9cdba5d0ed8d69cf737a65093e0acd373.zip
Fix by Stephen Tallowitz for gigabyte output #108942.
(Portage version: 2.1_rc2-r3)
Diffstat (limited to 'app-admin/durep')
-rw-r--r--app-admin/durep/ChangeLog10
-rw-r--r--app-admin/durep/durep-0.9-r2.ebuild31
-rw-r--r--app-admin/durep/files/digest-durep-0.9-r21
-rw-r--r--app-admin/durep/files/durep-0.9-gigabyte.patch17
4 files changed, 57 insertions, 2 deletions
diff --git a/app-admin/durep/ChangeLog b/app-admin/durep/ChangeLog
index 09894e3efb4c..3b9ab3962996 100644
--- a/app-admin/durep/ChangeLog
+++ b/app-admin/durep/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/durep
-# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/durep/ChangeLog,v 1.3 2005/07/22 09:02:04 dholm Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/durep/ChangeLog,v 1.4 2006/06/04 09:35:47 vapier Exp $
+
+*durep-0.9-r2 (04 Jun 2006)
+
+ 04 Jun 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/durep-0.9-gigabyte.patch, +durep-0.9-r2.ebuild:
+ Fix by Stephen Tallowitz for gigabyte output #108942.
22 Jul 2005; David Holm <dholm@gentoo.org> durep-0.9-r1.ebuild:
Added to ~ppc.
diff --git a/app-admin/durep/durep-0.9-r2.ebuild b/app-admin/durep/durep-0.9-r2.ebuild
new file mode 100644
index 000000000000..70cf6a6b25de
--- /dev/null
+++ b/app-admin/durep/durep-0.9-r2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/durep/durep-0.9-r2.ebuild,v 1.1 2006/06/04 09:35:47 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="A perl script designed for monitoring disk usage in a more visual way than du."
+HOMEPAGE="http://www.hibernaculum.net/durep/"
+SRC_URI="http://www.hibernaculum.net/download/${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl
+ dev-perl/MLDBM"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gigabyte.patch
+ epatch "${FILESDIR}"/${P}-color-output.patch
+}
+
+src_install() {
+ dobin durep || die
+ doman durep.1
+ dodoc BUGS CHANGES README THANKS
+ dohtml -A cgi *.cgi *.css *.png
+}
diff --git a/app-admin/durep/files/digest-durep-0.9-r2 b/app-admin/durep/files/digest-durep-0.9-r2
new file mode 100644
index 000000000000..42331a33b325
--- /dev/null
+++ b/app-admin/durep/files/digest-durep-0.9-r2
@@ -0,0 +1 @@
+MD5 fb6d09d48b02b150501f7e769087696f durep-0.9.tar.gz 13713
diff --git a/app-admin/durep/files/durep-0.9-gigabyte.patch b/app-admin/durep/files/durep-0.9-gigabyte.patch
new file mode 100644
index 000000000000..315cb1c7c813
--- /dev/null
+++ b/app-admin/durep/files/durep-0.9-gigabyte.patch
@@ -0,0 +1,17 @@
+fix `durep -hs 1g` output
+
+Patch by Stephen Tallowitz
+
+http://bugs.gentoo.org/108942
+
+--- durep
++++ durep
+@@ -468,7 +468,7 @@
+ elsif ($temp =~ m/^[mM]/) {
+ return $size * 1048576;
+ }
+- elsif ($temp =~ m/^[mM]/) {
++ elsif ($temp =~ m/^[gG]/) {
+ return $size * 1048576 * 1024;
+ }
+ return $size;