From owner-freebsd-ports@FreeBSD.ORG Fri Oct 21 10:54:52 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E49316A41F for ; Fri, 21 Oct 2005 10:54:52 +0000 (GMT) (envelope-from tarc@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (tarc.po.cs.msu.su [158.250.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 866B643D48 for ; Fri, 21 Oct 2005 10:54:51 +0000 (GMT) (envelope-from tarc@tarc.po.cs.msu.su) Received: from tarc.po.cs.msu.su (localhost [127.0.0.1]) by tarc.po.cs.msu.su (8.13.4/8.13.4) with ESMTP id j9LAslPL071439 for ; Fri, 21 Oct 2005 14:54:47 +0400 (MSD) (envelope-from tarc@tarc.po.cs.msu.su) Received: (from tarc@localhost) by tarc.po.cs.msu.su (8.13.4/8.13.3/Submit) id j9LAskAb071438 for freebsd-ports@freebsd.org; Fri, 21 Oct 2005 14:54:46 +0400 (MSD) (envelope-from tarc) Date: Fri, 21 Oct 2005 14:54:46 +0400 From: Tarc To: freebsd-ports Message-ID: <20051021105446.GH3344@tarc.po.cs.msu.su> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline User-Agent: Mutt/1.5.10i Subject: make search improving 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, 21 Oct 2005 10:54:52 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=koi8-r Content-Disposition: inline There is patch for add ``xdisplay'' variable, usage: same as ``display variable'' -- Best regards, Arseny Nasokin --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=koi8-r Content-Disposition: attachment; filename="bsd.port.subdir.mk.patch" --- bsd.port.subdir.mk.orig Fri Oct 21 14:03:32 2005 +++ bsd.port.subdir.mk Fri Oct 21 14:02:32 2005 @@ -364,6 +364,7 @@ -v keylim="$${keylim:-${PORTSEARCH_KEYLIM}}" \ -v xkeylim="$${xkeylim:-${PORTSEARCH_XKEYLIM}}" \ -v display="$${display:-${PORTSEARCH_DISPLAY_FIELDS}}" \ + -v xdisplay="$$xdisplay" \ 'BEGIN { \ if (substr(there, 1, length(top)) == top) \ there = "${PORTSDIR}" substr(there, 1 + length(top)); \ @@ -401,9 +402,15 @@ fields["bdeps"] = 8; names[8] = "B-deps"; \ fields["rdeps"] = 9; names[9] = "R-deps"; \ fields["www"] = 10; names[10] = "WWW"; \ + \ split(display, d, /,[ \t]*/); \ for (i in d) { \ disp[fields[d[i]]] = 1; \ + } \ + \ + split(xdisplay, xd, /,[ \t]*/); \ + for (i in xd) { \ + delete disp[fields[xd[i]]]; \ } \ } \ { \ --k1lZvvs/B4yU6o8G--