Date: Thu, 30 Sep 2021 22:07:56 GMT From: Dave Cottlehuber <dch@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: ae0fabf837dc - main - devel/erlang-native-port-compiler: NEW PORT rebar3 friendly build plugin Message-ID: <202109302207.18UM7u0p096354@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=ae0fabf837dc031c580ead8fbbfeee9ecfd20fcf commit ae0fabf837dc031c580ead8fbbfeee9ecfd20fcf Author: Dave Cottlehuber <dch@FreeBSD.org> AuthorDate: 2021-09-29 21:16:47 +0000 Commit: Dave Cottlehuber <dch@FreeBSD.org> CommitDate: 2021-09-30 22:03:12 +0000 devel/erlang-native-port-compiler: NEW PORT rebar3 friendly build plugin --- devel/Makefile | 1 + devel/erlang-native-compiler/Makefile | 26 ++++++++++++++++++++++++++ devel/erlang-native-compiler/distinfo | 3 +++ devel/erlang-native-compiler/pkg-descr | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 608452aafb38..92edb0753658 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -630,6 +630,7 @@ SUBDIR += erlang-lager_syslog SUBDIR += erlang-meck SUBDIR += erlang-metrics + SUBDIR += erlang-native-compiler SUBDIR += erlang-neotoma SUBDIR += erlang-parse_trans SUBDIR += erlang-poolboy diff --git a/devel/erlang-native-compiler/Makefile b/devel/erlang-native-compiler/Makefile new file mode 100644 index 000000000000..cd1113ccf1f3 --- /dev/null +++ b/devel/erlang-native-compiler/Makefile @@ -0,0 +1,26 @@ +PORTNAME= erlang-native-compiler +PORTVERSION= g20210602 +CATEGORIES= devel + +MAINTAINER= erlang@FreeBSD.org +COMMENT= Native Code Compiler helper for Erlang + +LICENSE= APACHE20 + +# must always be built against lowest BEAM version available in ports +# but can be run with any later version without issue +BUILD_DEPENDS= erlang-runtime21>21:lang/erlang-runtime21 + +USE_GITHUB= yes +GH_ACCOUNT= davisp +GH_TAGNAME= 5761afb + +MAKE_ENV= PATH=${LOCALBASE}/lib/erlang21/bin:${PATH} +NO_ARCH= yes +PLIST_FILES= bin/enc + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/bin + ${INSTALL} ${WRKSRC}/enc ${STAGEDIR}${PREFIX}/bin/enc + +.include <bsd.port.mk> diff --git a/devel/erlang-native-compiler/distinfo b/devel/erlang-native-compiler/distinfo new file mode 100644 index 000000000000..2a0f3e510a0f --- /dev/null +++ b/devel/erlang-native-compiler/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632944278 +SHA256 (davisp-erlang-native-compiler-g20210602-5761afb_GH0.tar.gz) = fc1921ef5727b3c4aa0b9d417a64e3b49c88d254250673244c40803aa4ffca44 +SIZE (davisp-erlang-native-compiler-g20210602-5761afb_GH0.tar.gz) = 27296 diff --git a/devel/erlang-native-compiler/pkg-descr b/devel/erlang-native-compiler/pkg-descr new file mode 100644 index 000000000000..126fc93a4cb2 --- /dev/null +++ b/devel/erlang-native-compiler/pkg-descr @@ -0,0 +1,10 @@ +erlang-native-compiler, or enc, as it is installed, is an Erlang build +tool that makes it easy to compile erlang NIFs - native interface +functions - in rebar3 and mix projects, handling the port compiler +options that rebar and rebar2 provided, but were subsequently removed +from rebar3 and not included in mix itself. + +enc is a self-contained Erlang script, so it's easy to distribute +or even embed directly in a project. + +WWW: https://github.com/davisp/erlang-native-compiler
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109302207.18UM7u0p096354>