pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-ruff-lsp



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu May  9 17:39:33 UTC 2024

Modified Files:
        pkgsrc/devel/py-ruff-lsp: ALTERNATIVES Makefile

Log Message:
py-ruff-lsp: fix package

Add missing dependencies, fix path to ruff, fix names in ALTERNATIVES.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-ruff-lsp/ALTERNATIVES \
    pkgsrc/devel/py-ruff-lsp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-ruff-lsp/ALTERNATIVES
diff -u pkgsrc/devel/py-ruff-lsp/ALTERNATIVES:1.1 pkgsrc/devel/py-ruff-lsp/ALTERNATIVES:1.2
--- pkgsrc/devel/py-ruff-lsp/ALTERNATIVES:1.1   Tue May  7 15:40:59 2024
+++ pkgsrc/devel/py-ruff-lsp/ALTERNATIVES       Thu May  9 17:39:33 2024
@@ -1 +1 @@
-bin/ruff @PREFIX@/bin/ruff-@PYVERSSUFFIX@
+bin/ruff-lsp @PREFIX@/bin/ruff-lsp-@PYVERSSUFFIX@
Index: pkgsrc/devel/py-ruff-lsp/Makefile
diff -u pkgsrc/devel/py-ruff-lsp/Makefile:1.1 pkgsrc/devel/py-ruff-lsp/Makefile:1.2
--- pkgsrc/devel/py-ruff-lsp/Makefile:1.1       Tue May  7 15:40:59 2024
+++ pkgsrc/devel/py-ruff-lsp/Makefile   Thu May  9 17:39:33 2024
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2024/05/07 15:40:59 nikita Exp $
+# $NetBSD: Makefile,v 1.2 2024/05/09 17:39:33 wiz Exp $
 
 DISTNAME=      ruff_lsp-0.0.53
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/}
+PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=r/ruff_lsp/}
 
@@ -10,17 +11,27 @@ HOMEPAGE=   https://github.com/astral-sh/r
 COMMENT=       Language Server Protocol implementation for Ruff
 LICENSE=       mit
 
-# runtime
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+DEPENDS+=      ${PYPKGPREFIX}-lsp-jsonrpc-[0-9]*:../../textproc/py-lsp-jsonrpc
+DEPENDS+=      ${PYPKGPREFIX}-lsprotocol-[0-9]*:../../lang/py-lsprotocol
+DEPENDS+=      ${PYPKGPREFIX}-pygls-[0-9]*:../../lang/py-pygls
 DEPENDS+=      ${PYPKGPREFIX}-ruff-[0-9]*:../../devel/py-ruff
-
-# build-time
-DEPENDS+=      ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+SUBST_CLASSES+=                ruff
+SUBST_FILES.ruff+=     ruff_lsp/server.py
+SUBST_SED.ruff+=       -e 's,shutil.which("ruff"),shutil.which("ruff-${PYVERSSUFFIX}"),'
+SUBST_STAGE.ruff=      pre-build
+SUBST_MESSAGE.ruff=    Fixing path to ruff binary.
+
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} ruff-lsp ruff-lsp-${PYVERSSUFFIX} || ${TRUE}
 
+pre-test:
+       ${LN} -sf ${DESTDIR}${PREFIX}/bin/ruff-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/ruff
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index