pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gleam: add test and message
Module Name: pkgsrc-wip
Committed By: nikita <nikita%NetBSD.org@localhost>
Pushed By: nikita
Date: Fri Apr 8 08:55:39 2022 +0200
Changeset: 21f9ae1b07237f616e21c1b82345fdaaa589df40
Modified Files:
gleam/Makefile
gleam/TODO
Added Files:
gleam/MESSAGE
Log Message:
gleam: add test and message
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=21f9ae1b07237f616e21c1b82345fdaaa589df40
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gleam/MESSAGE | 5 +++++
gleam/Makefile | 5 +++--
gleam/TODO | 39 +++++----------------------------------
3 files changed, 13 insertions(+), 36 deletions(-)
diffs:
diff --git a/gleam/MESSAGE b/gleam/MESSAGE
new file mode 100644
index 0000000000..d1e74f8c08
--- /dev/null
+++ b/gleam/MESSAGE
@@ -0,0 +1,5 @@
+===========================================================================
+$NetBSD$
+
+You may want to install wip/rebar3 as a runtime dependency.
+===========================================================================
diff --git a/gleam/Makefile b/gleam/Makefile
index ca46e0b27b..91ee367df4 100644
--- a/gleam/Makefile
+++ b/gleam/Makefile
@@ -27,8 +27,9 @@ INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/gleam ${DESTDIR}${PREFIX}/bin
-# \TODO: projects are compiled with rebar3 but there is no hard dependency
-# on it. Should we bring it in as runtime dependency?
+do-test:
+ (cd ${WRKSRC} && ${DESTDIR}${PREFIX}/bin/gleam new hello && cd hello && ${DESTDIR}${PREFIX}/bin/gleam test)
+
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/gleam/TODO b/gleam/TODO
index a023ce8071..9633b3fb14 100644
--- a/gleam/TODO
+++ b/gleam/TODO
@@ -1,34 +1,5 @@
-* finish stdlib package
-* clarify runtime deps: erlang, rebar3, ...?
-* fix rebar3 (update, in wip), as with my local version of rebar3 this is
- not occuring:
-
-gleam new foo
-* creating foo/LICENSE
-* creating foo/.gitignore
-* creating foo/README.md
-* creating foo/gleam.toml
-* creating foo/test/foo_test.gleam
-* creating foo/src/foo.gleam
-* creating foo/.github/workflows/test.yml
-* creating foo/rebar.config
-* creating foo/src/foo.app.src
-
-Your Gleam project "foo" has been successfully created.
-The rebar3 program can be used to compile and test it.
-
- cd foo
- rebar3 eunit
-
-hex$ cd foo/
-hex$ rebar3 eunit
-===> Fetching rebar_gleam ({pkg,<<"rebar_gleam">>,<<"0.1.0">>})
-===> Version cached at /home/nikita/.cache/rebar3/hex/default/packages/rebar_gleam-0.1.0.tar is up to date, reusing it
-===> Compiling rebar_gleam
-===> Verifying dependencies...
-===> Package gleam_stdlib-0.10.1 not found. Fetching registry updates and trying again...
-===> Updating package registry...
-===> Writing registry to /home/nikita/.cache/rebar3/hex/default/registry
-===> Generating package index...
-===> Writing index to /home/nikita/.cache/rebar3/hex/default/packages.idx
-===> Package not found in registry: gleam_stdlib-0.10.1.
+* clarify runtime deps
+ - do we need wip/rebar3 as a runtime? gleam fails to detect it if
+ added to Makefile in my pbulk.
+ - is the stdlib (separate package) a runtime dependency, or do
+ people usually expect to fetch it with rebar3, mix or others?
\ No newline at end of file
Home |
Main Index |
Thread Index |
Old Index