From 5abae9e973fe596f28f78b4d83209ffab108e2cd Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Thu, 14 Nov 2024 06:45:35 +0000 Subject: Adding metadata --- .../files/python-tlsh-4.8.2-setup-sources.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch (limited to 'dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch') diff --git a/dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch b/dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch new file mode 100644 index 000000000000..4cdb0f864b5b --- /dev/null +++ b/dev-python/python-tlsh/files/python-tlsh-4.8.2-setup-sources.patch @@ -0,0 +1,30 @@ +--- a/setup.py ++++ b/setup.py +@@ -21,26 +21,7 @@ with open(join(realpath('..'), 'CMakeLists.txt'), 'r') as f: + if m: + tlsh_3b = '' + +-if os.name == 'nt': +- tlsh_module = Extension('tlsh', \ +- sources = ['tlshmodule.cpp', \ +- join(realpath('..'), 'src', 'tlsh.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_impl.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_util.cpp') \ +- ], \ +- include_dirs = [join(realpath('..'), 'include'), +- join(realpath('..'), 'Windows')],\ +- define_macros = [('WINDOWS', None),], \ +- ) +-else: +- tlsh_module = Extension('tlsh', \ +- sources = ['tlshmodule.cpp', \ +- join(realpath('..'), 'src', 'tlsh.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_impl.cpp'), \ +- join(realpath('..'), 'src', 'tlsh_util.cpp') \ +- ], \ +- include_dirs = [join(realpath('..'), 'include')], +- ) ++tlsh_module = Extension('tlsh', sources=['tlshmodule.cpp'], libraries=['tlsh']) + + if tlsh_256 != '': + tlsh_module.extra_compile_args.append(tlsh_256) -- cgit v1.3.1