From owner-freebsd-python@FreeBSD.ORG  Fri Oct 18 05:44:30 2013
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id DA6C7FA7
 for <python@FreeBSD.org>; Fri, 18 Oct 2013 05:44:30 +0000 (UTC)
 (envelope-from avg@FreeBSD.org)
Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140])
 by mx1.freebsd.org (Postfix) with ESMTP id 37D562E3B
 for <python@FreeBSD.org>; Fri, 18 Oct 2013 05:44:29 +0000 (UTC)
Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua
 [212.40.38.100])
 by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id IAA20581
 for <python@FreeBSD.org>; Fri, 18 Oct 2013 08:44:28 +0300 (EEST)
 (envelope-from avg@FreeBSD.org)
Received: from localhost ([127.0.0.1])
 by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD))
 id 1VX2rM-0004dk-8O
 for python@FreeBSD.org; Fri, 18 Oct 2013 08:44:28 +0300
Message-ID: <5260CA83.8080503@FreeBSD.org>
Date: Fri, 18 Oct 2013 08:43:31 +0300
From: Andriy Gapon <avg@FreeBSD.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
 rv:24.0) Gecko/20100101 Thunderbird/24.0.1
MIME-Version: 1.0
To: python@FreeBSD.org
Subject: Re: PYDISTUTILS_AUTOPLIST, stage, man pages
References: <5260203B.6060502@FreeBSD.org>
 <20131017181944.GA1374@medusa.sysfault.org> <52604530.6040209@FreeBSD.org>
 <20131017220703.GA24842@medusa.sysfault.org>
In-Reply-To: <20131017220703.GA24842@medusa.sysfault.org>
X-Enigmail-Version: 1.6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://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: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 18 Oct 2013 05:44:30 -0000

on 18/10/2013 01:07 Marcus von Appen said the following:
> Except for the fact that 'share/' is wrong for FreeBSD (which you know,
> I guess ;-), I see what you mean. A fix for that might be to check the
> directory for something matching on
> 
>           man/man[0-9]/*.[0-9]
> 
> and append it automatically with a .gz in the ${_PYTHONPKGLIST} record
> file within the add-plist-pymod target in bsd.python.mk
> 
> Can you upload the port shar somewhere for a test?

The port is here:
https://redports.org/browser/avg/sysutils/py-obnam
It also depends on the following four new ports (all matching py-*):
https://redports.org/browser/avg/devel

In the current shape the port "works", but installs the man pages into a wrong
place.  If I fix it like this:

Index: Makefile
===================================================================
--- Makefile	(revision 18184)
+++ Makefile	(working copy)
@@ -26,4 +26,7 @@
 USE_PYDISTUTILS=	yes
 PYDISTUTILS_AUTOPLIST=	yes

+post-patch:
+	${REINPLACE_CMD} 's#share/man#man#' ${WRKSRC}/${PYSETUP}
+
 .include <bsd.port.mk>

Then installation fails because auto-generated plist and what's in stage
directory do not match.

Thank you!
-- 
Andriy Gapon