summaryrefslogtreecommitdiff
path: root/devel/pyrefly/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/pyrefly/Makefile')
-rw-r--r--devel/pyrefly/Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/devel/pyrefly/Makefile b/devel/pyrefly/Makefile
new file mode 100644
index 0000000..9d4eb73
--- /dev/null
+++ b/devel/pyrefly/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= pyrefly
+DISTVERSION= 1.1.1
+CATEGORIES= devel
+
+MAINTAINER= cashmere@autistici.org
+COMMENT= Fast Python type checker and language server written in Rust
+WWW= https://github.com/facebook/pyrefly
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cargo
+
+.if exists(${HOME}/.cargo/bin/rustc)
+RUSTC= ${HOME}/.cargo/bin/rustc
+CARGO= ${HOME}/.cargo/bin/cargo
+RUSTDOC= ${HOME}/.cargo/bin/rustdoc
+CARGO_BUILDDEP= no
+.endif
+
+USE_GITHUB= yes
+GH_ACCOUNT= facebook
+GH_PROJECT= pyrefly
+GH_TAGNAME= ${DISTVERSION}
+
+CARGO_INSTALL_PATH= pyrefly
+CARGO_BUILD_ARGS= --package pyrefly
+
+PLIST_FILES= bin/pyrefly
+
+.include <bsd.port.mk>