On Mon, 26 Nov 2018 11:27:20 +0000, Stuart Henderson
<[email protected]> wrote:

> On 2018/11/26 10:44, Sebastien Marie wrote:
> > On Sun, Nov 25, 2018 at 02:19:01PM -0500, Daniel Jakots wrote:  
> > > On Thu, 28 Jun 2018 15:27:04 +0100, Stuart Henderson
> > > <[email protected]> wrote:
> > >   
> > > > @pkgpath devel/py-libmagic${MODPY_FLAVOR}  
> > > 
> > > This doesn't work.
> > > If I have @pkgpath devel/py-libmagic, only py2 gets updated. If I
> > > have @pkgpath devel/py-libmagic${MODPY_FLAVOR}, none gets updated.
> > > In order to test, I put
> > > @pkgpath devel/py-libmagic
> > > @pkgpath devel/py-libmagic,python3
> > > 
> > > and pkg_add updated both:
> > > py-libmagic-5.34->py-magic-0.4.15v0: ok
> > > py3-libmagic-5.34->py3-magic-0.4.15v0: ok
> > > 
> > > The only other python port that has something like that is
> > > py-sqlalchemy and it has what sthen said:
> > > @pkgpath databases/py-sqlalchemy${MODPY_FLAVOR}
> > > 
> > > Any idea?  
> > 
> > with "@pkgpath devel/py-libmagic${MODPY_FLAVOR}" in pkg/PLIST, the
> > +CONTENTS file has "${MODPY_FLAVOR}" verbatim in it. so the variable
> > isn't substituted. I am unsure if it is expected or not.  
> 
> Oh, it will need SUBST_VARS += MODPY_FLAVOR as well then.

It works:
py-libmagic-5.34->py-magic-0.4.15v0: ok
py3-libmagic-5.34->py3-magic-0.4.15v0: ok
Read shared items: ok


I can haz ok now please?


Cheers,
Daniel

Attachment: py-magic.tgz
Description: application/compressed-tar

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/quirks/Makefile,v
retrieving revision 1.648
diff -u -p -r1.648 Makefile
--- Makefile	25 Nov 2018 20:35:18 -0000	1.648
+++ Makefile	26 Nov 2018 18:08:14 -0000
@@ -5,7 +5,7 @@ CATEGORIES =	devel databases
 DISTFILES =
 
 # API.rev
-PKGNAME =	quirks-3.41
+PKGNAME =	quirks-3.42
 PKG_ARCH =	*
 MAINTAINER =	Marc Espie <[email protected]>
 
Index: files/Quirks.pm
===================================================================
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.662
diff -u -p -r1.662 Quirks.pm
--- files/Quirks.pm	25 Nov 2018 20:35:18 -0000	1.662
+++ files/Quirks.pm	26 Nov 2018 18:08:14 -0000
@@ -286,6 +286,8 @@ my $stem_extensions = {
 	'ValyriaTear' => 'valyriatear',
 	'apertium-es-ast_NO-PN' => 'apertium-es-ast',
 	'py-pafy' => 'py3-pafy',
+	'py-libmagic' => 'py-magic',
+	'py3-libmagic' => 'py3-magic',
 };
 
 my $obsolete_reason = {

Reply via email to