e29b5eeec3
PR: 295694
388 lines
8.5 KiB
Makefile
388 lines
8.5 KiB
Makefile
PORTNAME= code2prompt
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 4.2.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= misc # machine-learning
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= CLI tool to convert your codebase into a LLM prompt
|
|
WWW= https://github.com/mufeedvh/code2prompt
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_i386= link fails: error: undefined symbol: __atomic_fetch_add_8, etc
|
|
|
|
BUILD_DEPENDS= gmake:devel/gmake
|
|
|
|
USES= cargo perl5
|
|
USE_PERL5= build
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= mufeedvh
|
|
|
|
CARGO_CRATES= adler2-2.0.1 \
|
|
aho-corasick-1.1.4 \
|
|
allocator-api2-0.2.21 \
|
|
android_system_properties-0.1.5 \
|
|
ansi_term-0.12.1 \
|
|
anstream-0.6.21 \
|
|
anstyle-1.0.13 \
|
|
anstyle-parse-0.2.7 \
|
|
anstyle-query-1.1.5 \
|
|
anstyle-wincon-3.0.11 \
|
|
anyhow-1.0.100 \
|
|
arboard-3.6.1 \
|
|
assert_cmd-2.1.1 \
|
|
autocfg-1.5.0 \
|
|
base64-0.22.1 \
|
|
bit-set-0.5.3 \
|
|
bit-vec-0.6.3 \
|
|
bitflags-2.10.0 \
|
|
block-buffer-0.10.4 \
|
|
bracoxide-0.1.7 \
|
|
bstr-1.12.1 \
|
|
bumpalo-3.19.0 \
|
|
bytemuck-1.24.0 \
|
|
byteorder-lite-0.1.0 \
|
|
bytes-1.11.0 \
|
|
cassowary-0.3.0 \
|
|
castaway-0.2.4 \
|
|
cc-1.2.49 \
|
|
cfg-if-1.0.4 \
|
|
chardetng-0.1.17 \
|
|
chrono-0.4.42 \
|
|
clap-4.5.53 \
|
|
clap_builder-4.5.53 \
|
|
clap_derive-4.5.49 \
|
|
clap_lex-0.7.6 \
|
|
clipboard-win-5.4.1 \
|
|
colorchoice-1.0.4 \
|
|
colored-3.0.0 \
|
|
compact_str-0.8.1 \
|
|
console-0.16.1 \
|
|
content_inspector-0.2.4 \
|
|
convert_case-0.10.0 \
|
|
core-foundation-sys-0.8.7 \
|
|
cpufeatures-0.2.17 \
|
|
crc32fast-1.5.0 \
|
|
crossbeam-deque-0.8.6 \
|
|
crossbeam-epoch-0.9.18 \
|
|
crossbeam-utils-0.8.21 \
|
|
crossterm-0.28.1 \
|
|
crossterm-0.29.0 \
|
|
crossterm_winapi-0.9.1 \
|
|
crunchy-0.2.4 \
|
|
crypto-common-0.1.7 \
|
|
csv-1.4.0 \
|
|
csv-core-0.1.13 \
|
|
darling-0.20.11 \
|
|
darling_core-0.20.11 \
|
|
darling_macro-0.20.11 \
|
|
derive_builder-0.20.2 \
|
|
derive_builder_core-0.20.2 \
|
|
derive_builder_macro-0.20.2 \
|
|
derive_more-2.1.0 \
|
|
derive_more-impl-2.1.0 \
|
|
difflib-0.4.0 \
|
|
digest-0.10.7 \
|
|
dirs-6.0.0 \
|
|
dirs-sys-0.5.0 \
|
|
dispatch2-0.3.0 \
|
|
displaydoc-0.2.5 \
|
|
document-features-0.2.12 \
|
|
downcast-rs-1.2.1 \
|
|
dyn-clone-1.0.20 \
|
|
either-1.15.0 \
|
|
encode_unicode-1.0.0 \
|
|
encoding_rs-0.8.35 \
|
|
env_filter-0.1.4 \
|
|
env_logger-0.11.8 \
|
|
equivalent-1.0.2 \
|
|
errno-0.3.14 \
|
|
error-code-3.3.2 \
|
|
fancy-regex-0.13.0 \
|
|
fastrand-2.3.0 \
|
|
fax-0.2.6 \
|
|
fax_derive-0.2.0 \
|
|
fdeflate-0.3.7 \
|
|
find-msvc-tools-0.1.5 \
|
|
fixedbitset-0.5.7 \
|
|
flate2-1.1.5 \
|
|
float-cmp-0.10.0 \
|
|
fnv-1.0.7 \
|
|
foldhash-0.1.5 \
|
|
form_urlencoded-1.2.2 \
|
|
futures-core-0.3.31 \
|
|
futures-macro-0.3.31 \
|
|
futures-task-0.3.31 \
|
|
futures-timer-3.0.3 \
|
|
futures-util-0.3.31 \
|
|
fuzzy-matcher-0.3.7 \
|
|
generic-array-0.14.7 \
|
|
gethostname-1.1.0 \
|
|
getrandom-0.2.16 \
|
|
getrandom-0.3.4 \
|
|
git2-0.20.3 \
|
|
glob-0.3.3 \
|
|
globset-0.4.18 \
|
|
half-2.7.1 \
|
|
handlebars-6.3.2 \
|
|
hashbrown-0.15.5 \
|
|
hashbrown-0.16.1 \
|
|
heck-0.5.0 \
|
|
iana-time-zone-0.1.64 \
|
|
iana-time-zone-haiku-0.1.2 \
|
|
icu_collections-2.1.1 \
|
|
icu_locale_core-2.1.1 \
|
|
icu_normalizer-2.1.1 \
|
|
icu_normalizer_data-2.1.1 \
|
|
icu_properties-2.1.2 \
|
|
icu_properties_data-2.1.2 \
|
|
icu_provider-2.1.1 \
|
|
ident_case-1.0.1 \
|
|
idna-1.1.0 \
|
|
idna_adapter-1.2.1 \
|
|
ignore-0.4.25 \
|
|
image-0.25.9 \
|
|
indexmap-2.12.1 \
|
|
indicatif-0.18.3 \
|
|
indoc-2.0.7 \
|
|
inquire-0.9.1 \
|
|
instability-0.3.10 \
|
|
is_terminal_polyfill-1.70.2 \
|
|
itertools-0.13.0 \
|
|
itoa-1.0.15 \
|
|
jiff-0.2.16 \
|
|
jiff-static-0.2.16 \
|
|
jobserver-0.1.34 \
|
|
js-sys-0.3.83 \
|
|
lazy_static-1.5.0 \
|
|
libc-0.2.178 \
|
|
libgit2-sys-0.18.3+1.9.2 \
|
|
libredox-0.1.10 \
|
|
libz-sys-1.1.23 \
|
|
linux-raw-sys-0.4.15 \
|
|
linux-raw-sys-0.11.0 \
|
|
litemap-0.8.1 \
|
|
litrs-1.0.0 \
|
|
lock_api-0.4.14 \
|
|
log-0.4.29 \
|
|
lru-0.12.5 \
|
|
lscolors-0.21.0 \
|
|
memchr-2.7.6 \
|
|
memoffset-0.9.1 \
|
|
miniz_oxide-0.8.9 \
|
|
mio-1.1.1 \
|
|
moxcms-0.7.10 \
|
|
nom-8.0.0 \
|
|
normalize-line-endings-0.3.0 \
|
|
nu-ansi-term-0.50.3 \
|
|
num-modular-0.6.1 \
|
|
num-order-1.2.0 \
|
|
num-traits-0.2.19 \
|
|
objc2-0.6.3 \
|
|
objc2-app-kit-0.3.2 \
|
|
objc2-core-foundation-0.3.2 \
|
|
objc2-core-graphics-0.3.2 \
|
|
objc2-encode-4.1.0 \
|
|
objc2-foundation-0.3.2 \
|
|
objc2-io-surface-0.3.2 \
|
|
once_cell-1.21.3 \
|
|
once_cell_polyfill-1.70.2 \
|
|
openssl-probe-0.1.6 \
|
|
openssl-src-300.5.4+3.5.4 \
|
|
openssl-sys-0.9.111 \
|
|
option-ext-0.2.0 \
|
|
os_pipe-1.2.3 \
|
|
parking_lot-0.12.5 \
|
|
parking_lot_core-0.9.12 \
|
|
paste-1.0.15 \
|
|
percent-encoding-2.3.2 \
|
|
pest-2.8.4 \
|
|
pest_derive-2.8.4 \
|
|
pest_generator-2.8.4 \
|
|
pest_meta-2.8.4 \
|
|
petgraph-0.8.3 \
|
|
pin-project-lite-0.2.16 \
|
|
pin-utils-0.1.0 \
|
|
pkg-config-0.3.32 \
|
|
png-0.18.0 \
|
|
portable-atomic-1.11.1 \
|
|
portable-atomic-util-0.2.4 \
|
|
potential_utf-0.1.4 \
|
|
predicates-3.1.3 \
|
|
predicates-core-1.0.9 \
|
|
predicates-tree-1.0.12 \
|
|
proc-macro-crate-3.4.0 \
|
|
proc-macro2-1.0.103 \
|
|
pxfm-0.1.27 \
|
|
pyo3-0.27.2 \
|
|
pyo3-build-config-0.27.2 \
|
|
pyo3-ffi-0.27.2 \
|
|
pyo3-macros-0.27.2 \
|
|
pyo3-macros-backend-0.27.2 \
|
|
quick-error-2.0.1 \
|
|
quick-xml-0.37.5 \
|
|
quote-1.0.42 \
|
|
r-efi-5.3.0 \
|
|
ratatui-0.29.0 \
|
|
rayon-1.11.0 \
|
|
rayon-core-1.13.0 \
|
|
redox_syscall-0.5.18 \
|
|
redox_users-0.5.2 \
|
|
regex-1.12.2 \
|
|
regex-automata-0.4.13 \
|
|
regex-syntax-0.8.8 \
|
|
relative-path-1.9.3 \
|
|
rstest-0.26.1 \
|
|
rstest_macros-0.26.1 \
|
|
rustc-hash-1.1.0 \
|
|
rustc_version-0.4.1 \
|
|
rustix-0.38.44 \
|
|
rustix-1.1.2 \
|
|
rustversion-1.0.22 \
|
|
ryu-1.0.20 \
|
|
same-file-1.0.6 \
|
|
scopeguard-1.2.0 \
|
|
semver-1.0.27 \
|
|
serde-1.0.228 \
|
|
serde_core-1.0.228 \
|
|
serde_derive-1.0.228 \
|
|
serde_json-1.0.145 \
|
|
serde_spanned-1.0.3 \
|
|
sha2-0.10.9 \
|
|
shlex-1.3.0 \
|
|
signal-hook-0.3.18 \
|
|
signal-hook-mio-0.2.5 \
|
|
signal-hook-registry-1.4.7 \
|
|
simd-adler32-0.3.8 \
|
|
slab-0.4.11 \
|
|
smallvec-1.15.1 \
|
|
socket2-0.6.1 \
|
|
stable_deref_trait-1.2.1 \
|
|
static_assertions-1.1.0 \
|
|
strsim-0.11.1 \
|
|
strum-0.26.3 \
|
|
strum_macros-0.26.4 \
|
|
syn-2.0.111 \
|
|
synstructure-0.13.2 \
|
|
target-lexicon-0.13.3 \
|
|
tempfile-3.23.0 \
|
|
terminal_size-0.4.3 \
|
|
termtree-0.5.1 \
|
|
thiserror-2.0.17 \
|
|
thiserror-impl-2.0.17 \
|
|
thread_local-1.1.9 \
|
|
tiff-0.10.3 \
|
|
tiktoken-rs-0.9.1 \
|
|
tinystr-0.8.2 \
|
|
tokio-1.48.0 \
|
|
tokio-macros-2.6.0 \
|
|
toml-0.9.8 \
|
|
toml_datetime-0.7.3 \
|
|
toml_edit-0.23.9 \
|
|
toml_parser-1.0.4 \
|
|
toml_writer-1.0.4 \
|
|
tree_magic_mini-3.2.2 \
|
|
tui-textarea-0.7.0 \
|
|
tui-tree-widget-0.23.1 \
|
|
typenum-1.19.0 \
|
|
ucd-trie-0.1.7 \
|
|
unicode-ident-1.0.22 \
|
|
unicode-segmentation-1.12.0 \
|
|
unicode-truncate-1.1.0 \
|
|
unicode-width-0.1.14 \
|
|
unicode-width-0.2.0 \
|
|
unindent-0.2.4 \
|
|
unit-prefix-0.5.2 \
|
|
url-2.5.7 \
|
|
utf8_iter-1.0.4 \
|
|
utf8parse-0.2.2 \
|
|
vcpkg-0.2.15 \
|
|
version_check-0.9.5 \
|
|
wait-timeout-0.2.1 \
|
|
walkdir-2.5.0 \
|
|
wasi-0.11.1+wasi-snapshot-preview1 \
|
|
wasip2-1.0.1+wasi-0.2.4 \
|
|
wasm-bindgen-0.2.106 \
|
|
wasm-bindgen-macro-0.2.106 \
|
|
wasm-bindgen-macro-support-0.2.106 \
|
|
wasm-bindgen-shared-0.2.106 \
|
|
wayland-backend-0.3.11 \
|
|
wayland-client-0.31.11 \
|
|
wayland-protocols-0.32.9 \
|
|
wayland-protocols-wlr-0.3.9 \
|
|
wayland-scanner-0.31.7 \
|
|
wayland-sys-0.31.7 \
|
|
web-time-1.1.0 \
|
|
weezl-0.1.12 \
|
|
winapi-0.3.9 \
|
|
winapi-i686-pc-windows-gnu-0.4.0 \
|
|
winapi-util-0.1.11 \
|
|
winapi-x86_64-pc-windows-gnu-0.4.0 \
|
|
windows-core-0.62.2 \
|
|
windows-implement-0.60.2 \
|
|
windows-interface-0.59.3 \
|
|
windows-link-0.2.1 \
|
|
windows-result-0.4.1 \
|
|
windows-strings-0.5.1 \
|
|
windows-sys-0.59.0 \
|
|
windows-sys-0.60.2 \
|
|
windows-sys-0.61.2 \
|
|
windows-targets-0.52.6 \
|
|
windows-targets-0.53.5 \
|
|
windows_aarch64_gnullvm-0.52.6 \
|
|
windows_aarch64_gnullvm-0.53.1 \
|
|
windows_aarch64_msvc-0.52.6 \
|
|
windows_aarch64_msvc-0.53.1 \
|
|
windows_i686_gnu-0.52.6 \
|
|
windows_i686_gnu-0.53.1 \
|
|
windows_i686_gnullvm-0.52.6 \
|
|
windows_i686_gnullvm-0.53.1 \
|
|
windows_i686_msvc-0.52.6 \
|
|
windows_i686_msvc-0.53.1 \
|
|
windows_x86_64_gnu-0.52.6 \
|
|
windows_x86_64_gnu-0.53.1 \
|
|
windows_x86_64_gnullvm-0.52.6 \
|
|
windows_x86_64_gnullvm-0.53.1 \
|
|
windows_x86_64_msvc-0.52.6 \
|
|
windows_x86_64_msvc-0.53.1 \
|
|
winnow-0.7.14 \
|
|
wit-bindgen-0.46.0 \
|
|
wl-clipboard-rs-0.9.2 \
|
|
writeable-0.6.2 \
|
|
x11rb-0.13.2 \
|
|
x11rb-protocol-0.13.2 \
|
|
yoke-0.8.1 \
|
|
yoke-derive-0.8.1 \
|
|
zerocopy-0.8.31 \
|
|
zerocopy-derive-0.8.31 \
|
|
zerofrom-0.1.6 \
|
|
zerofrom-derive-0.1.6 \
|
|
zerotrie-0.2.3 \
|
|
zerovec-0.11.5 \
|
|
zerovec-derive-0.11.2 \
|
|
zune-core-0.4.12 \
|
|
zune-jpeg-0.4.21
|
|
|
|
OPENSSLINC= /usr/include
|
|
OPENSSLLIB= /usr/lib
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc
|
|
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
|
|
LDFLAGS+= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic
|
|
.endif
|
|
|
|
do-install:
|
|
# workaround for error: found a virtual manifest at `xx` instead of a package manifest
|
|
${INSTALL_PROGRAM} \
|
|
${WRKDIR}/target/release/${PORTNAME} \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|