mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
update to py3-discid-1.4.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
COMMENT= Python binding of libdiscid
|
||||
|
||||
MODPY_DISTV= 1.3.0
|
||||
MODPY_DISTV= 1.4.0
|
||||
DISTNAME= discid-${MODPY_DISTV}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (discid-1.3.0.tar.gz) = cWChIRrD1qbYIT+4jdPXPjKr5eATNqWkyYWwgql9QzU=
|
||||
SIZE (discid-1.3.0.tar.gz) = 34393
|
||||
SHA256 (discid-1.4.0.tar.gz) = UP09tEXK60S593Y3d+1JaIw89GM9qZ00DCW5GUlrqLU=
|
||||
SIZE (discid-1.4.0.tar.gz) = 36594
|
||||
|
||||
@@ -4,21 +4,12 @@ if the libdiscid major gets bumped.
|
||||
Index: discid/libdiscid.py
|
||||
--- discid/libdiscid.py.orig
|
||||
+++ discid/libdiscid.py
|
||||
@@ -59,7 +59,7 @@ def _find_library(name, version=0):
|
||||
@@ -62,7 +62,7 @@ def _find_library(name: str, version: int = 0) -> str:
|
||||
else:
|
||||
# that would be linux/UNIX-like
|
||||
# these need to prepend ./
|
||||
- lib_name = "./lib%s.so.%d" % (name, version)
|
||||
+ lib_name = "./lib%s.so" % (name)
|
||||
- lib_name = f"./lib{name}.so.{version}"
|
||||
+ lib_name = f"./lib{name}.so"
|
||||
if os.path.isfile(lib_name):
|
||||
lib_file = lib_name
|
||||
|
||||
@@ -88,7 +88,7 @@ def _find_library(name, version=0):
|
||||
elif sys.platform == "cygwin":
|
||||
lib_file = "cyg%s-%d.dll" % (name, version)
|
||||
else:
|
||||
- lib_file = "lib%s.so.%d" % (name, version)
|
||||
+ lib_file = "lib%s.so" % (name)
|
||||
|
||||
return lib_file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user