summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2012-12-01 17:13:28 +0000
committerJulian Ospald <hasufell@gentoo.org>2012-12-01 17:13:28 +0000
commit9dd75718057de564b8ee3d0e1958606c524b77ae (patch)
treefac7f9000c049c2500dc6b6709707e5141a08049 /app-admin
parentFix python dependencies (bug #435462 by Alexander Zubkov). (diff)
downloadhistorical-9dd75718057de564b8ee3d0e1958606c524b77ae.tar.gz
historical-9dd75718057de564b8ee3d0e1958606c524b77ae.tar.bz2
historical-9dd75718057de564b8ee3d0e1958606c524b77ae.zip
revbump, apply patch from #436148
Package-Manager: portage-2.2.0_alpha142/cvs/Linux x86_64 Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/durep/ChangeLog8
-rw-r--r--app-admin/durep/Manifest18
-rw-r--r--app-admin/durep/durep-0.9-r4.ebuild34
-rw-r--r--app-admin/durep/files/durep-0.9-r4-color-output.patch98
4 files changed, 149 insertions, 9 deletions
diff --git a/app-admin/durep/ChangeLog b/app-admin/durep/ChangeLog
index e7e74893418e..1aa26e3e4787 100644
--- a/app-admin/durep/ChangeLog
+++ b/app-admin/durep/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/durep
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/durep/ChangeLog,v 1.16 2012/12/01 14:16:29 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/durep/ChangeLog,v 1.17 2012/12/01 17:13:24 hasufell Exp $
+
+*durep-0.9-r4 (01 Dec 2012)
+
+ 01 Dec 2012; Julian Ospald <hasufell@gentoo.org> +durep-0.9-r4.ebuild,
+ +files/durep-0.9-r4-color-output.patch:
+ revbump, apply patch from #436148
01 Dec 2012; Julian Ospald <hasufell@gentoo.org> durep-0.9-r3.ebuild:
unlock for ~arch users as well since virtual/perl-Switch is stable now
diff --git a/app-admin/durep/Manifest b/app-admin/durep/Manifest
index 1d8abb490923..8c4809b4908f 100644
--- a/app-admin/durep/Manifest
+++ b/app-admin/durep/Manifest
@@ -4,18 +4,20 @@ Hash: SHA256
AUX durep-0.9-color-output.patch 7587 SHA256 760cdb5eb3dd94e5476c4b3f6a4ff43d2530babcd78b667e268649bbb1e0c649 SHA512 1ab4120a106e6a9f2d93a3b4d22395754b868d88e8d33dc20e5227cc56c84c0320d0f7572b2835946dd5ac0de40b567b2d21134b1dd6e3f2a1e2f21bec36dbad WHIRLPOOL 84d169e210d40862a269c01e0f7565180aea74289abdd51018aa549cafe8be1833b12bb4d8a7c14a4a0ad19a59da4ff5e215d14421366e562a8fca5809357ba3
AUX durep-0.9-dirhandle.patch 848 SHA256 4fbdd5659421f39e689f070278e619327beeb4b4ad286ebcf195c8e498c7d3b5 SHA512 8e887393bab2c011cdf9ae096fc4f8b077c02c471203768c9f51b59df0a36f94aad797ffc017cf03ab0ddd2eed5e290d3ec65c90774bebacb5c35673ac3f176d WHIRLPOOL 7c2083a22ac52563735f1d616c96207d5e92abb1ad56fae8d127188568db8a3b27b54d4d168d7bcc822bbc72074628ef0ffff563c80a300080599aa371a61c10
AUX durep-0.9-gigabyte.patch 327 SHA256 2d953915390811eb1e9cf3470760a5c03012956dafa07b32effb1a3e524a64ad SHA512 2bb28c5956cc6f8b301890f82eb86255f84ed6f93d1dc61e96bacb840ae0181feed76e992bca86249e9003701666784fdf7a40331c6c1731c55b3e3d2a4897b8 WHIRLPOOL f3922aea532fd14c9cd164ffe6245b6d64667c16d22795c85950ab6e8ff75e6989ba1dcbc85bf91545ca8aab17222041b3ec205a16d874211399cf33d0e1b385
+AUX durep-0.9-r4-color-output.patch 3477 SHA256 5d8eda3ced6776725b6843861db9fcb73158b98858ae2a33ecda7585f39c5dca SHA512 18bd766f706bf2036b1da35c0daf1add0adb6603a6cd0c68277efff8e1f2f8224cc2d79ca6c4afc70db9a01b5eec8a4ca7899c7c92b0bd38f709e7736731937a WHIRLPOOL 05170473d8b0700e10e66030e7741fe7fbaf497a642cf496c275c8c649143837d70f65c16c7d98b8c81bf6d773ab5f8b0805664b5691d34ba36cb8cbb5ad202e
DIST durep-0.9.tar.gz 13713 SHA256 71605ebc4d25f6452e2aaa0119e9a6b7e753fe46ec2999e17311389a03016825 SHA512 a8a58cf4a77fa43e06eb22ce70e566fe9c5dd6921677dbe4691a6dd95e2fad3735778a9858e3b80957ba6efd20293fcd2ba4ddc9cfe29f5813997de0f9c96b6d WHIRLPOOL a64f822cae74934e45eb9c5acf87f708feb84854f6912a6c9342ffb79cee9569d4685fbe09f78144404695995dc454e25603cd2720e1618cfdf98376e907c18f
EBUILD durep-0.9-r3.ebuild 822 SHA256 5212708dc3b81ee26ffcd2e9a14b09042f130c25ff24c2cdaa8ebdad432526c8 SHA512 c408dfc9bb4a90ec5ffe8bc9308ed483321a4392758a5957241fb1ec89180e8a7762eb25d77d31b83ce1e3217c562e34156f714372c5e5ef0ae63a9a437e27cf WHIRLPOOL 3027e22131e0220a9ad0904ac1e0102ef7bb7204d41989434c33abfbca827abc126a129ba812b3c09bf5f0b7a860f403919fbd1337f7b314861b5b7009f76595
-MISC ChangeLog 2144 SHA256 3069ca57870c7a3c36fbc0d0be1f211ebaf0eb9b1d2c958fcd675988822bf31c SHA512 3ec2f8a057828fd3e6e46de0bac132040fbb12b45b478299fd4a3630cd537749400f40bb5045424e8451368fbbea3473e6befc801ef62c163055d5b41c9ab98c WHIRLPOOL 925166edf8f06ce7f5accd9306e69d7858efcfd240125e029a32299e930b973de37fbe976c605382f850bdf45498ccf8bf4e82961c2f2a5ffbf4c870280b5971
+EBUILD durep-0.9-r4.ebuild 861 SHA256 b8298f52d5a1bbd2c6b0e5d3b4a7bbdf9350918bb78aedbda9a4eb4846ea3340 SHA512 ce1133c05a513e7f4abf4aaca365f087b9b5e1e5fb67a4b8c1161f505676d6753535220ce85118e227b6d25338867c68b0327c6a5f9880f4c0838e0b487d5faa WHIRLPOOL 3a0b62c3db30d9cdac72b907f6fff197ef227a007765381abe6d71508c71f133de517b14732a0d29c7809ac5c73e0a03857e86d46c37bfc91a705dc8b6777251
+MISC ChangeLog 2325 SHA256 251cc9030141ab3317f5cffe8cb9b302c0f709a3206371a0e7ea209b61adc3d8 SHA512 7ed622356f5e6cb4869f064200d84eec931dd30b70a1d5bca5357047249903f55c8974f120c5d9b33bb352cbcc464dc1c54b828551d2c7bc6f755b6a805040b1 WHIRLPOOL e08cd07797764ffa8b3fdc25c4f0ae1812b37d16285fb54320d2a5ec28dde7f10c1ded75aa4009662447e26b847f054bf475151a600107fb9f0998fc0f310bf5
MISC metadata.xml 305 SHA256 f64ba385231db5cd8b7cb08785900c64d35ea8a024b89b3f73ce6807c8b1a80e SHA512 a3c7b35fc05f9ccba31dec47b371eefe3f3fc89f0ae12d7102b61c73a37f86537c6dbebf90d363abbcf4b1bcef4fd09f75266df315d6af83df8f12c306e504ec WHIRLPOOL 4014455c0d1f39cda9b687eb72217a36c0cdb0b22066d5bc8751ac1a93c03f2142b98562a2045c24109f66189c740ad13bc17185e863497698448afa86ae455c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iQEcBAEBCAAGBQJQuhE+AAoJEFpvPKfnPDWzUS8IAKzKD9LddO9oB0OmNa0DJl2H
-r2M4EuDqzXztMFR75v5MvM8Lp6b4AfW/AUhfIteZJHVPqQbzexpdb1H11IUbisud
-2iSzKdibrcp/w5LmUZVrZsnITlXBE5QNqx3RLL/1zGryF06iMmNQGctQaMVUWKq4
-yh31LmsN1qcjAEYLd3Qin/1ZCB7JEkyKvG/4cw+DirAnzpin06Y4Gbkkx5qk5j7R
-Jx/Z0J1an1ovvuKToeytkQvP/Te+pMBCg0jBAPHZx+q8cXDkazH2aF0E4nzk15bj
-tfuFptmZrNXBNpJ0Ft8SIMpplugQnUuufTnmgB1XMkhH6FgZY1FJizGS4S1RKOQ=
-=yNsZ
+iQEbBAEBCAAGBQJQujq4AAoJEFpvPKfnPDWzucYH+NxxDpGqag7KeUmuJagq/Fav
+PHBqt0POHnAlv5/tgQ3lIv/TzrfFFTfNHhBc7yc7l+qKpKECeLACAU4EIgT5bS0d
+rjKSGQrqW5xdYnQz8v7utHQAYQ2v0t5ktb2/uLtGg82GQxVW5+nULgREmy/CGWt5
+WVLnsXz+rcgm68wbkufnVEyPD67i0UVYyTxjtngbEwcpTO5+7g/cqU+XMs/Z0rjE
+lcPe/0mcHqAakfEhsEGixkOr8Taw5x5DF76BSjINsGqWczpIwGDZAKLvteC4D4nC
+iYx/6035Q9lDPWrKd5YaJPtIpkJQUgAQMwin5t1WguwuLwaaVWY3fcfkKX1AJg==
+=42cj
-----END PGP SIGNATURE-----
diff --git a/app-admin/durep/durep-0.9-r4.ebuild b/app-admin/durep/durep-0.9-r4.ebuild
new file mode 100644
index 000000000000..a4f6c571ba5c
--- /dev/null
+++ b/app-admin/durep/durep-0.9-r4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/durep/durep-0.9-r4.ebuild,v 1.1 2012/12/01 17:13:24 hasufell Exp $
+
+EAPI=4
+inherit eutils
+
+DESCRIPTION="A perl script designed for monitoring disk usage in a more visual way than du."
+HOMEPAGE="http://gentoo.org"
+SRC_URI="http://www.hibernaculum.net/download/${P}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}
+ dev-perl/MLDBM
+ virtual/perl-Getopt-Long
+ virtual/perl-Term-ANSIColor"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gigabyte.patch \
+ "${FILESDIR}"/${PF}-color-output.patch \
+ "${FILESDIR}"/${P}-dirhandle.patch
+}
+
+src_install() {
+ dobin durep
+ doman durep.1
+ dodoc BUGS CHANGES README THANKS
+ dohtml -A cgi *.cgi *.css *.png
+}
diff --git a/app-admin/durep/files/durep-0.9-r4-color-output.patch b/app-admin/durep/files/durep-0.9-r4-color-output.patch
new file mode 100644
index 000000000000..6b8956199406
--- /dev/null
+++ b/app-admin/durep/files/durep-0.9-r4-color-output.patch
@@ -0,0 +1,98 @@
+--- durep
++++ durep
+@@ -14,6 +14,8 @@
+ #############################################################################
+
+ use Getopt::Long;
++use feature 'switch';
++use Term::ANSIColor qw(:constants);
+ use File::Basename;
+ use MLDBM qw(DB_File Storable);
+ use Fcntl;
+@@ -27,6 +29,7 @@
+ our ($root_node, $filesystem_id, @stats);
+ our ($opt_help, $opt_version, $opt_textdepth, $opt_hidesize, $opt_showdate, $opt_nosort, $opt_quiet);
+ our ($opt_savefile, $opt_loadfile, $opt_desc, $opt_collate);
++our ($opt_nocolor);
+ our ($opt_files, $opt_onefilesystem, $opt_collapsepath, $opt_excludepath, $opt_coalescefiles);
+ our ($root_dir, $file_count, $dir_count, $next_id);
+ our ($TYPE_FILE, $TYPE_DIR, $TYPE_EMPTY, $TYPE_COALESCED, $TYPE_COLLAPSED);
+@@ -56,6 +59,8 @@
+ "d|desc=s" => \$opt_desc,
+ "c|collate=s" => \$opt_collate,
+
++ "nc|nocolor" => \$opt_nocolor,
++
+ "f|files" => \$opt_files,
+ "x|one-file-system" => \$opt_onefilesystem,
+ "cp|collapse-path=s" => \$opt_collapsepath,
+@@ -332,13 +337,58 @@
+ printf(" [%s%s] ", "#" x $numofchars, " " x (30-$numofchars));
+ printf("%6.2f%% ", $percent);
+ printf("%s ", shortDate($entry->{MTIME})) if $opt_showdate;
+- printf("%s%s\n", $entry->{NAME}, $entry->{TYPE} & $TYPE_DIR ? "/" : "");
++
++ printColor( $entry ) unless ( $opt_nocolor );
++ printNoColor( $entry ) if ( $opt_nocolor );
+ if($entry->{TYPE} & $TYPE_DIR) {
+ printDir($entry, $indent+1) if(!defined $opt_textdepth || ($opt_textdepth > $indent+1));
+ }
+ }
+ }
+
++sub printColor {
++ my $entry = shift;
++
++ my @tmp = split /\./, $entry->{NAME};
++
++ if ( $entry->{TYPE} & $TYPE_DIR ) {
++ print BLUE, BOLD, $entry->{NAME}."/\n", RESET
++ }
++ else {
++ given ($tmp[$#tmp]) {
++ #executable (bright green)
++ when([ qw(cmd exe com btm bat sh csh) ]) {
++ print BOLD, GREEN, $entry->{NAME}."\n", RESET
++ }
++ #archives / compressed (bright red)
++ when([ qw(tar tgz arj taz lzh zip z Z gz bz2 tbz2 tz deb rpm rar ace zoo cpio 7z rz) ]) {
++ print BOLD, RED, $entry->{NAME}."\n", RESET
++ }
++ #image formats
++ when([ qw(jpg jpeg gif bmp ppm tga xbm xpm tif tiff png mng xcf pcx mpg mpeg m2v avi mkv
++ ogm mp4 mp4v mov qt wmv asf rm rmvb flc fli gl dl) ]) {
++ print BOLD, MAGENTA, $entry->{NAME}."\n", RESET
++ }
++ #misc.
++ when([ qw(pdf ps txt patch diff log tex doc) ]) {
++ print GREEN, $entry->{NAME}."\n", RESET
++ }
++ when([ qw(mp3 wav mid midi au ogg flac aac) ]) {
++ print CYAN, $entry->{NAME}."\n", RESET
++ }
++ default {
++ print $entry->{NAME}."\n", RESET
++ }
++ }
++ }
++}
++
++sub printNoColor {
++ my $entry = shift;
++
++ printf("%s%s\n", $entry->{NAME}, $entry->{TYPE} & $TYPE_DIR ? "/" : "");
++}
++
+ sub processSizeOption {
+ my ($size, $temp);
+
+@@ -438,6 +488,9 @@
+ -d, --desc=<description> give description of save file
+ -c, --collate=<dir> collate save files in dir for web report
+
++Color Option:
++ -nc, --nocolor no color output
++ By default durep color outpu
+ Inclusion Options:
+ -f, --files do not descend into subdirs, only report files
+ -x, --one-file-system do not traverse file systems