tree_sitter, disable static library with Gentoo's patch (#7679)

This commit is contained in:
Schrijvers Luc
2022-12-28 10:18:01 +01:00
committed by GitHub
parent 321989c43a
commit 198857e7db
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
diff --git a/Makefile b/Makefile
index 764f411a..86aaefd8 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ ifneq (,$(filter $(shell uname),FreeBSD NetBSD DragonFly))
PCLIBDIR := $(PREFIX)/libdata/pkgconfig
endif
-all: libtree-sitter.a libtree-sitter.$(SOEXTVER)
+all: libtree-sitter.$(SOEXTVER)
libtree-sitter.a: $(OBJ)
$(AR) rcs $@ $^
@@ -53,7 +53,6 @@ libtree-sitter.$(SOEXTVER): $(OBJ)
install: all
install -d '$(DESTDIR)$(LIBDIR)'
- install -m755 libtree-sitter.a '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a
install -m755 libtree-sitter.$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER)
ln -sf libtree-sitter.$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER_MAJOR)
ln -sf libtree-sitter.$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXT)

View File

@@ -3,10 +3,11 @@ DESCRIPTION="Tree-sitter is an extendable parsing system for various programming
HOMEPAGE="https://tree-sitter.github.io/"
COPYRIGHT="2018-2021 Max Brunsfeld"
LICENSE="MIT"
REVISION="6"
REVISION="7"
SOURCE_URI="https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="4d37eaef8a402a385998ff9aca3e1043b4a3bba899bceeff27a7178e1165b9de"
SOURCE_DIR="tree-sitter-$portVersion"
PATCHES="tree-sitter-No-static-libs-gentoo.patch"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"