From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 98904139360 for ; Tue, 10 Aug 2021 10:40:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DDD74E087A; Tue, 10 Aug 2021 10:40:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C6102E087A for ; Tue, 10 Aug 2021 10:40:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E3431342C3A for ; Tue, 10 Aug 2021 10:40:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4278F7C1 for ; Tue, 10 Aug 2021 10:40:45 +0000 (UTC) From: "Rui Huang" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rui Huang" Message-ID: <1628592037.ca3df19d636ae2278f8e55a7513c53824165d0a1.vowstar@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/libdatrie/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/libdatrie/Manifest dev-libs/libdatrie/libdatrie-0.2.13.ebuild dev-libs/libdatrie/metadata.xml X-VCS-Directories: dev-libs/libdatrie/ X-VCS-Committer: vowstar X-VCS-Committer-Name: Rui Huang X-VCS-Revision: ca3df19d636ae2278f8e55a7513c53824165d0a1 X-VCS-Branch: dev Date: Tue, 10 Aug 2021 10:40:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ab1c748d-eecb-4d46-9260-53216510a1b6 X-Archives-Hash: 7da296f8291472379b8f1ab26d7de3d6 commit: ca3df19d636ae2278f8e55a7513c53824165d0a1 Author: Huang Rui gmail com> AuthorDate: Tue Aug 10 10:40:37 2021 +0000 Commit: Rui Huang gmail com> CommitDate: Tue Aug 10 10:40:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ca3df19d dev-libs/libdatrie: Double-Array Trie Library Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Huang Rui gmail.com> dev-libs/libdatrie/Manifest | 1 + dev-libs/libdatrie/libdatrie-0.2.13.ebuild | 39 ++++++++++++++++++++++++++++++ dev-libs/libdatrie/metadata.xml | 21 ++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/dev-libs/libdatrie/Manifest b/dev-libs/libdatrie/Manifest new file mode 100644 index 000000000..f3ae83671 --- /dev/null +++ b/dev-libs/libdatrie/Manifest @@ -0,0 +1 @@ +DIST libdatrie-0.2.13.tar.gz 109963 BLAKE2B e4314a8ba78067963fdc3dc948238fda2ef4b1692fb4c5213ad4f1d082d0393bccc2c15d686e7e06d2d264c56e93048461e481e0807c4996d5d395e2ed6f58d4 SHA512 38f5a3ee1f3ca0f0601a5fcfeec3892cb34857d4b4720b8e018ca1beb6520c4c10af3bd2f0e4d64367cb256e8e2bca4d0a59b1c81fb36782613d2c258b64df59 diff --git a/dev-libs/libdatrie/libdatrie-0.2.13.ebuild b/dev-libs/libdatrie/libdatrie-0.2.13.ebuild new file mode 100644 index 000000000..fd41c3bf7 --- /dev/null +++ b/dev-libs/libdatrie/libdatrie-0.2.13.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Double-Array Trie Library" +HOMEPAGE="https://github.com/tlwg/libdatrie" + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/tlwg/${PN}.git" +else + SRC_URI="https://github.com/tlwg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" +fi + +LICENSE="LGPL-2.1" +SLOT="0" + +RDEPEND="" +DEPEND="${RDEPEND}" +BDEPEND="dev-vcs/git" + +src_prepare() { + default + # Fixed version if in non git project + echo ${PV} > VERSION + # From upstreams autogen.sh, to make it utilize the autotools eclass + # Here translate the autogen.sh, equivalent to the following code + # > sh autogen.sh + eautoheader + _elibtoolize --force + eaclocal + eautomake --add-missing + # Not allow git-version-gen does refresh + eautoconf +} diff --git a/dev-libs/libdatrie/metadata.xml b/dev-libs/libdatrie/metadata.xml new file mode 100644 index 000000000..8798cc9d0 --- /dev/null +++ b/dev-libs/libdatrie/metadata.xml @@ -0,0 +1,21 @@ + + + + + vowstar@gmail.com + Huang Rui + + + tlwg/libdatrie + + + This is an implementation of double-array structure for representing trie, + as proposed by Junichi Aoe. + Trie is a kind of digital search tree, an efficient indexing method in which + search time is independent of database size. It only takes O(m) search time, + where m is the length of the search string. Comparably as efficient as hashing, + trie also provides flexibility on incremental matching and key spelling + manipulation. This makes it ideal for lexical analyzers, as well as spelling + dictionaries. + +