Stuart Henderson, 04 Oct 2014 00:14:
> On 2014/10/02 16:07, frantisek holop wrote:
> > > diff -N pkg/PFRAG.no-python3
> > > --- /dev/null     1 Jan 1970 00:00:00 -0000
> > > +++ pkg/PFRAG.no-python3  27 Sep 2014 14:00:03 -0000
> > > @@ -0,0 +1,3 @@
> > > +@comment $OpenBSD$
> > > +include/python${MODPY_VERSION}/greenlet/
> > > +include/python${MODPY_VERSION}/greenlet/greenlet.h
> > > Index: pkg/PFRAG.python3
> > > ===================================================================
> > > RCS file: pkg/PFRAG.python3
> > > diff -N pkg/PFRAG.python3
> > > --- /dev/null     1 Jan 1970 00:00:00 -0000
> > > +++ pkg/PFRAG.python3     27 Sep 2014 14:00:03 -0000
> > > @@ -0,0 +1,3 @@
> > > +@comment $OpenBSD$
> > > +include/python${MODPY_VERSION}m/greenlet/
> > > +include/python${MODPY_VERSION}m/greenlet/greenlet.h
> 
> use MODPY_INCDIR (and add to SUBST_VARS), then you don't need the PFRAGs.

it seems like it is not possible to use this in PLIST.
but it is a good idea now that more and more software
comes in both py and py3 flavor so something like this
would be nice to have.

...

MODPY_INCDIR =          
${LOCALBASE}/include/python${MODPY_VERSION}${MODPY_LIB_SUFFIX}

...

@comment $OpenBSD: PLIST,v 1.1.1.1 2012/07/17 19:24:47 landry Exp $
${MODPY_INCDIR}/greenlet/
${MODPY_INCDIR}/greenlet/greenlet.h
lib/python${MODPY_VERSION}/site-packages/greenlet-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/greenlet.so
share/doc/${MODPY_PY_PREFIX}greenlet/
share/doc/${MODPY_PY_PREFIX}greenlet/README.rst

...

===>  Building package for py-greenlet-0.4.4
Create /usr/ports/packages/i386/all/py-greenlet-0.4.4.tgz
reading plist|Absolute name forbidden: /usr/local/include/python2.7/greenlet at 
/usr/libdata/perl5/OpenBSD/PackingElement.pm line 216, <$fh> line 2.
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1963 
'/usr/ports/packages/i386/all/py-greenlet-0.4.4.tgz')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2512 
'_internal-package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2492 'package')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1976 
'/var/db/pkg/py-greenlet-0.4.4/+CONTENTS')
*** Error 1 in /home/f/src/mystuff/devel/py-greenlet 
(/usr/ports/infrastructure/mk/bsd.port.mk:2492 'install')


-f
-- 
prayers are always answered.  the answer is usually no.

Reply via email to