Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2011 11:44:21 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-ports@FreeBSD.ORG, chukharev@mail.ru, jhell@dataix.net
Subject:   Re: Detecting dependencies
Message-ID:  <201109160944.p8G9iLC5059332@lurza.secnetix.de>
In-Reply-To: <20110915052516.GA60152@DataIX.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jason Hellenthal wrote:
 > On Thu, Sep 15, 2011 at 12:06:03AM +0300, chukharev@mail.ru wrote:
 > > There have been a discussion about finding interdependencies of ports.
 > > I have a relatively simple Python script for that. There is a pr ports/160007
 > > to add its early version. Unfortunately, I missed a reply to it, so there is
 > > an issue which I have not yet addressed...
 > [...]
 > 
 > 1. Would be cool if this would work on already installed ports or packages
 > too! just a thought.

That's what a script of mine does (it's also in Python):

http://www.secnetix.de/olli/scripts/pkg_dep_view

 > 2. If it would detect the presence of UTF-8 in the LANG or LC_ALL
 > environment vars and use the appropriate drawing method for each rather
 > than a default to UTF-8. "I am happy with it as is though"

Maybe have a look at my script, it might help.  It uses
Python's curses module to display graphical line characters
using the ACS feature (alternate character set).  This
is independent from the local (UTF-8, ISO8859, ASCII) and
works very well with terminals that support line drawing
characters, such as xterm, vt100 and so on.  When there
is no such support (dumb terminal, or not supported by
termcap, or stdout is a pipe), normal ASCII characters
are used instead.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"I have stopped reading Stephen King novels.
Now I just read C code instead."
        -- Richard A. O'Keefe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109160944.p8G9iLC5059332>