pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/diffsitter



Module Name:    pkgsrc
Committed By:   pin
Date:           Wed Jan 18 10:56:42 UTC 2023

Modified Files:
        pkgsrc/devel/diffsitter: Makefile distinfo
Added Files:
        pkgsrc/devel/diffsitter/patches: patch-src_parse.rs

Log Message:
devel/diffsitter: add support for tree-sitter grammars


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/diffsitter/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/diffsitter/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/diffsitter/patches/patch-src_parse.rs

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

Modified files:

Index: pkgsrc/devel/diffsitter/Makefile
diff -u pkgsrc/devel/diffsitter/Makefile:1.3 pkgsrc/devel/diffsitter/Makefile:1.4
--- pkgsrc/devel/diffsitter/Makefile:1.3        Mon Dec 26 22:13:02 2022
+++ pkgsrc/devel/diffsitter/Makefile    Wed Jan 18 10:56:42 2023
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2022/12/26 22:13:02 pin Exp $
+# $NetBSD: Makefile,v 1.4 2023/01/18 10:56:42 pin Exp $
 
 DISTNAME=      diffsitter-0.7.3
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=afnanenayet/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -10,6 +11,8 @@ HOMEPAGE=     https://github.com/afnanenayet
 COMMENT=       Tree-sitter based AST difftool to get meaningful semantic diffs
 LICENSE=       mit
 
+RUSTFLAGS+=    -C link-arg=${COMPILER_RPATH_FLAG}${PREFIX}/lib
+
 .include "cargo-depends.mk"
 
 USE_LANGUAGES+=                        c c++

Index: pkgsrc/devel/diffsitter/distinfo
diff -u pkgsrc/devel/diffsitter/distinfo:1.2 pkgsrc/devel/diffsitter/distinfo:1.3
--- pkgsrc/devel/diffsitter/distinfo:1.2        Mon Dec 26 22:13:02 2022
+++ pkgsrc/devel/diffsitter/distinfo    Wed Jan 18 10:56:42 2023
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2022/12/26 22:13:02 pin Exp $
+$NetBSD: distinfo,v 1.3 2023/01/18 10:56:42 pin Exp $
 
 BLAKE2s (addr2line-0.17.0.crate) = f7fa3b016f0e80c4ea9967f8947de15edc9fa39d0c0cdea692dccd0c41c28039
 SHA512 (addr2line-0.17.0.crate) = ef3bbd7c6d1dfdd0b47e3be1fb4c8b15ed61a769bed7e80dce80461a1ee13ef21c75e62e9a66328504f862341f1e808abec5790ac79784e18655afcc16206b95
@@ -561,3 +561,4 @@ Size (yaml-rust-0.4.5.crate) = 47783 byt
 BLAKE2s (yansi-0.5.1.crate) = 320911635584dafa034235f47c39057166574bad71fa932fb689f67e63e8ee14
 SHA512 (yansi-0.5.1.crate) = 7b33005a066cc612408a65df6533e8718d1de43efc0fd57416a19dc2b811497570e6e18f100fb26073565e395e711518c27de7d644ae64777713f1a102eb16d2
 Size (yansi-0.5.1.crate) = 16525 bytes
+SHA1 (patch-src_parse.rs) = 05a27e6e732be3499211c1d07c8bd56dcfc6459d

Added files:

Index: pkgsrc/devel/diffsitter/patches/patch-src_parse.rs
diff -u /dev/null pkgsrc/devel/diffsitter/patches/patch-src_parse.rs:1.1
--- /dev/null   Wed Jan 18 10:56:42 2023
+++ pkgsrc/devel/diffsitter/patches/patch-src_parse.rs  Wed Jan 18 10:56:42 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_parse.rs,v 1.1 2023/01/18 10:56:42 pin Exp $
+
+Add support for NetBSD.
+
+--- src/parse.rs.orig  2022-12-20 06:00:41.000000000 +0000
++++ src/parse.rs
+@@ -139,7 +139,7 @@ fn fn_name_from_lang(lang: &str) -> Stri
+ fn lib_name_from_lang(lang: &str) -> String {
+     let extension = if cfg!(target_os = "macos") {
+         "dylib"
+-    } else if cfg!(target_os = "linux") {
++    } else if cfg!(any(target_os = "linux", target_os = "netbsd")) {
+         "so"
+     } else if cfg!(target_os = "windows") {
+         "dll"



Home | Main Index | Thread Index | Old Index