From nobody Wed Oct 30 06:29:29 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xdcff12y8z5blND; Wed, 30 Oct 2024 06:29:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xdcff0K6sz3y2V; Wed, 30 Oct 2024 06:29:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730269770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O/kZ1QvxAykkAL++rcyWmfOZdfUKZILS2OiVj+jtPC4=; b=eP91B/RpQARxomDprmET5L4xp46rY79owu5PXiC6s3LLWw8M/xiaEb4D8O7Yy+mr+99xJS Uo7uO9Y0IerpM9RbeuR0LG5EOc+Gg3xndXt0zETvZpPRjkbEQZHlAsZUNv5I5rLSfEuQPj /1QuzE2F/otLHeEMCST8llTkXGQb5GWW7RZl0aNueYRAwhvpb6r//DVfnAxuynt+QTmTXU hmZeW3U/NXH1MCimIhyemMZhSvc0mmeh9COomv894Sb/S7xtwVDocOsgaqZGYaU1Tu76v5 4pbERtt8+Y9TEcyBE1BrEuUqKjruSH7xaRvsNb0CV0k6ExHMqnnUbMAE4mXEeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730269770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O/kZ1QvxAykkAL++rcyWmfOZdfUKZILS2OiVj+jtPC4=; b=q038UXhsQ2wbGVL9uyPps3SuksW7dq5QX/8gnMdN638lU6U8R2wvddHncKn8D4daXhQ6bU j7VeoypZqk0cbRDPO1g0T+g38VujJ3/dOLsGloj+pbuZipV7jzbNRQfz97X3EuRS4AQjuH NqKMzulo+c+FlwfRDRB8BuRhGyiw3vA8qOS8hhEomFaeKAcllJSa/kw8xzMTMsvC/Lmibr 6aYy3WDn5mJWD4PaMlFoH3wjtKeyoiXTWpHggDt/c37C37y6mIIxRvHVMsKOHIS1Zma++v OKKMXHmAuoUyLcFqr44I2Vw/9HFfQ1R6+p5cpRZx2ZmCE95ipLlA4B9DtCv4Jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730269770; a=rsa-sha256; cv=none; b=l0zAU2gbS8RNoP236u65wmII4piE4mmxIzFySvgDuS2V38O9YG+seSTULqBdTaViKHd2ob 41s/Nisa2eU2LBwiRAtjDROpHczq/2OrIjZgcQW3PoQuK7cHWO/8IGYNUcaEPTK6wWpzsH 3xyA1IwNkcmovJsBCrGqvyZZWUvB3PichySdncvmttA8MvQVF0kDVBrQwYHhdxaD1W3uAa yFtRgeaCEVmYAxt0AkCQ2POGwzMbzsMwivHQp9xx3Ay+RbKr2tps7uNH2PDsTStx/b3/Rj wO9JZDKAjNOAOK8CrMLXi8tSor4x9MfCIdX/3f8qL/42/HJVgTmqK63QpBl+MQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xdcfd72L9zwNw; Wed, 30 Oct 2024 06:29:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49U6TThj019058; Wed, 30 Oct 2024 06:29:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49U6TTBU019055; Wed, 30 Oct 2024 06:29:29 GMT (envelope-from git) Date: Wed, 30 Oct 2024 06:29:29 GMT Message-Id: <202410300629.49U6TTBU019055@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 56754f5095c9 - main - devel/stringzilla: New port: SIMD-accelerated string search/sort/hashes/fingerprints/edit distances List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56754f5095c9d0c26c0b5cd4dd1327a09a0b3f61 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=56754f5095c9d0c26c0b5cd4dd1327a09a0b3f61 commit 56754f5095c9d0c26c0b5cd4dd1327a09a0b3f61 Author: Yuri Victorovich AuthorDate: 2024-10-30 05:49:35 +0000 Commit: Yuri Victorovich CommitDate: 2024-10-30 06:29:19 +0000 devel/stringzilla: New port: SIMD-accelerated string search/sort/hashes/fingerprints/edit distances --- devel/Makefile | 1 + devel/stringzilla/Makefile | 37 +++++++++++++++++++++++++++++++++++++ devel/stringzilla/distinfo | 3 +++ devel/stringzilla/pkg-descr | 7 +++++++ devel/stringzilla/pkg-plist | 10 ++++++++++ 5 files changed, 58 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 0b24f1ce483f..0d3703eed2fc 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -8121,6 +8121,7 @@ SUBDIR += str SUBDIR += string_theory SUBDIR += stringencoders + SUBDIR += stringzilla SUBDIR += stuffbin SUBDIR += stxxl SUBDIR += stylua diff --git a/devel/stringzilla/Makefile b/devel/stringzilla/Makefile new file mode 100644 index 000000000000..b1d32fd0574c --- /dev/null +++ b/devel/stringzilla/Makefile @@ -0,0 +1,37 @@ +PORTNAME= stringzilla +DISTVERSIONPREFIX= v +DISTVERSION= 3.10.6 +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= SIMD-accelerated string search/sort/hashes/fingerprints/edit distances +WWW= https://ashvardanian.com/posts/stringzilla/ \ + https://github.com/ashvardanian/stringzilla + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= aarch64 amd64 i386 + +USES= cmake +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= ashvardanian +GH_PROJECT= StringZilla + +CMAKE_ON= STRINGZILLA_INSTALL +CMAKE_ARGS= -DSTRINGZILLA_INCLUDE_INSTALL_DIR=include + +post-install: # https://github.com/ashvardanian/StringZilla/issues/188 + ${INSTALL_LIB} ${BUILD_WRKSRC}/libstringzilla_shared.so.3.10.6 ${STAGEDIR}${PREFIX}/lib + ${INSTALL_LIB} ${BUILD_WRKSRC}/libstringzillite.so.3.10.6 ${STAGEDIR}${PREFIX}/lib + @cd ${STAGEDIR}${PREFIX}/lib && \ + ${LN} -s libstringzilla_shared.so.3.10.6 libstringzilla_shared.so.1 && \ + ${LN} -s libstringzilla_shared.so.1 libstringzilla_shared.so + @cd ${STAGEDIR}${PREFIX}/lib && \ + ${LN} -s libstringzillite.so.3.10.6 libstringzillite.so.1 && \ + ${LN} -s libstringzillite.so.1 libstringzillite.so + +.include diff --git a/devel/stringzilla/distinfo b/devel/stringzilla/distinfo new file mode 100644 index 000000000000..d8871fc38102 --- /dev/null +++ b/devel/stringzilla/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730266009 +SHA256 (ashvardanian-StringZilla-v3.10.6_GH0.tar.gz) = 041d122d4defc79b0d007ceb136ac3c72c9eb8797b28487b446e9710bd836e78 +SIZE (ashvardanian-StringZilla-v3.10.6_GH0.tar.gz) = 255125 diff --git a/devel/stringzilla/pkg-descr b/devel/stringzilla/pkg-descr new file mode 100644 index 000000000000..ec4703ce1e73 --- /dev/null +++ b/devel/stringzilla/pkg-descr @@ -0,0 +1,7 @@ +StringZilla is the GodZilla of string libraries, using SIMD and SWAR to +accelerate string operations on modern CPUs. It is up to 10x faster than the +default and even other SIMD-accelerated string libraries in C, C++, Python, +and other languages, while covering broad functionality. It accelerates exact +and fuzzy string matching, edit distance computations, sorting, +lazily-evaluated ranges to avoid memory allocations, and even random-string +generators. diff --git a/devel/stringzilla/pkg-plist b/devel/stringzilla/pkg-plist new file mode 100644 index 000000000000..0a0a09fe14ef --- /dev/null +++ b/devel/stringzilla/pkg-plist @@ -0,0 +1,10 @@ +include/stringzilla/drafts.h +include/stringzilla/module.modulemap +include/stringzilla/stringzilla.h +include/stringzilla/stringzilla.hpp +lib/libstringzilla_shared.so +lib/libstringzilla_shared.so.1 +lib/libstringzilla_shared.so.3.10.6 +lib/libstringzillite.so +lib/libstringzillite.so.1 +lib/libstringzillite.so.3.10.6