diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /dev-libs/tree-sitter | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'dev-libs/tree-sitter')
-rw-r--r-- | dev-libs/tree-sitter/Manifest | 5 | ||||
-rw-r--r-- | dev-libs/tree-sitter/files/tree-sitter-No-static-libs-gentoo.patch | 21 | ||||
-rw-r--r-- | dev-libs/tree-sitter/metadata.xml | 18 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-0.17.3.ebuild | 26 | ||||
-rw-r--r-- | dev-libs/tree-sitter/tree-sitter-9999.ebuild | 26 |
5 files changed, 96 insertions, 0 deletions
diff --git a/dev-libs/tree-sitter/Manifest b/dev-libs/tree-sitter/Manifest new file mode 100644 index 000000000000..622a78ff36a5 --- /dev/null +++ b/dev-libs/tree-sitter/Manifest @@ -0,0 +1,5 @@ +AUX tree-sitter-No-static-libs-gentoo.patch 793 BLAKE2B 9f80752bff2b5d327889702b6d890a4cdfefc74965a8109e692ddbf576cdea62062df0b3757c2ac8264946e549bbc9885f1b52b870f932c4805b74f5171fa718 SHA512 8eb3e40f91ea5a23ae668a7208b697d6d8c67f34f5807c0c26e8ed56357a577b3f3e6e7138d32aa69f8d1865b274595341dfe77674abf8eea1be442ca023da9d +DIST tree-sitter-0.17.3.tar.gz 519006 BLAKE2B 81eb9bdfc9f27e7b172b6c17333eece5515cf292d5b08eb5362f108db483e329ff6d309ccc40ef2de23d1a32c437cdbc1b9cf800146902a3d913feecf8b63269 SHA512 48a827d7bea184a84ad9f594bc5dc1869bad9aa2823f83d1ac7d58e6feaa092e7088e7eb0dcc6d3aa3810d25ff9f25ecb531751c77314ff7d07fa05f95b7a013 +EBUILD tree-sitter-0.17.3.ebuild 646 BLAKE2B c67c4ec09e70ad7ea3799cdb38c304a46494087f821967b2b28dd29d64a40858509a9d10513343991ff845c7f807a4cdbf597595fe69154de24a57880f6e72e9 SHA512 795feae856a3e42de92108a369f3b071c4a520eb5f365c8434a305a9442580813625204e36546f9eb20b90df59706c3b14d2cf2d3083eb148266224cb4a55590 +EBUILD tree-sitter-9999.ebuild 646 BLAKE2B c67c4ec09e70ad7ea3799cdb38c304a46494087f821967b2b28dd29d64a40858509a9d10513343991ff845c7f807a4cdbf597595fe69154de24a57880f6e72e9 SHA512 795feae856a3e42de92108a369f3b071c4a520eb5f365c8434a305a9442580813625204e36546f9eb20b90df59706c3b14d2cf2d3083eb148266224cb4a55590 +MISC metadata.xml 692 BLAKE2B e8a04ac2d2dbe16214d82067944baef692a4e8896fcbad7feca9e54565e603b0e5308bb4f1e4bc5aaf39f41b1ca0e10fa5710159ed1012c6ed47f2007fa19a69 SHA512 a319341832c189a845f1a757b17bbefc10a7c4b00c49e80b49745061112b91ebb80f2f96a99de27ed6aa5799f25bd56ddec3eb41bfb2507b037ee8e965525053 diff --git a/dev-libs/tree-sitter/files/tree-sitter-No-static-libs-gentoo.patch b/dev-libs/tree-sitter/files/tree-sitter-No-static-libs-gentoo.patch new file mode 100644 index 000000000000..dd898b059612 --- /dev/null +++ b/dev-libs/tree-sitter/files/tree-sitter-No-static-libs-gentoo.patch @@ -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) diff --git a/dev-libs/tree-sitter/metadata.xml b/dev-libs/tree-sitter/metadata.xml new file mode 100644 index 000000000000..dcfdb27e8a99 --- /dev/null +++ b/dev-libs/tree-sitter/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>abdelqaderali@protonmail.com</email> + <name>Ali Abdel-Qader</name> + </maintainer> + <maintainer type="person"> + <email>sarnex@gentoo.org</email> + <name>Nick Sarnie</name> + </maintainer> + <upstream> + <remote-id type="github">tree-sitter/tree-sitter</remote-id> + </upstream> + <longdescription> + Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited. + </longdescription> +</pkgmetadata> diff --git a/dev-libs/tree-sitter/tree-sitter-0.17.3.ebuild b/dev-libs/tree-sitter/tree-sitter-0.17.3.ebuild new file mode 100644 index 000000000000..b50d6429cd9a --- /dev/null +++ b/dev-libs/tree-sitter/tree-sitter-0.17.3.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library." +HOMEPAGE="https://github.com/tree-sitter/tree-sitter" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" + +PATCHES=( + "${FILESDIR}/${PN}-No-static-libs-gentoo.patch" +) + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/lib64" install +} diff --git a/dev-libs/tree-sitter/tree-sitter-9999.ebuild b/dev-libs/tree-sitter/tree-sitter-9999.ebuild new file mode 100644 index 000000000000..b50d6429cd9a --- /dev/null +++ b/dev-libs/tree-sitter/tree-sitter-9999.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Tree-sitter is a parser generator tool and an incremental parsing library." +HOMEPAGE="https://github.com/tree-sitter/tree-sitter" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" + +PATCHES=( + "${FILESDIR}/${PN}-No-static-libs-gentoo.patch" +) + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/lib64" install +} |