diff options
Diffstat (limited to 'sysutils/philesight')
-rw-r--r-- | sysutils/philesight/Makefile | 40 | ||||
-rw-r--r-- | sysutils/philesight/distinfo | 2 | ||||
-rw-r--r-- | sysutils/philesight/files/extra-patch-ruby19 | 30 | ||||
-rw-r--r-- | sysutils/philesight/files/patch-philesight.rb | 40 | ||||
-rw-r--r-- | sysutils/philesight/pkg-descr | 12 |
5 files changed, 0 insertions, 124 deletions
diff --git a/sysutils/philesight/Makefile b/sysutils/philesight/Makefile deleted file mode 100644 index 289d4090b6e4..000000000000 --- a/sysutils/philesight/Makefile +++ /dev/null @@ -1,40 +0,0 @@ -# Created by: stas -# $FreeBSD$ - -PORTNAME= philesight -PORTVERSION= 20090105 -PORTREVISION= 4 -CATEGORIES= sysutils -MASTER_SITES= http://zevv.nl/play/code/philesight/ -EXTRACT_SUFX= .tgz - -MAINTAINER= ports@FreeBSD.org -COMMENT= Shows a graphics representation of the filesystem usage - -RUN_DEPENDS= rubygem-cairo>=0:${PORTSDIR}/graphics/rubygem-cairo \ - ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb \ - ${RUBY_SITELIBDIR}/locale.rb:${PORTSDIR}/devel/ruby-locale2 - -USE_RUBY= yes -USE_RUBY_FEATURES= iconv -NO_BUILD= yes -RUBY_SHEBANG_FILES= ${PORTNAME} ${PORTNAME}.rb ${PORTNAME}.cgi - -PLIST_FILES= bin/${PORTNAME} ${RUBY_SITELIBDIR:C,^${PREFIX}/?,,}/${PORTNAME}.rb -PORTEXAMPLES= ${PORTNAME}.cgi - -OPTIONS_DEFINE= EXAMPLES - -EXTRA_PATCHES= ${FILESDIR}/extra-patch-ruby19 - -DEPRECATED= Depends on deprecated devel/ruby-locale2 -EXPIRATION_DATE= 2014-09-20 - -do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} - ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.rb ${STAGEDIR}${RUBY_SITELIBDIR} - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR} - -.include <bsd.port.mk> diff --git a/sysutils/philesight/distinfo b/sysutils/philesight/distinfo deleted file mode 100644 index 3da37381a3ed..000000000000 --- a/sysutils/philesight/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (philesight-20090105.tgz) = 6be8fdcdc949049eaeaa1d017cf9eeeac6fabcb816a04fac990428483df89f80 -SIZE (philesight-20090105.tgz) = 8052 diff --git a/sysutils/philesight/files/extra-patch-ruby19 b/sysutils/philesight/files/extra-patch-ruby19 deleted file mode 100644 index e0b0026988e9..000000000000 --- a/sysutils/philesight/files/extra-patch-ruby19 +++ /dev/null @@ -1,30 +0,0 @@ ---- philesight.rb.orig 2009-02-11 21:59:28.000000000 +0300 -+++ philesight.rb 2009-02-11 22:00:07.000000000 +0300 -@@ -257,7 +257,7 @@ - if(level < @ringcount) then - draw_ring(cr, level+1, ang_from, ang_to, f_full) - else -- draw_section(cr, ang_from, ang_to, r_to, r_to+5, 0.5) if(cr && child_f.nitems > 0) -+ draw_section(cr, ang_from, ang_to, r_to, r_to+5, 0.5) if(cr && child_f.size > 0) - end - - # Generate and save labels of filenames/sizes -@@ -428,12 +428,12 @@ - i=6 if(i>6) - - case i -- when 0, 6: r=v; g=n; b=m -- when 1: r=n; g=v; b=m -- when 2: r=m; g=v; b=n -- when 3: r=m; g=n; b=v -- when 4: r=n; g=m; b=v -- when 5: r=v; g=m; b=n -+ when 0, 6 then r=v; g=n; b=m -+ when 1 then r=n; g=v; b=m -+ when 2 then r=m; g=v; b=n -+ when 3 then r=m; g=n; b=v -+ when 4 then r=n; g=m; b=v -+ when 5 then r=v; g=m; b=n - end - - [r, g, b] diff --git a/sysutils/philesight/files/patch-philesight.rb b/sysutils/philesight/files/patch-philesight.rb deleted file mode 100644 index de7411475672..000000000000 --- a/sysutils/philesight/files/patch-philesight.rb +++ /dev/null @@ -1,40 +0,0 @@ ---- philesight.rb.orig 2009-01-05 18:16:40.000000000 +0300 -+++ philesight.rb 2009-02-11 22:38:03.000000000 +0300 -@@ -5,6 +5,8 @@ - require 'cgi' - require 'cairo' - require 'bdb' -+require 'locale' -+require 'iconv' - - class PNGWriter - -@@ -390,6 +392,7 @@ - # - - def draw_text(cr, x, y, text, size=11, bold=false) -+ conv = Iconv.new("UTF-8", Locale.charset) - - lines = text.count("\n") + 1 - y -= (lines-1) * (size+2) / 2.0 -@@ -398,11 +401,18 @@ - cr.set_font_size(size) - - text.split("\n").each do |line| -- extents = cr.text_extents(line) -+ begin -+ newname = conv.iconv(line) -+ newname << conv.iconv(nil) -+ rescue Iconv::IllegalSequence => e -+ puts "Bad file name: #{line}" -+ next -+ end -+ extents = cr.text_extents(newname) - w = extents.width - h = extents.height - cr.move_to(x - w/2, y + h/2) -- cr.show_text(line) -+ cr.show_text(newname) - y += size+2 - end - end diff --git a/sysutils/philesight/pkg-descr b/sysutils/philesight/pkg-descr deleted file mode 100644 index d8eb6fa401e9..000000000000 --- a/sysutils/philesight/pkg-descr +++ /dev/null @@ -1,12 +0,0 @@ -Philesight is a tool to browse your filesystem and see where the diskspace -is being used at a glance. Philesight is implemented as a simple command -line program that generates PNG files; a wrapper CGI script is supplied to -allow navigating through the filesystem. - -Philesight is actually a clone of the filelight program. Wheres filelight -is ment as an interactive, user friendly application for the X-windows -desktop, philesight is designed to run on a remote server without -graphical user interface. - -Author: Ico Doornekamp <philesight@zevv.nl> -WWW: http://zevv.nl/play/code/philesight/ |