Skip to content

Commit

Permalink
www/py-qh3: New port: Lightway and fast implementation of QUIC and HT…
Browse files Browse the repository at this point in the history
…TP/3
  • Loading branch information
yurivict committed Jun 19, 2024
1 parent 20f7942 commit e67ab45
Show file tree
Hide file tree
Showing 4 changed files with 588 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,7 @@
SUBDIR += py-pyweblib
SUBDIR += py-pywikibot
SUBDIR += py-pywry
SUBDIR += py-qh3
SUBDIR += py-qt5-webengine
SUBDIR += py-qt6-webengine
SUBDIR += py-quilt3
Expand Down
217 changes: 217 additions & 0 deletions www/py-qh3/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
PORTNAME= qh3
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.8
CATEGORIES= www python
#MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Lightway and fast implementation of QUIC and HTTP/3
WWW= https://qh3.readthedocs.io/en/latest/

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}maturin>=1.2:devel/py-maturin@${PY_FLAVOR} \
bash:shells/bash \
cmake:devel/cmake-core

USES= cargo llvm:build python shebangfix
USE_PYTHON= pep517 autoplist pytest # tests fail to run because they can't find qh3._hazmat for some reason

USE_GITHUB= yes
GH_ACCOUNT= jawah
GH_TUPLE= litespeedtech:ls-qpack:8ff2bf6:ls_qpack/../ls-qpack-rs-86a836850b45593a1635e757439e291214573828/ls-qpack-sys/deps/ls-qpack # workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279865

SHEBANG_GLOB= *.sh

CARGO_CRATES= aead-0.5.2 \
aes-0.8.4 \
aho-corasick-1.1.3 \
asn1-rs-0.6.1 \
asn1-rs-derive-0.5.0 \
asn1-rs-impl-0.2.0 \
autocfg-1.2.0 \
aws-lc-fips-sys-0.12.7 \
aws-lc-rs-1.7.3 \
aws-lc-sys-0.18.0 \
base64-0.22.0 \
base64ct-1.6.0 \
bindgen-0.66.1 \
bindgen-0.69.4 \
bitflags-1.3.2 \
bitflags-2.5.0 \
block-buffer-0.10.4 \
block-padding-0.3.3 \
byteorder-1.5.0 \
cbc-0.1.2 \
cc-1.0.90 \
cexpr-0.6.0 \
cfg-if-1.0.0 \
chacha20-0.9.1 \
chacha20poly1305-0.10.1 \
cipher-0.4.4 \
clang-sys-1.7.0 \
cmake-0.1.50 \
const-oid-0.9.6 \
cpufeatures-0.2.12 \
crypto-common-0.1.6 \
curve25519-dalek-4.1.2 \
curve25519-dalek-derive-0.1.1 \
data-encoding-2.5.0 \
der-0.7.9 \
der-parser-9.0.0 \
der_derive-0.7.2 \
deranged-0.3.11 \
digest-0.10.7 \
displaydoc-0.2.4 \
dsa-0.6.3 \
dunce-1.0.4 \
ed25519-2.2.3 \
ed25519-dalek-2.1.1 \
either-1.10.0 \
errno-0.3.8 \
fiat-crypto-0.2.7 \
flagset-0.4.5 \
fs_extra-1.3.0 \
generic-array-0.14.7 \
getrandom-0.2.13 \
glob-0.3.1 \
heck-0.4.1 \
hmac-0.12.1 \
home-0.5.9 \
indoc-2.0.5 \
inout-0.1.3 \
itertools-0.12.1 \
itoa-1.0.11 \
jobserver-0.1.30 \
lazy_static-1.4.0 \
lazycell-1.3.0 \
libc-0.2.153 \
libloading-0.8.3 \
libm-0.2.8 \
linux-raw-sys-0.4.13 \
lock_api-0.4.11 \
log-0.4.21 \
memchr-2.7.2 \
memoffset-0.9.1 \
minimal-lexical-0.2.1 \
mirai-annotations-1.12.0 \
nom-7.1.3 \
num-bigint-0.4.4 \
num-bigint-dig-0.8.4 \
num-conv-0.1.0 \
num-integer-0.1.46 \
num-iter-0.1.44 \
num-traits-0.2.18 \
oid-registry-0.7.0 \
once_cell-1.19.0 \
opaque-debug-0.3.1 \
parking_lot-0.12.1 \
parking_lot_core-0.9.9 \
paste-1.0.14 \
pbkdf2-0.12.2 \
peeking_take_while-0.1.2 \
pem-rfc7468-0.7.0 \
pkcs1-0.7.5 \
pkcs5-0.7.1 \
pkcs8-0.10.2 \
platforms-3.4.0 \
poly1305-0.8.0 \
portable-atomic-1.6.0 \
powerfmt-0.2.0 \
ppv-lite86-0.2.17 \
prettyplease-0.2.17 \
proc-macro2-1.0.79 \
pyo3-0.20.3 \
pyo3-build-config-0.20.3 \
pyo3-ffi-0.20.3 \
pyo3-macros-0.20.3 \
pyo3-macros-backend-0.20.3 \
quote-1.0.35 \
rand-0.8.5 \
rand_chacha-0.3.1 \
rand_core-0.6.4 \
redox_syscall-0.4.1 \
regex-1.10.4 \
regex-automata-0.4.6 \
regex-syntax-0.8.3 \
rfc6979-0.4.0 \
ring-0.17.8 \
rsa-0.9.6 \
rustc-hash-1.1.0 \
rustc_version-0.4.0 \
rusticata-macros-4.1.0 \
rustix-0.38.32 \
rustls-0.23.8 \
rustls-pemfile-2.1.2 \
rustls-pki-types-1.7.0 \
rustls-webpki-0.102.4 \
salsa20-0.10.2 \
scopeguard-1.2.0 \
scrypt-0.11.0 \
semver-1.0.22 \
serde-1.0.197 \
serde_derive-1.0.197 \
sha1-0.10.6 \
sha2-0.10.8 \
shlex-1.3.0 \
signature-2.2.0 \
smallvec-1.13.2 \
spin-0.5.2 \
spin-0.9.8 \
spki-0.7.3 \
subtle-2.5.0 \
syn-2.0.58 \
synstructure-0.13.1 \
target-lexicon-0.12.14 \
thiserror-1.0.58 \
thiserror-impl-1.0.58 \
time-0.3.34 \
time-core-0.1.2 \
time-macros-0.2.17 \
tls_codec-0.4.1 \
tls_codec_derive-0.4.1 \
typenum-1.17.0 \
unicode-ident-1.0.12 \
unindent-0.2.3 \
universal-hash-0.5.1 \
untrusted-0.7.1 \
untrusted-0.9.0 \
version_check-0.9.4 \
wasi-0.11.0+wasi-snapshot-preview1 \
which-4.4.2 \
windows-sys-0.52.0 \
windows-targets-0.48.5 \
windows-targets-0.52.4 \
windows_aarch64_gnullvm-0.48.5 \
windows_aarch64_gnullvm-0.52.4 \
windows_aarch64_msvc-0.48.5 \
windows_aarch64_msvc-0.52.4 \
windows_i686_gnu-0.48.5 \
windows_i686_gnu-0.52.4 \
windows_i686_msvc-0.48.5 \
windows_i686_msvc-0.52.4 \
windows_x86_64_gnu-0.48.5 \
windows_x86_64_gnu-0.52.4 \
windows_x86_64_gnullvm-0.48.5 \
windows_x86_64_gnullvm-0.52.4 \
windows_x86_64_msvc-0.48.5 \
windows_x86_64_msvc-0.52.4 \
x509-cert-0.2.5 \
x509-ocsp-0.2.1 \
x509-parser-0.16.0 \
zeroize-1.7.0 \
zeroize_derive-1.4.2 \
ls-qpack,ls-qpack-sys@git+https://github.com/Ousret/ls-qpack-rs.git\#86a836850b45593a1635e757439e291214573828
CARGO_CRATES+= python3-dll-a-0.2.9

CARGO_BUILD= no
CARGO_INSTALL= no
CARGO_TEST= no
CARGO_TARGET_DIR= ${WRKSRC}/target

TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
TEST_WRKSRC= ${WRKSRC}/tests

.include <bsd.port.mk>
Loading

0 comments on commit e67ab45

Please sign in to comment.