Skip to content

Commit

Permalink
devel/cargo-about: New port: Rust: Cargo plugin to generate list of a…
Browse files Browse the repository at this point in the history
…ll licenses for a crate
  • Loading branch information
yurivict committed May 19, 2024
1 parent d3152e4 commit 8356542
Show file tree
Hide file tree
Showing 4 changed files with 735 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@
SUBDIR += capslock
SUBDIR += capstone
SUBDIR += capstone4
SUBDIR += cargo-about
SUBDIR += cargo-bloat
SUBDIR += cargo-c
SUBDIR += cargo-depgraph
Expand Down
261 changes: 261 additions & 0 deletions devel/cargo-about/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
PORTNAME= cargo-about
DISTVERSION= 0.6.1
CATEGORIES= devel

MAINTAINER= yuri@FreeBSD.org
COMMENT= Rust: Cargo plugin to generate list of all licenses for a crate
WWW= http://embark.rs

LICENSE= APACHE20 MIT
LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT

LIB_DEPENDS= libzstd.so:archivers/zstd

USES= cargo

USE_GITHUB= yes
GH_ACCOUNT= EmbarkStudios

CARGO_CRATES= addr2line-0.21.0 \
adler-1.0.2 \
aho-corasick-1.1.2 \
anstream-0.6.11 \
anstyle-1.0.4 \
anstyle-parse-0.2.3 \
anstyle-query-1.0.2 \
anstyle-wincon-3.0.2 \
anyhow-1.0.79 \
askalono-0.4.6 \
assert_cmd-2.0.13 \
assert_fs-1.1.1 \
autocfg-1.1.0 \
backtrace-0.3.69 \
base64-0.21.7 \
bitflags-1.3.2 \
bitflags-2.4.2 \
block-buffer-0.10.4 \
bstr-1.9.0 \
bumpalo-3.14.0 \
byteorder-1.5.0 \
bytes-1.5.0 \
camino-1.1.6 \
cargo-platform-0.1.6 \
cargo_metadata-0.18.1 \
cc-1.0.83 \
cd-0.2.1 \
cfg-expr-0.15.6 \
cfg-if-1.0.0 \
clap-4.4.18 \
clap_builder-4.4.18 \
clap_derive-4.4.7 \
clap_lex-0.6.0 \
codespan-0.11.1 \
codespan-reporting-0.11.1 \
colorchoice-1.0.0 \
core-foundation-0.9.4 \
core-foundation-sys-0.8.6 \
cpufeatures-0.2.12 \
crc32fast-1.3.2 \
crossbeam-deque-0.8.5 \
crossbeam-epoch-0.9.18 \
crossbeam-utils-0.8.19 \
crypto-common-0.1.6 \
deranged-0.3.11 \
difflib-0.4.0 \
digest-0.10.7 \
doc-comment-0.3.3 \
either-1.9.0 \
encoding_rs-0.8.33 \
equivalent-1.0.1 \
errno-0.3.8 \
fastrand-2.0.1 \
fern-0.6.2 \
fixedbitset-0.4.2 \
flate2-1.0.28 \
float-cmp-0.9.0 \
fnv-1.0.7 \
form_urlencoded-1.2.1 \
futures-channel-0.3.30 \
futures-core-0.3.30 \
futures-io-0.3.30 \
futures-sink-0.3.30 \
futures-task-0.3.30 \
futures-util-0.3.30 \
generic-array-0.14.7 \
getrandom-0.2.12 \
gimli-0.28.1 \
globset-0.4.14 \
globwalk-0.9.1 \
h2-0.3.24 \
handlebars-5.1.1 \
hashbrown-0.14.3 \
heck-0.4.1 \
hermit-abi-0.3.4 \
home-0.5.9 \
http-0.2.11 \
http-body-0.4.6 \
httparse-1.8.0 \
httpdate-1.0.3 \
hyper-0.14.28 \
hyper-rustls-0.24.2 \
idna-0.5.0 \
ignore-0.4.22 \
indexmap-2.1.0 \
ipnet-2.9.0 \
itoa-1.0.10 \
jobserver-0.1.27 \
js-sys-0.3.67 \
krates-0.16.4 \
lazy_static-1.4.0 \
libc-0.2.152 \
libmimalloc-sys-0.1.35 \
linux-raw-sys-0.4.13 \
lock_api-0.4.11 \
log-0.4.20 \
memchr-2.7.1 \
mimalloc-0.1.39 \
mime-0.3.17 \
miniz_oxide-0.7.1 \
mio-0.8.10 \
normalize-line-endings-0.3.0 \
nu-ansi-term-0.50.0 \
num-traits-0.2.17 \
num_cpus-1.16.0 \
object-0.32.2 \
once_cell-1.19.0 \
parking_lot-0.12.1 \
parking_lot_core-0.9.9 \
paste-1.0.14 \
percent-encoding-2.3.1 \
pest-2.7.6 \
pest_derive-2.7.6 \
pest_generator-2.7.6 \
pest_meta-2.7.6 \
petgraph-0.6.4 \
pin-project-lite-0.2.13 \
pin-utils-0.1.0 \
pkg-config-0.3.29 \
powerfmt-0.2.0 \
ppv-lite86-0.2.17 \
predicates-3.1.0 \
predicates-core-1.0.6 \
predicates-tree-1.0.9 \
proc-macro2-1.0.78 \
quote-1.0.35 \
rand-0.8.5 \
rand_chacha-0.3.1 \
rand_core-0.6.4 \
rayon-1.8.1 \
rayon-core-1.12.1 \
redox_syscall-0.4.1 \
regex-1.10.3 \
regex-automata-0.4.4 \
regex-syntax-0.8.2 \
reqwest-0.11.23 \
ring-0.17.7 \
rmp-0.8.12 \
rmp-serde-0.14.4 \
rustc-demangle-0.1.23 \
rustix-0.38.30 \
rustls-0.21.10 \
rustls-pemfile-1.0.4 \
rustls-webpki-0.101.7 \
ryu-1.0.16 \
same-file-1.0.6 \
scopeguard-1.2.0 \
sct-0.7.1 \
semver-1.0.21 \
serde-1.0.195 \
serde_derive-1.0.195 \
serde_json-1.0.111 \
serde_spanned-0.6.5 \
serde_urlencoded-0.7.1 \
sha2-0.10.8 \
slab-0.4.9 \
smallvec-1.13.1 \
socket2-0.5.5 \
spdx-0.10.3 \
spin-0.9.8 \
static_assertions-1.1.0 \
strsim-0.10.0 \
syn-2.0.48 \
system-configuration-0.5.1 \
system-configuration-sys-0.5.0 \
tempfile-3.9.0 \
termcolor-1.4.1 \
termtree-0.4.1 \
thiserror-1.0.56 \
thiserror-impl-1.0.56 \
time-0.3.31 \
time-core-0.1.2 \
tinyvec-1.6.0 \
tinyvec_macros-0.1.1 \
tokio-1.35.1 \
tokio-rustls-0.24.1 \
tokio-util-0.7.10 \
toml-0.8.8 \
toml_datetime-0.6.5 \
toml_edit-0.21.0 \
tower-service-0.3.2 \
tracing-0.1.40 \
tracing-core-0.1.32 \
try-lock-0.2.5 \
twox-hash-1.6.3 \
typenum-1.17.0 \
ucd-trie-0.1.6 \
unicode-bidi-0.3.15 \
unicode-ident-1.0.12 \
unicode-normalization-0.1.22 \
unicode-width-0.1.11 \
untrusted-0.9.0 \
url-2.5.0 \
utf8parse-0.2.1 \
version_check-0.9.4 \
wait-timeout-0.2.0 \
walkdir-2.4.0 \
want-0.3.1 \
wasi-0.11.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.90 \
wasm-bindgen-backend-0.2.90 \
wasm-bindgen-futures-0.4.40 \
wasm-bindgen-macro-0.2.90 \
wasm-bindgen-macro-support-0.2.90 \
wasm-bindgen-shared-0.2.90 \
web-sys-0.3.67 \
webpki-roots-0.25.3 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.6 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
windows-sys-0.48.0 \
windows-sys-0.52.0 \
windows-targets-0.48.5 \
windows-targets-0.52.0 \
windows_aarch64_gnullvm-0.48.5 \
windows_aarch64_gnullvm-0.52.0 \
windows_aarch64_msvc-0.48.5 \
windows_aarch64_msvc-0.52.0 \
windows_i686_gnu-0.48.5 \
windows_i686_gnu-0.52.0 \
windows_i686_msvc-0.48.5 \
windows_i686_msvc-0.52.0 \
windows_x86_64_gnu-0.48.5 \
windows_x86_64_gnu-0.52.0 \
windows_x86_64_gnullvm-0.48.5 \
windows_x86_64_gnullvm-0.52.0 \
windows_x86_64_msvc-0.48.5 \
windows_x86_64_msvc-0.52.0 \
winnow-0.5.34 \
winreg-0.50.0 \
zstd-0.11.2+zstd.1.5.2 \
zstd-safe-5.0.2+zstd.1.5.2 \
zstd-sys-2.0.9+zstd.1.5.5

PLIST_FILES= bin/${PORTNAME}

post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>

0 comments on commit 8356542

Please sign in to comment.