From owner-freebsd-python@freebsd.org  Mon Jan  4 15:50:30 2016
Return-Path: <owner-freebsd-python@freebsd.org>
Delivered-To: freebsd-python@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 5F70EA61263
 for <freebsd-python@mailman.ysv.freebsd.org>;
 Mon,  4 Jan 2016 15:50:30 +0000 (UTC)
 (envelope-from clutton@zoho.com)
Received: from sender153-mail.zoho.com (sender153-mail.zoho.com
 [74.201.84.153])
 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 4E59A1F3E
 for <freebsd-python@freebsd.org>; Mon,  4 Jan 2016 15:50:29 +0000 (UTC)
 (envelope-from clutton@zoho.com)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; 
 h=message-id:subject:from:to:date:in-reply-to:references:content-type:mime-version;
 b=NsK9toX1PzMWnOek1McnHtZHZ21R6yKD9PQ9qnNI6xswjK3AaXAWOeCdrITCCFJSr34zyq+sEq+J
 R31Wfbvviwr3Sgx0xNyCRM2Lllo6NIYmV+m76nwDuqUGi/Qzb0Yt  
Received: from [192.168.11.5] (mktechs.net [46.229.54.117]) by mx.zohomail.com
 with SMTPS id 1451922629068189.5589794709075;
 Mon, 4 Jan 2016 07:50:29 -0800 (PST)
Message-ID: <1451922616.31882.32.camel@zoho.com>
Subject: Re: pkg-plist %%PYVER%%.%%PYOEXTENSION%% handling. patch included,
 feedback needed
From: clutton <clutton@zoho.com>
To: freebsd-python@freebsd.org
Date: Mon, 04 Jan 2016 17:50:16 +0200
In-Reply-To: <568A91BF.5080306@FreeBSD.org>
References: <1451920422.31882.24.camel@zoho.com>
 <568A8F12.2090006@FreeBSD.org> <1451921751.31882.26.camel@zoho.com>
 <568A91BF.5080306@FreeBSD.org>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port 
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Zoho-Virus-Status: 1
X-ZohoMail: Ss  SS_10 UW UB UW UB ODL   SGR3_1_0_21125_114
X-ZohoMail-Owner: <1451922616.31882.32.camel@zoho.com>+zmo_0_<clutton@zoho.com>
X-ZohoMail-Sender: 46.229.54.117
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-python>, 
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Jan 2016 15:50:30 -0000

On Tue, 2016-01-05 at 02:37 +1100, Kubilay Kocak wrote:
> On 5/01/2016 2:35 AM, clutton wrote:
> > On Tue, 2016-01-05 at 02:26 +1100, Kubilay Kocak wrote:
> > > On 5/01/2016 2:13 AM, clutton wrote:
> > > > Hi list.
> > > > 
> > > > As I can see there are two ways of doing pkg-plist routine.
> > > > 
> > > > For pkg-plist which was made for python2 just including
> > > > USE_PYTHON=	
> > > > py3kplist would do the trick.
> > > > 
> > > > For new python3 ports it's not so straight forward, and when
> > > > they
> > > > don't
> > > > use setup.py conventions people usually do something like this:
> > > > 
> > > > .if ${PYTHON_REL} < 3500
> > > > PYOEXTENSION=	pyo
> > > > .else
> > > > PYOEXTENSION=	opt-1.pyc
> > > > .endif
> > > > 
> > > > PLIST_SUB+=	PYOEXTENSION=${PYOEXTENSION} \
> > > > 		PYVER=${PYTHON_VER:S/.//}
> > > > 
> > > > 
> > > 
> > > Currently an in-progress issue:
> > 
> > I see. The name convention and approach are even better then my.
> > Thank you.
> > 
> 
> You're welcome, and feel free to add your thoughts/comments to that
> issue as well.
> 
> ./koobs

Only porters-handbook updating, as soon it'll be commited. Handbook
always goes behind ports tree and sometime it's hard to follow for
people who contribute occasionally.