diff --git a/archivers/py-liblzma/Makefile b/archivers/py-liblzma/Makefile index 84906e3728c7..6e486c373ed8 100644 --- a/archivers/py-liblzma/Makefile +++ b/archivers/py-liblzma/Makefile @@ -6,7 +6,7 @@ PORTNAME= liblzma PORTVERSION= 0.5.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= archivers python MASTER_SITES= ${MASTER_SITE_CHEESESHOP}source/p/pyliblzma/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/archivers/py-liblzma/files/patch-setup.py b/archivers/py-liblzma/files/patch-setup.py index c1aaeaa42194..7ba8425aa010 100644 --- a/archivers/py-liblzma/files/patch-setup.py +++ b/archivers/py-liblzma/files/patch-setup.py @@ -9,7 +9,16 @@ descr = "Python bindings for liblzma" long_descr = """PylibLZMA provides a python interface for the liblzma library -@@ -74,7 +74,6 @@ +@@ -54,6 +54,8 @@ + pc_libs = subprocess.Popen("pkg-config --libs liblzma", shell=True, stdout=subprocess.PIPE, close_fds=True).stdout.readline().strip() + if(pc_libs): + link_args.extend(pc_libs.split(' ')) ++link_args.append('-L%s/lib' % os.environ["LOCALBASE"]) ++link_args.append('-lpython%i.%i' % sys.version_info[:2]) + + extens=[Extension('lzma', c_files, extra_compile_args=compile_args, extra_link_args=link_args, define_macros=version_define)] + +@@ -74,7 +76,6 @@ ], py_modules = modules, ext_modules = extens,