On Fri, Dec 07, 2018 at 06:23:33AM +0100, Sebastien Marie wrote:
> On Wed, Dec 05, 2018 at 05:03:14PM +0100, Sebastien Marie wrote:
> > Hi,
> > 
> > devel/llvm,-python provides a lldb python module. The module used a
> > _lldb.so module, which is in fact a symlink to liblldb.so (installed in
> > /usr/local/lib).
> > 
> > Below an untested diff to correct the symlink in post-install. I will
> > test it soon.
> 
> After testing, it seems my diff was wrong. so a new diff (tested this
> time).
> 

And updated diff after latest changes in devel/llvm.

Comments or OK ?
-- 
Sebastien Marie

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/llvm/Makefile,v
retrieving revision 1.200
diff -u -p -r1.200 Makefile
--- Makefile    6 Dec 2018 21:51:01 -0000       1.200
+++ Makefile    7 Dec 2018 05:38:40 -0000
@@ -22,6 +22,7 @@ PKGNAME-python =      py-llvm-${LLVM_V}
 PKGNAME-lldb = lldb-${LLVM_V}
 REVISION-main =        19
 REVISION-python = 3
+REVISION-lldb = 0
 CATEGORIES =   devel
 DISTFILES =    llvm-${LLVM_V}.src${EXTRACT_SUFX} \
                cfe-${LLVM_V}.src${EXTRACT_SUFX} \
@@ -138,6 +139,8 @@ post-install:
            ${PREFIX}/man/man1
        ${INSTALL_DATA} ${WRKSRC}/tools/clang/docs/_build/man/clang.1 \
            ${PREFIX}/man/man1
+       ln -fs ${LOCALBASE}/lib/liblldb.so.${LIBlldb_VERSION} \
+           ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/lldb/_lldb.so
        # lit and FileCheck are not installed
        @rm ${PREFIX}/man/man1/lit.1
        @rm ${PREFIX}/man/man1/FileCheck.1

Reply via email to