Date: Thu, 21 Mar 2024 20:14:13 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 731e65e8e0c0 - main - devel/blueprint-compiler: update to 0.12.0 Message-ID: <202403212014.42LKEDcR046183@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=731e65e8e0c03d92376ef985bbef2a83c2dda329 commit 731e65e8e0c03d92376ef985bbef2a83c2dda329 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2024-03-21 19:37:27 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2024-03-21 20:14:02 +0000 devel/blueprint-compiler: update to 0.12.0 Changes: https://gitlab.gnome.org/jwestman/blueprint-compiler/-/releases/v0.12.0 Reported by: GitLab (notify releases) --- devel/blueprint-compiler/Makefile | 3 +- devel/blueprint-compiler/distinfo | 6 ++-- .../files/patch-blueprintcompiler_gir.py | 13 -------- .../files/patch-blueprintcompiler_typelib.py | 38 ---------------------- devel/blueprint-compiler/pkg-plist | 4 ++- 5 files changed, 7 insertions(+), 57 deletions(-) diff --git a/devel/blueprint-compiler/Makefile b/devel/blueprint-compiler/Makefile index 7084d92106e3..78f0d770d682 100644 --- a/devel/blueprint-compiler/Makefile +++ b/devel/blueprint-compiler/Makefile @@ -1,7 +1,6 @@ PORTNAME= blueprint-compiler DISTVERSIONPREFIX= v -DISTVERSION= 0.10.0 -PORTREVISION= 1 +DISTVERSION= 0.12.0 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org diff --git a/devel/blueprint-compiler/distinfo b/devel/blueprint-compiler/distinfo index da9d94d66197..68b97ff96612 100644 --- a/devel/blueprint-compiler/distinfo +++ b/devel/blueprint-compiler/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1689969978 -SHA256 (blueprint-compiler-v0.10.0.tar.bz2) = 9c3c6eecef9eb54ad43b9ef786697a9f99b21e35240e9ddc8541a2cbd9ea79ba -SIZE (blueprint-compiler-v0.10.0.tar.bz2) = 81856 +TIMESTAMP = 1711049847 +SHA256 (blueprint-compiler-v0.12.0.tar.bz2) = 0f762e8a0dfef9aa46b4bddf8ed4bbc09b5d2fa2baff5dec109ccc513c6e9e00 +SIZE (blueprint-compiler-v0.12.0.tar.bz2) = 90521 diff --git a/devel/blueprint-compiler/files/patch-blueprintcompiler_gir.py b/devel/blueprint-compiler/files/patch-blueprintcompiler_gir.py deleted file mode 100644 index 48471f4d9a05..000000000000 --- a/devel/blueprint-compiler/files/patch-blueprintcompiler_gir.py +++ /dev/null @@ -1,13 +0,0 @@ ---- blueprintcompiler/gir.py.orig 2023-09-26 21:07:04 UTC -+++ blueprintcompiler/gir.py -@@ -888,8 +888,8 @@ class Repository(GirNode): - return self.lookup_namespace(ns).get_type(dir_entry.DIR_ENTRY_NAME) - - def _resolve_type_id(self, type_id: int) -> GirType: -- if type_id & 0xFFFFFF == 0: -- type_id = (type_id >> 27) & 0x1F -+ if type_id & (0xFFFFFF if sys.byteorder == "little" else 0xFFFFFF00) == 0: -+ type_id = ((type_id >> 27) if sys.byteorder == "little" else type_id) & 0x1F - # simple type - if type_id == typelib.TYPE_BOOLEAN: - return BoolType() diff --git a/devel/blueprint-compiler/files/patch-blueprintcompiler_typelib.py b/devel/blueprint-compiler/files/patch-blueprintcompiler_typelib.py deleted file mode 100644 index 4953a57016ef..000000000000 --- a/devel/blueprint-compiler/files/patch-blueprintcompiler_typelib.py +++ /dev/null @@ -1,38 +0,0 @@ ---- blueprintcompiler/typelib.py.orig 2023-07-21 20:06:18 UTC -+++ blueprintcompiler/typelib.py -@@ -61,7 +61,14 @@ class Field: - def __init__(self, offset: int, type: str, shift=0, mask=None): - self._offset = offset - self._type = type -- self._shift = shift -+ if not mask or sys.byteorder == "little": -+ self._shift = shift -+ elif self._type == "u8" or self._type == "i8": -+ self._shift = 8 - (shift + mask) -+ elif self._type == "u16" or self._type == "i16": -+ self._shift = 16 - (shift + mask) -+ else: -+ self._shift = 32 - (shift + mask) - self._mask = (1 << mask) - 1 if mask else None - self._name = f"{offset}__{type}__{shift}__{mask}" - -@@ -170,7 +177,7 @@ class Typelib: - OBJ_FINAL = Field(0x02, "u16", 3, 1) - OBJ_GTYPE_NAME = Field(0x08, "string") - OBJ_PARENT = Field(0x10, "dir_entry") -- OBJ_GTYPE_STRUCT = Field(0x14, "string") -+ OBJ_GTYPE_STRUCT = Field(0x12, "string") - OBJ_N_INTERFACES = Field(0x14, "u16") - OBJ_N_FIELDS = Field(0x16, "u16") - OBJ_N_PROPERTIES = Field(0x18, "u16") -@@ -255,7 +262,9 @@ class Typelib: - - def _int(self, size, signed) -> int: - return int.from_bytes( -- self._typelib_file[self._offset : self._offset + size], sys.byteorder -+ self._typelib_file[self._offset : self._offset + size], -+ sys.byteorder, -+ signed=signed, - ) - - diff --git a/devel/blueprint-compiler/pkg-plist b/devel/blueprint-compiler/pkg-plist index 8b651fd0e429..d4d4c3d5d279 100644 --- a/devel/blueprint-compiler/pkg-plist +++ b/devel/blueprint-compiler/pkg-plist @@ -5,11 +5,12 @@ bin/blueprint-compiler %%PYTHON_SITELIBDIR%%/blueprintcompiler/completions_utils.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/decompiler.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/errors.py +%%PYTHON_SITELIBDIR%%/blueprintcompiler/formatter.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/gir.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/interactive_port.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/__init__.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/adw_breakpoint.py -%%PYTHON_SITELIBDIR%%/blueprintcompiler/language/adw_message_dialog.py +%%PYTHON_SITELIBDIR%%/blueprintcompiler/language/adw_response_dialog.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/attributes.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/binding.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/common.py @@ -32,6 +33,7 @@ bin/blueprint-compiler %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/gtkbuilder_template.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/imports.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/response_id.py +%%PYTHON_SITELIBDIR%%/blueprintcompiler/language/translation_domain.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/types.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/ui.py %%PYTHON_SITELIBDIR%%/blueprintcompiler/language/values.py
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403212014.42LKEDcR046183>