notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details on branch 2024Q3
py-Levenshtein Fast computation of Levenshtein distance and string similarity
0.22.0 devel on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: dvl@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-10-05 13:27:15
Last Update: 2024-10-05 13:25:53
Commit Hash: ac1b668
Also Listed In: python
License: GPLv2
WWW:
https://github.com/maxbachmann/Levenshtein
Description:
The Levenshtein Python C extension module contains functions for fast computation of: * Levenshtein (edit) distance, and edit operations * string similarity * approximate median strings, and generally string averaging * string sequence and set similarity
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}Levenshtein>0:devel/py-Levenshtein@${PY_FLAVOR}
To install the port:
cd /usr/ports/devel/py-Levenshtein/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-Levenshtein
  • pkg install py311-Levenshtein
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-Levenshtein listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-Levenshtein
Package flavors (<flavor>: <package>)
  • py311: py311-Levenshtein
distinfo:
TIMESTAMP = 1695813323 SHA256 (Levenshtein-0.22.0.tar.gz) = 86d285d770551cb648d4fcfe5243449a479e694e56b65272dc6cbda879012051 SIZE (Levenshtein-0.22.0.tar.gz) = 141819

No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-scikit-build>=0.13 : devel/py-scikit-build@py311
  2. py311-setuptools>=0 : devel/py-setuptools@py311
  3. cmake : devel/cmake-core
  4. python3.11 : lang/python311
  5. py311-build>=0 : devel/py-build@py311
  6. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-rapidfuzz>0 : devel/py-rapidfuzz@py311
  2. python3.11 : lang/python311
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
devel_py-Levenshtein
USES:
cmake:indirect python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/L/Levenshtein/
  2. https://pypi.org/packages/source/L/Levenshtein/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.22.0
05 Oct 2024 13:25:53
commit hash: ac1b668fc0c031a9e736a810b5b20665d7ca46c8commit hash: ac1b668fc0c031a9e736a810b5b20665d7ca46c8commit hash: ac1b668fc0c031a9e736a810b5b20665d7ca46c8commit hash: ac1b668fc0c031a9e736a810b5b20665d7ca46c8 files touched by this commit
Dimitry Andric (dim) search for other commits by this committer
devel/py-Levenshtein: fix build with libc++ 19

As noted in the libc++ 19 release notes [1], std::char_traits<> is now
only provided for char, char8_t, char16_t, char32_t and wchar_t, and any
instantiation for other types will fail.

This causes ports using devel/py-Levenshtein to fail to compile with
clang 19 and libc++ 19, resulting in errors similar to:

  /usr/include/c++/v1/string:820:42: error: implicit instantiation of undefined
template 'std::char_traits<unsigned int>'
    820 |   static_assert(is_same<_CharT, typename
traits_type::char_type>::value,
        |                                          ^
 
/wrkdirs/usr/ports/devel/py-Levenshtein/work-py311/Levenshtein-0.22.0/src/Levenshtein/Levenshtein-c/_levenshtein.hpp:144:43:
note: in instantiation of template class 'std::basic_string<unsigned int>'
requested here
    144 | static inline std::basic_string<uint32_t> lev_greedy_median(const
std::vector<RF_String>& strings,
        |                                           ^
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found: 1