Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2024 01:59:18 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9f78131c8845 - main - devel/ob-rust: New port: Org-Babel support for evaluating Rust code
Message-ID:  <202401240159.40O1xI3t003657@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f78131c88452cfa250b2676c1ccb51479c47aac

commit 9f78131c88452cfa250b2676c1ccb51479c47aac
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-24 01:57:51 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-24 01:59:16 +0000

    devel/ob-rust: New port: Org-Babel support for evaluating Rust code
    
    PR:             276338
    Submitted by:   Pat Maddox <pat@patmaddox.com>
---
 devel/Makefile          |  1 +
 devel/ob-rust/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/ob-rust/distinfo  |  3 +++
 devel/ob-rust/pkg-descr |  2 ++
 devel/ob-rust/pkg-plist |  1 +
 5 files changed, 36 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 0481a3f50436..a32ab5bb87ad 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1659,6 +1659,7 @@
     SUBDIR += nss_wrapper
     SUBDIR += nsync
     SUBDIR += nuitka
+    SUBDIR += ob-rust
     SUBDIR += obby
     SUBDIR += objconv
     SUBDIR += objecthash
diff --git a/devel/ob-rust/Makefile b/devel/ob-rust/Makefile
new file mode 100644
index 000000000000..f1b651cf2049
--- /dev/null
+++ b/devel/ob-rust/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	ob-rust
+PORTVERSION=	g20220824
+CATEGORIES=	devel
+
+MAINTAINER=	pat@patmaddox.com
+COMMENT=	Org-Babel support for evaluating Rust code
+WWW=		https://github.com/micanzhang/ob-rust
+
+LICENSE=	GPLv3+
+
+RUN_DEPENDS=	${PREFIX}/${EMACS_SITE_LISPDIR}/rust-mode.el:devel/rust-mode \
+		rust-script:devel/rust-script
+
+USES=			emacs
+EMACS_NO_DEPENDS=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	micanzhang
+GH_PROJECT=	ob-rust
+GH_TAGNAME=	be059d2
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
+	${INSTALL_DATA} ${WRKSRC}/ob-rust.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
+
+.include <bsd.port.mk>
diff --git a/devel/ob-rust/distinfo b/devel/ob-rust/distinfo
new file mode 100644
index 000000000000..de1c4626c5fd
--- /dev/null
+++ b/devel/ob-rust/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1706061365
+SHA256 (micanzhang-ob-rust-g20220824-be059d2_GH0.tar.gz) = 5e3dfd02ec06585233c62f9176ed411fdff7eafb283c2f99557a56a0298fc4de
+SIZE (micanzhang-ob-rust-g20220824-be059d2_GH0.tar.gz) = 4801
diff --git a/devel/ob-rust/pkg-descr b/devel/ob-rust/pkg-descr
new file mode 100644
index 000000000000..fc4e310813ab
--- /dev/null
+++ b/devel/ob-rust/pkg-descr
@@ -0,0 +1,2 @@
+ob-rust enables Org-Babel support for evaluating Rust code. It was
+created based on the usage of ob-C and ob-go.
diff --git a/devel/ob-rust/pkg-plist b/devel/ob-rust/pkg-plist
new file mode 100644
index 000000000000..fa14b458e69b
--- /dev/null
+++ b/devel/ob-rust/pkg-plist
@@ -0,0 +1 @@
+%%EMACS_SITE_LISPDIR%%/ob-rust.el



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401240159.40O1xI3t003657>