From owner-freebsd-ports@FreeBSD.ORG Fri Sep 16 09:44:50 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 955A61065672 for ; Fri, 16 Sep 2011 09:44:50 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 165378FC17 for ; Fri, 16 Sep 2011 09:44:49 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id p8G9iMYv059333; Fri, 16 Sep 2011 11:44:37 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id p8G9iLC5059332; Fri, 16 Sep 2011 11:44:21 +0200 (CEST) (envelope-from olli) Date: Fri, 16 Sep 2011 11:44:21 +0200 (CEST) Message-Id: <201109160944.p8G9iLC5059332@lurza.secnetix.de> From: Oliver Fromme To: freebsd-ports@FreeBSD.ORG, chukharev@mail.ru, jhell@dataix.net In-Reply-To: <20110915052516.GA60152@DataIX.net> X-Newsgroups: list.freebsd-ports User-Agent: tin/1.9.6-20101126 ("Burnside") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.5 (lurza.secnetix.de [127.0.0.1]); Fri, 16 Sep 2011 11:44:37 +0200 (CEST) Cc: Subject: Re: Detecting dependencies X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 09:44:50 -0000 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