From owner-freebsd-ports@FreeBSD.ORG Fri Mar 23 22:27:41 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B0494106566B; Fri, 23 Mar 2012 22:27:41 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id C3B5D8FC08; Fri, 23 Mar 2012 22:27:40 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3952820bkc.13 for ; Fri, 23 Mar 2012 15:27:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=cqeczOdyLmwCz4OrqC/JvbFQc8GXbZj1NpYIkPRBOEE=; b=OqzaxSiHu0WVYoJ34GCB6uRnMN80b57eFEgF9E93B7nMfxz+4r2o/Y/p4+NptJ33mZ iKJ9lmdohIohu9cINnjSQpf+IXICTjT7aHVW5VAGvmmLnlKlu70o6uhTBQWZcIoQgF6Y a+tzHezDpudXGSNOB6fkb6OJmgnzcl47sWldp7vAd0/pGDbGE3egiud4Q/hVhTbfBO5A nkL2E9EYn94IkdvTfQyEZ5H2FRk5r2zSthBtMClS3OccCbuIdPwOwW7ltGKAd4JZwzqD 7hmWLb7xYYKdA/AlRPaGDYcyDsVJm1c3LwyE4MvlGhiCitY8kBDaTqr3pnytEpIeuYe5 dblg== Received: by 10.204.148.82 with SMTP id o18mr5323215bkv.108.1332541659645; Fri, 23 Mar 2012 15:27:39 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.202.142 with HTTP; Fri, 23 Mar 2012 15:27:09 -0700 (PDT) In-Reply-To: <4F6CE755.8020502@FreeBSD.org> References: <4F6CE755.8020502@FreeBSD.org> From: Chris Rees Date: Fri, 23 Mar 2012 22:27:09 +0000 X-Google-Sender-Auth: _fnYCAXcg_25MFI_uHdAjpNcWvo Message-ID: To: Michael Scheidell Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports@freebsd.org Subject: Re: How useful is %%DATADIR%%, anyway? 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, 23 Mar 2012 22:27:41 -0000 On 23 March 2012 21:12, Michael Scheidell wrote: > > > On 3/23/12 4:14 PM, Chris Rees wrote: >> >> Hi all, >> >> >> >> Just as a thought, I decided to try stripping out all mentions of >> %%DATADIR%%, %%DOCSDIR%% etc from pkg-plist, and replacing them with >> PORTDOCS=3D*, PORTDATA=3D* in the Makefiles etc. > > Don't forget EXAMPLESDOC! PORTEXAMPLES ;) > >> I propose modifying the Porter's Handbook to discourage use of >> %%PORTDOCS%% etc in static plists, and encourage the use of PORTDOCS > > > want to take a stab at this one? > > <*http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/165820> > > you are saying that instead of > * > > +%%PORTDOCS%%%%DOCSDIR%% in the plist, this one, you could basically > eliminate plist-file (save 2k on the disk?) > and put them in PLIST_FILES in Makefile. Almost. PORTDOCS=3D* in the Makefile basically uses find on ${DOCSDIR} and sticks it into TMPPLIST. The advantage is that we then have one line in the Makefile instead of up to 2000 in pkg-plist. > what if the 'docs' are in a strange place? =A0like this port? > how would this port be fixed? Force the port to install docs to the correct place, as per hier :) Chris