aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-14 11:50:53 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-14 11:50:53 +0000
commitac1decc7069cc490cc825b90cbd0d52e8277ab7f (patch)
tree532c46c3daa21211368a2dccac95f069190c5134
parentrename copilot to alv-copilot (diff)
downloadalive-ac1decc7069cc490cc825b90cbd0d52e8277ab7f.tar.gz
alive-ac1decc7069cc490cc825b90cbd0d52e8277ab7f.zip
add rockspec
-rw-r--r--rockspecs/alive-scm-1.rockspec92
-rwxr-xr-xrockspecs/gen-rockspec.sh77
2 files changed, 169 insertions, 0 deletions
diff --git a/rockspecs/alive-scm-1.rockspec b/rockspecs/alive-scm-1.rockspec
new file mode 100644
index 0000000..e9795fd
--- /dev/null
+++ b/rockspecs/alive-scm-1.rockspec
@@ -0,0 +1,92 @@
+package = "alive"
+version = "scm-1"
+
+source = {
+ url = "git://github.com/s-ol/alivecoding.git",
+}
+
+description = {
+ summary = "Experimental livecoding environment with persistent expressions",
+ detailed = [[
+This is an experimental livecoding language and environment, in which
+expressions persist and update until they are removed from the source code, and
+the interpreter keeps no state that you cannot manipulate directly in the
+source. This yields a direct-manipulation like experience with a purely
+text-based language and works without special editor support.]],
+ homepage = "https://alive.s-ol.nu",
+ license = "GPL-3",
+}
+
+dependencies = {
+ "lua >= 5.3",
+ "moonscript >= 0.5.0",
+ "lpeg ~> 0.10",
+ "luafilesystem",
+ "luasystem",
+ "luasocket",
+ "osc",
+}
+
+build = {
+ type = "builtin",
+ modules = {},
+ copy_directories = { "docs" },
+ install = {
+ lua = {
+ ["alv.result"] = "alv/result.moon",
+ ["alv.stream.io"] = "alv/stream/io.moon",
+ ["alv.stream.base"] = "alv/stream/base.moon",
+ ["alv.stream.value"] = "alv/stream/value.moon",
+ ["alv.stream.event"] = "alv/stream/event.moon",
+ ["alv.stream.init"] = "alv/stream/init.moon",
+ ["alv.builtin"] = "alv/builtin.moon",
+ ["alv.cell"] = "alv/cell.moon",
+ ["alv.tag"] = "alv/tag.moon",
+ ["alv.copilot"] = "alv/copilot.moon",
+ ["alv.version"] = "alv/version.moon",
+ ["alv.error"] = "alv/error.moon",
+ ["alv.invoke"] = "alv/invoke.moon",
+ ["alv.cycle"] = "alv/cycle.moon",
+ ["alv.ast"] = "alv/ast.moon",
+ ["alv.base.builtin"] = "alv/base/builtin.moon",
+ ["alv.base.op"] = "alv/base/op.moon",
+ ["alv.base.fndef"] = "alv/base/fndef.moon",
+ ["alv.base.match"] = "alv/base/match.moon",
+ ["alv.base.input"] = "alv/base/input.moon",
+ ["alv.base.init"] = "alv/base/init.moon",
+ ["alv.registry"] = "alv/registry.moon",
+ ["alv.logger"] = "alv/logger.moon",
+ ["alv.init"] = "alv/init.moon",
+ ["alv.parsing"] = "alv/parsing.moon",
+ ["alv.scope"] = "alv/scope.moon",
+
+ ["alv-lib.osc"] = "alv-lib/osc.moon",
+ ["alv-lib.midi"] = "alv-lib/midi.moon",
+ ["alv-lib.sc"] = "alv-lib/sc.moon",
+ ["alv-lib.pilot"] = "alv-lib/pilot.moon",
+ ["alv-lib.random"] = "alv-lib/random.moon",
+ ["alv-lib.util"] = "alv-lib/util.moon",
+ ["alv-lib.string"] = "alv-lib/string.moon",
+ ["alv-lib.midi.launchctl"] = "alv-lib/midi/launchctl.moon",
+ ["alv-lib.midi.core"] = "alv-lib/midi/core.moon",
+ ["alv-lib.time"] = "alv-lib/time.moon",
+ ["alv-lib.logic"] = "alv-lib/logic.moon",
+ ["alv-lib.math"] = "alv-lib/math.moon",
+ },
+ bin = {
+ "bin/alv",
+ "bin/alv-copilot"
+ },
+ },
+
+ platforms = {
+ win32 = {
+ install = {
+ bin = {
+ "bin/alv",
+ "bin/alv-copilot.bat",
+ },
+ },
+ },
+ },
+}
diff --git a/rockspecs/gen-rockspec.sh b/rockspecs/gen-rockspec.sh
new file mode 100755
index 0000000..9fb8f88
--- /dev/null
+++ b/rockspecs/gen-rockspec.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+VERSION="$1"
+REVISION="${2:-1}"
+
+if [ "$VERSION" = scm ]; then
+ WHERE=
+else
+ WHERE=$'\n'" tag = \"$VERSION\","
+ VERSION="${VERSION#v}"
+ VERSION="${VERSION//-/}"
+fi
+
+list_modules() {
+ for file in $(find $1 -type f -name '*.moon'); do
+ MODULE=$(echo $file | sed -e 's/\.moon$//' -e 's/\//./g')
+ echo " [\"$MODULE\"] = \"$file\","
+ done
+}
+
+cat <<STOP > rockspecs/alive-$VERSION-$REVISION.rockspec
+package = "alive"
+version = "$VERSION-$REVISION"
+
+source = {
+ url = "git://github.com/s-ol/alivecoding.git",$WHERE
+}
+
+description = {
+ summary = "Experimental livecoding environment with persistent expressions",
+ detailed = [[
+This is an experimental livecoding language and environment, in which
+expressions persist and update until they are removed from the source code, and
+the interpreter keeps no state that you cannot manipulate directly in the
+source. This yields a direct-manipulation like experience with a purely
+text-based language and works without special editor support.]],
+ homepage = "https://alive.s-ol.nu",
+ license = "GPL-3",
+}
+
+dependencies = {
+ "lua >= 5.3",
+ "moonscript >= 0.5.0",
+ "lpeg ~> 0.10",
+ "luafilesystem",
+ "luasystem",
+ "luasocket",
+ "osc",
+}
+
+build = {
+ type = "builtin",
+ modules = {},
+ copy_directories = { "docs" },
+ install = {
+ lua = {
+$(list_modules alv)
+
+$(list_modules alv-lib)
+ },
+ bin = {
+ "bin/alv",
+ "bin/alv-copilot"
+ },
+ },
+
+ platforms = {
+ win32 = {
+ install = {
+ bin = {
+ "bin/alv",
+ "bin/alv-copilot.bat",
+ },
+ },
+ },
+ },
+}
+STOP