Skip to content
Snippets Groups Projects
Commit b6546e21 authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

devel/py-pyTooling: Update 2.12.3 → 2.13.0

Reported by:	portscout
parent 2fca1525
No related branches found
No related tags found
No related merge requests found
PORTNAME= pyTooling
DISTVERSIONPREFIX= v
DISTVERSION= 2.12.3
DISTVERSION= 2.13.0
CATEGORIES= devel
#MASTER_SITES= PYPI # requirements.txt is missing
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
......
TIMESTAMP = 1677176526
SHA256 (pyTooling-pyTooling-v2.12.3_GH0.tar.gz) = 03c7d042500490f21ddebcc65a158e749208e9af2f9a551274d39e04957c8bbc
SIZE (pyTooling-pyTooling-v2.12.3_GH0.tar.gz) = 580323
TIMESTAMP = 1678514205
SHA256 (pyTooling-pyTooling-v2.13.0_GH0.tar.gz) = 153cc87f59de8911904f78786934526ddc31a615557883495355f70075fb587a
SIZE (pyTooling-pyTooling-v2.13.0_GH0.tar.gz) = 584295
--- pyTooling/Common/Platform.py.orig 2023-02-23 18:45:13 UTC
+++ pyTooling/Common/Platform.py
@@ -52,10 +52,11 @@ class Platform(metaclass=ExtendedType, singleton=True)
Unknown = 0
OS_Linux = auto() #: Operating System: Linux.
+ OS_FreeBSD = auto() #: Operating System: FreeBSD.
OS_MacOS = auto() #: Operating System: macOS.
OS_Windows = auto() #: Operating System: Windows.
- OperatingSystem = OS_Linux | OS_MacOS | OS_Windows #: Mask: Any operating system.
+ OperatingSystem = OS_Linux | OS_FreeBSD | OS_MacOS | OS_Windows #: Mask: Any operating system.
SEP_WindowsPath = auto() #: Seperator: Path element seperator (e.g. for directories).
SEP_WindowsValue = auto() #: Seperator: Value seperator in variables (e.g. for paths in PATH).
@@ -76,6 +77,7 @@ class Platform(metaclass=ExtendedType, singleton=True)
Architecture = Arch_x86 | Arch_Arm #: Mask: Any architecture.
Linux = OS_Linux | ENV_Native | ARCH_x86_64 #: Group: native Linux on x86-64.
+ FreeBSD = OS_FreeBSD | ENV_Native | ARCH_x86_64 #: Group: native FreeBSD on x86-64.
MacOS = OS_MacOS | ENV_Native | ARCH_x86_64 #: Group: native macOS on x86-64.
Windows = OS_Windows | ENV_Native | ARCH_x86_64 | SEP_WindowsPath | SEP_WindowsValue #: Group: native Windows on x86-64.
@@ -155,6 +157,16 @@ class Platform(metaclass=ExtendedType, singleton=True)
self._platform |= self.Platforms.ARCH_x86_32
else:
raise Exception(f"Unknown architecture '{sysconfig_platform}' for a native Linux.")
+
+ elif sys_platform.startswith("freebsd"):
+ self._platform |= self.Platforms.OS_FreeBSD | self.Platforms.ENV_Native
+
+ if sysconfig_platform.endswith("-amd64"): # native FreeBSD amd64; Windows 64 + WSL
+ self._platform |= self.Platforms.ARCH_x86_64
+ elif sysconfig_platform.endswith("-aarch64"): # native FreeBSD Aarch64
+ self._platform |= self.Platforms.ARCH_x86_32
+ else:
+ raise Exception(f"Unknown architecture '{sysconfig_platform}' for a native FreeBSD.")
elif sys_platform == "darwin":
self._platform |= self.Platforms.OS_MacOS | self.Platforms.ENV_Native | self.Platforms.ARCH_x86_64
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment