textproc/py-unicode-segmentation-rs 0.3.3_2 FreeBSD
Unicode segmentation and width for Python using Rust
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
9c878207a1- License
- APACHE20
- Categories
- textproc, python
- Package size
- 211.2 KiB, 560.8 KiB installed
Description
Python bindings for the Rust unicode-segmentation and unicode-width crates, providing Unicode text segmentation and width calculation according to Unicode standards.
Features:
- Grapheme Cluster Segmentation: Split text into user-perceived characters
- Word Segmentation: Split text into words according to Unicode rules
- Sentence Segmentation: Split text into sentences
- Display Width Calculation: Get the display width of text (for terminal/monospace display)
- Gettext PO Wrapping: Wrap text for gettext PO files with proper handling of escape sequences and CJK characters
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/py-unicode-segmentation-rs | 0.3.3_2 |
| NetBSD | textproc/py-unicode-segmentation-rs | 0.3.3 |
Install
Binary package:
pkg install py312-unicode-segmentation-rs
From the ports tree:
cd /usr/ports/textproc/py-unicode-segmentation-rs/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-unicode-segmentation-rs>0:textproc/py-unicode-segmentation-rs
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.3.3_1 | 0.3.3_2 | - | - | 0.3.3_2 |
| FreeBSD:14:quarterly | 0.3.3_1 | 0.3.3_1 | n/a | - | 0.3.3_1 |
| FreeBSD:15:latest | 0.3.3_2 | 0.3.3_2 | n/a | - | - |
| FreeBSD:15:quarterly | 0.3.3_1 | 0.3.3_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.3.3_1 | 0.3.3_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}maturin>=1.14.0<2.0: devel/py-maturin
The full lists below include those, and their dependencies in turn.
Build dependencies 23
- archivers/brotli
- archivers/liblz4
- archivers/zstd
- devel/gettext-runtime
- devel/libffi
- devel/libunistring
- devel/py-build
- devel/py-installer
- devel/py-maturin
- devel/py-packaging
- devel/py-pyproject-hooks
- devel/readline
- dns/libidn2
- dns/libpsl
- ftp/curl
- lang/python312
- lang/python315
- lang/rust
- math/mpdecimal
- print/indexinfo
- security/libssh2
- textproc/expat2
- www/libnghttp2
Run dependencies 7
Required by 1
Configuration
No options to configure.
- USES
- cargo python
- Service scripts
- none
Files
distinfo 18
| File | Size | SHA256 |
|---|---|---|
| unicode_segmentation_rs-0.3.3.tar.gz | 34805 | d6625b2d3435ca814c9dd6590d39ae58ebeb8a4891eecb81446ad8b3e917f39b |
| rust/crates/heck-0.5.0.crate | 11517 | 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea |
| rust/crates/libc-0.2.189.crate | 851502 | 3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2 |
| rust/crates/once_cell-1.21.4.crate | 35010 | 9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50 |
| rust/crates/portable-atomic-1.14.0.crate | 200703 | 3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3 |
| rust/crates/proc-macro2-1.0.107.crate | 59588 | 985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9 |
| rust/crates/pyo3-0.29.2.crate | 1.255741e+06 | 4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b |
| rust/crates/pyo3-build-config-0.29.2.crate | 41104 | f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9 |
| rust/crates/pyo3-ffi-0.29.2.crate | 90029 | e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327 |
| rust/crates/pyo3-macros-0.29.2.crate | 9044 | 73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c |
| rust/crates/pyo3-macros-backend-0.29.2.crate | 93749 | 571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952 |
| rust/crates/quote-1.0.47.crate | 31622 | 1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001 |
| rust/crates/syn-2.0.119.crate | 307407 | 872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297 |
| rust/crates/target-lexicon-0.13.5.crate | 26928 | adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca |
| rust/crates/unicode-ident-1.0.24.crate | 49298 | e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75 |
| rust/crates/unicode-linebreak-0.1.5.crate | 15324 | 3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f |
| rust/crates/unicode-segmentation-1.13.3.crate | 112325 | c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8 |
| rust/crates/unicode-width-0.2.2.crate | 282768 | b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254 |
Master sites 1
- PYPI