pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/py-sip py-sip: update to 4.19.5



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bbaddb6c2e28
branches:  trunk
changeset: 374176:bbaddb6c2e28
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Jan 17 19:16:05 2018 +0000

description:
py-sip: update to 4.19.5

diffstat:

 x11/py-sip/Makefile                       |   4 +-
 x11/py-sip/PLIST                          |   3 +-
 x11/py-sip/patches/patch-ab               |   6 +-
 x11/py-sip/patches/patch-sipgen_gencode.c |  82 +++++++++++++++++++++++++++++++
 4 files changed, 89 insertions(+), 6 deletions(-)

diffs (129 lines):

diff -r 74a2dc5b6cf5 -r bbaddb6c2e28 x11/py-sip/Makefile
--- a/x11/py-sip/Makefile       Wed Jan 17 19:10:23 2018 +0000
+++ b/x11/py-sip/Makefile       Wed Jan 17 19:16:05 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.48 2017/07/15 13:20:50 wiz Exp $
+# $NetBSD: Makefile,v 1.49 2018/01/17 19:16:05 markd Exp $
 
-DISTNAME=      sip-4.17
+DISTNAME=      sip-4.19.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    x11 devel python
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=pyqt/}
diff -r 74a2dc5b6cf5 -r bbaddb6c2e28 x11/py-sip/PLIST
--- a/x11/py-sip/PLIST  Wed Jan 17 19:10:23 2018 +0000
+++ b/x11/py-sip/PLIST  Wed Jan 17 19:16:05 2018 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/08 14:10:45 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/01/17 19:16:05 markd Exp $
 bin/sip${PYVERSSUFFIX}
 ${PYINC}/sip.h
+${PYSITELIB}/sip.pyi
 ${PYSITELIB}/sip.so
 ${PYSITELIB}/sipconfig.py
 ${PYSITELIB}/sipconfig.pyc
diff -r 74a2dc5b6cf5 -r bbaddb6c2e28 x11/py-sip/patches/patch-ab
--- a/x11/py-sip/patches/patch-ab       Wed Jan 17 19:10:23 2018 +0000
+++ b/x11/py-sip/patches/patch-ab       Wed Jan 17 19:16:05 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.2 2011/01/11 15:14:20 drochner Exp $
+$NetBSD: patch-ab,v 1.3 2018/01/17 19:16:05 markd Exp $
 
---- sipgen/sipgen.sbf.orig     2010-12-23 17:37:09.000000000 +0000
+--- sipgen/sipgen.sbf.orig     2017-02-15 12:37:11.000000000 +0000
 +++ sipgen/sipgen.sbf
 @@ -14,6 +14,6 @@
  # SIP is supplied WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -8,5 +8,5 @@
  
 -target = sip
 +target = sip@PYVERSSUFFIX@
- sources = main.c transform.c gencode.c extracts.c export.c heap.c parser.c lexer.c 
+ sources = main.c transform.c gencode.c extracts.c export.c type_hints.c heap.c parser.c lexer.c 
  headers = sip.h parser.h
diff -r 74a2dc5b6cf5 -r bbaddb6c2e28 x11/py-sip/patches/patch-sipgen_gencode.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/py-sip/patches/patch-sipgen_gencode.c Wed Jan 17 19:16:05 2018 +0000
@@ -0,0 +1,82 @@
+$NetBSD: patch-sipgen_gencode.c,v 1.1 2018/01/17 19:16:05 markd Exp $
+
+Fixed the handling of the default value of unscoped enums when using
+old compilers.  [dd017d3e1454] [tip]
+
+--- sipgen/gencode.c   2017-11-06 13:45:14.000000000 +1300
++++ sipgen/gencode.c   2017-11-11 15:30:06.000000000 +1300
+@@ -305,6 +305,7 @@
+ static int isString(argDef *ad);
+ static scopedNameDef *stripScope(scopedNameDef *snd, classDef *ecd,
+         StripAction strip);
++static void prEnumMemberScope(enumMemberDef *emd, FILE *fp);
+ 
+ 
+ /*
+@@ -3295,25 +3296,14 @@
+ 
+         if (!isNoScope(emd->ed))
+         {
+-            classDef *ecd = emd->ed->ecd;
+-
+             if (isScopedEnum(emd->ed))
+-            {
+-                prcode(fp, "::%s::", emd->ed->cname->text);
+-            }
+-            else if (ecd != NULL)
+-            {
+-                if (isProtectedEnum(emd->ed))
+-                    prcode(fp, "sip%C::", classFQCName(ecd));
+-                else if (isProtectedClass(ecd))
+-                    prcode(fp, "%U::", ecd);
+-                else
+-                    prcode(fp, "%S::", classFQCName(ecd));
+-            }
++                prcode(fp, "::%s", emd->ed->cname->text);
++            else if (emd->ed->ecd != NULL)
++                prEnumMemberScope(emd, fp);
+             else if (mtd != NULL)
+-            {
+-                prcode(fp, "%S::", mtd->iff->fqcname);
+-            }
++                prcode(fp, "%S", mtd->iff->fqcname);
++
++            prcode(fp, "::");
+         }
+ 
+         prcode(fp, "%s%s, %d},\n", emd->cname, (generating_c ? "" : ")"), emd->ed->first_alt->enumnr);
+@@ -7592,7 +7582,13 @@
+ 
+         if (ed->members != NULL)
+         {
+-            prcode(fp, "%E::%s", ed, ed->members->cname);
++            if (isScopedEnum(ed))
++                prcode(fp, "%E", ed);
++            else
++                prEnumMemberScope(ed->members, fp);
++
++            prcode(fp, "::%s", ed->members->cname);
++
+             return;
+         }
+ 
+@@ -15531,3 +15527,19 @@
+ 
+     return snd;
+ }
++
++
++/*
++ * Generate the scope of a member of an unscoped enum.
++ */
++static void prEnumMemberScope(enumMemberDef *emd, FILE *fp)
++{
++    classDef *ecd = emd->ed->ecd;
++
++    if (isProtectedEnum(emd->ed))
++        prcode(fp, "sip%C", classFQCName(ecd));
++    else if (isProtectedClass(ecd))
++        prcode(fp, "%U", ecd);
++    else
++        prcode(fp, "%S", classFQCName(ecd));
++}



Home | Main Index | Thread Index | Old Index