devel/merve 1.2.2_4 FreeBSD
Fast C++ lexer for extracting named exports from CommonJS modules
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
221eab8bd7- License
- APACHE20, MIT
- Categories
- devel
- Package size
- 30.9 KiB, 83.5 KiB installed
Description
Merve is a fast C++ lexer for extracting named exports from CommonJS modules. This library performs static analysis to detect CommonJS export patterns without executing the code.
Features:
- Fast: Zero-copy parsing for most exports using std::string_view
- Accurate: Handles complex CommonJS patterns including re-exports, Object.defineProperty, and transpiler output
- Source Locations: Each export includes a 1-based line number for tooling integration
- Unicode Support: Properly unescapes JavaScript string literals including \u{XXXX} and surrogate pairs
- Optional SIMD Acceleration: Can use simdutf for faster string operations
- No Dependencies: Single-header distribution available (simdutf is optional)
- Cross-Platform: Works on Linux, macOS, and Windows
Install
Binary package:
pkg install merve
From the ports tree:
cd /usr/ports/devel/merve/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= merve>0:devel/merve
LIB_DEPENDS= libmerve.so:devel/merve
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 | 1.2.2_3 | 1.2.2_3 | - | - | 1.2.2_4 |
| FreeBSD:14:quarterly | 1.2.2_3 | 1.2.2_3 | n/a | - | 1.2.2_3 |
| FreeBSD:15:latest | 1.2.2_3 | 1.2.2_4 | n/a | - | - |
| FreeBSD:15:quarterly | 1.2.2_3 | 1.2.2_3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.2.2_3 | 1.2.2_4 | 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.
Library 1
libsimdutf.so: converters/simdutf
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- cmake compiler:c++20-lang localbase:ldflags
- Service scripts
- none
Files
pkg-plist 12
- include/merve.h
- include/merve/parser.h
- include/merve/version.h
- include/merve_c.h
- lib/cmake/merve/merve-config-version.cmake
- lib/cmake/merve/merve-config.cmake
- lib/cmake/merve/merve_targets-.cmake
- lib/cmake/merve/merve_targets.cmake
- lib/libmerve.so
- lib/libmerve.so.1
- lib/libmerve.so.
- libdata/pkgconfig/merve.pc
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| nodejs-merve-v1.2.2_GH0.tar.gz | 68511 | 8f19c2132447b9113545ffd399cb2bc1e61c6166743921b04883f8e1d778d69e |