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)
This commit is contained in:
parent
3eb26be0fd
commit
731e65e8e0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue