From owner-freebsd-ports@freebsd.org Thu Jun 9 14:51:29 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F505B6FFB3 for ; Thu, 9 Jun 2016 14:51:29 +0000 (UTC) (envelope-from w.schwarzenfeld@utanet.at) Received: from taro-1.utanet.at (taro.utanet.at [IPv6:2001:938:1337:25::25:45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F917126E for ; Thu, 9 Jun 2016 14:51:28 +0000 (UTC) (envelope-from w.schwarzenfeld@utanet.at) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=utanet.at; s=rev1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Subject:References:To; bh=tBj4hBspBBLymsYlesVtKH/FlLkCwEisS50Unn5w93o=; b=a4dZcCkuhi0Eaz7zhIzE8LVqx7Id/MUgItqs7aNvwUn7NHRQOgweHfvshZpt/OskA1AWy5KnziFDhqqqx1YXjl9KYF+Z3FuklsbJB74stlv7nv+oC/zi8CiE7Kit0+eWNfbphEXHOqHyPndffW7FdwOhU36pVAiErNAGE+eBxIY=; Received: from plenty.xoc.tele2net.at ([213.90.36.8]) by taro.utanet.at with esmtp (Exim 4.80) (envelope-from ) id 1bB1In-0005l4-Rg for freebsd-ports@freebsd.org; Thu, 09 Jun 2016 16:51:21 +0200 Received: from 91-115-90-8.adsl.highway.telekom.at ([91.115.90.8] helo=[10.0.0.93]) by plenty.xoc.tele2net.at with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1bB1In-0000fB-Pm for freebsd-ports@freebsd.org; Thu, 09 Jun 2016 16:51:21 +0200 To: freebsd-ports@freebsd.org References: Subject: Re: [Bug 210110] cad/qcad remove wrongly used PLIST_SUB from pkg-plist From: Walter Schwarzenfeld Message-ID: Date: Thu, 9 Jun 2016 16:51:20 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 14:51:29 -0000 I know this is not correct, but let's play: do-install: if [ $$(grep -c '%%QT_BINDIR%%' ${PORTSDIR}/cad/qcad/pkg-plist) -ne 0 ]; then ${REINPLACE_CMD} 's/\%\%QT_BINDIR\%\%/bin/g' ${PORTSDIR}/cad/qcad/pkg-plist;fi (but this will replace all occurances of QT_BINDIR in pkg-plist, if necesairely of not. In the moment there are only two, but maybe it will different in the future)..