Skip to content

Commit

Permalink
math/fend: New port: Arbitrary-precision unit-aware calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Dec 10, 2023
1 parent 4067f85 commit 28833a6
Show file tree
Hide file tree
Showing 4 changed files with 411 additions and 0 deletions.
1 change: 1 addition & 0 deletions math/Makefile
Expand Up @@ -322,6 +322,7 @@
SUBDIR += fastops
SUBDIR += fcl
SUBDIR += fcl05
SUBDIR += fend
SUBDIR += fenics-basix
SUBDIR += fflas-ffpack
SUBDIR += fftw
Expand Down
152 changes: 152 additions & 0 deletions math/fend/Makefile
@@ -0,0 +1,152 @@
PORTNAME= fend
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.3-2
DISTVERSIONSUFFIX= -g2d731f1
CATEGORIES= math

MAINTAINER= yuri@FreeBSD.org
COMMENT= Arbitrary-precision unit-aware calculator
WWW= https://printfn.github.io/fend

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md

USES= cargo

USE_GITHUB= yes
GH_ACCOUNT= printfn

CARGO_CRATES= base64-0.21.5 \
bitflags-1.3.2 \
bitflags-2.4.1 \
bumpalo-3.14.0 \
cc-1.0.83 \
cfg-if-1.0.0 \
clipboard-win-5.0.0 \
console-0.15.7 \
core-foundation-0.9.4 \
core-foundation-sys-0.8.6 \
ctrlc-3.4.1 \
encode_unicode-0.3.6 \
endian-type-0.1.2 \
equivalent-1.0.1 \
errno-0.3.8 \
error-code-3.0.0 \
fastrand-2.0.1 \
fd-lock-4.0.1 \
foreign-types-0.3.2 \
foreign-types-shared-0.1.1 \
form_urlencoded-1.2.1 \
getrandom-0.2.11 \
hashbrown-0.14.3 \
home-0.5.5 \
idna-0.5.0 \
indexmap-2.1.0 \
instant-0.1.12 \
js-sys-0.3.66 \
lazy_static-1.4.0 \
libc-0.2.150 \
linux-raw-sys-0.4.12 \
log-0.4.20 \
memchr-2.6.4 \
native-tls-0.2.11 \
nibble_vec-0.1.0 \
nix-0.27.1 \
once_cell-1.19.0 \
openssl-0.10.61 \
openssl-macros-0.1.1 \
openssl-probe-0.1.5 \
openssl-sys-0.9.97 \
percent-encoding-2.3.1 \
pkg-config-0.3.27 \
ppv-lite86-0.2.17 \
proc-macro2-1.0.70 \
quote-1.0.33 \
radix_trie-0.2.1 \
rand-0.8.5 \
rand_chacha-0.3.1 \
rand_core-0.6.4 \
redox_syscall-0.4.1 \
ring-0.17.7 \
rustix-0.38.27 \
rustls-0.21.9 \
rustls-webpki-0.101.7 \
rustyline-13.0.0 \
schannel-0.1.22 \
sct-0.7.1 \
security-framework-2.9.2 \
security-framework-sys-2.9.1 \
serde-1.0.193 \
serde_derive-1.0.193 \
serde_spanned-0.6.4 \
smallvec-1.11.2 \
spin-0.9.8 \
syn-2.0.39 \
tempfile-3.8.1 \
tinyvec-1.6.0 \
tinyvec_macros-0.1.1 \
toml-0.8.8 \
toml_datetime-0.6.5 \
toml_edit-0.21.0 \
unicode-bidi-0.3.14 \
unicode-ident-1.0.12 \
unicode-normalization-0.1.22 \
unicode-segmentation-1.10.1 \
unicode-width-0.1.11 \
untrusted-0.9.0 \
ureq-2.9.1 \
url-2.5.0 \
utf8parse-0.2.1 \
vcpkg-0.2.15 \
wasi-0.11.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.89 \
wasm-bindgen-backend-0.2.89 \
wasm-bindgen-macro-0.2.89 \
wasm-bindgen-macro-support-0.2.89 \
wasm-bindgen-shared-0.2.89 \
web-sys-0.3.66 \
webpki-roots-0.25.3 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
windows-sys-0.45.0 \
windows-sys-0.48.0 \
windows-sys-0.52.0 \
windows-targets-0.42.2 \
windows-targets-0.48.5 \
windows-targets-0.52.0 \
windows_aarch64_gnullvm-0.42.2 \
windows_aarch64_gnullvm-0.48.5 \
windows_aarch64_gnullvm-0.52.0 \
windows_aarch64_msvc-0.42.2 \
windows_aarch64_msvc-0.48.5 \
windows_aarch64_msvc-0.52.0 \
windows_i686_gnu-0.42.2 \
windows_i686_gnu-0.48.5 \
windows_i686_gnu-0.52.0 \
windows_i686_msvc-0.42.2 \
windows_i686_msvc-0.48.5 \
windows_i686_msvc-0.52.0 \
windows_x86_64_gnu-0.42.2 \
windows_x86_64_gnu-0.48.5 \
windows_x86_64_gnu-0.52.0 \
windows_x86_64_gnullvm-0.42.2 \
windows_x86_64_gnullvm-0.48.5 \
windows_x86_64_gnullvm-0.52.0 \
windows_x86_64_msvc-0.42.2 \
windows_x86_64_msvc-0.48.5 \
windows_x86_64_msvc-0.52.0 \
winnow-0.5.26

OPENSSLINC= /usr/include
OPENSSLLIB= /usr/lib

PLIST_FILES= bin/${PORTNAME}

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/${PORTNAME}

.include <bsd.port.mk>

0 comments on commit 28833a6

Please sign in to comment.