summaryrefslogtreecommitdiffstats
path: root/lua-forge
diff options
context:
space:
mode:
authorIsmael Luceno2017-11-10 12:09:30 -0300
committerIsmael Luceno2017-11-10 12:11:01 -0300
commitb731fc4773a2c89b049f3a3eaa4ed41fcade0f2e (patch)
tree9d714496c08d5b0fe7d14becd11f188298d4382b /lua-forge
parent8e9321520fed2e3fea6f425dbe59653d2940709e (diff)
libmpack-lua: new spell, libmpack lua binding
Diffstat (limited to 'lua-forge')
-rwxr-xr-xlua-forge/libmpack-lua/BUILD3
-rwxr-xr-xlua-forge/libmpack-lua/DEPENDS2
-rwxr-xr-xlua-forge/libmpack-lua/DETAILS24
-rw-r--r--lua-forge/libmpack-lua/HISTORY2
-rwxr-xr-xlua-forge/libmpack-lua/INSTALL4
-rwxr-xr-xlua-forge/libmpack-lua/PREPARE2
6 files changed, 37 insertions, 0 deletions
diff --git a/lua-forge/libmpack-lua/BUILD b/lua-forge/libmpack-lua/BUILD
new file mode 100755
index 0000000000..31741ed8a7
--- /dev/null
+++ b/lua-forge/libmpack-lua/BUILD
@@ -0,0 +1,3 @@
+make MPACK_LUA_VERSION="$(installed_version lua)" \
+ USE_SYSTEM_LUA=yes \
+ USE_SYSTEM_MPACK=yes
diff --git a/lua-forge/libmpack-lua/DEPENDS b/lua-forge/libmpack-lua/DEPENDS
new file mode 100755
index 0000000000..7ea6a10816
--- /dev/null
+++ b/lua-forge/libmpack-lua/DEPENDS
@@ -0,0 +1,2 @@
+depends libmpack &&
+depends lua
diff --git a/lua-forge/libmpack-lua/DETAILS b/lua-forge/libmpack-lua/DETAILS
new file mode 100755
index 0000000000..fa0aaba195
--- /dev/null
+++ b/lua-forge/libmpack-lua/DETAILS
@@ -0,0 +1,24 @@
+. "$GRIMOIRE"/FUNCTIONS
+ SPELL=libmpack-lua
+if [ "$LIBMPACK_LUA_BRANCH" = scm ]; then
+ VERSION=$(get_scm_version)
+ SOURCE=$SPELL-git.tar.bz2
+ SOURCE_URL[0]=git://github.com/libmpack/$SPELL.git:$SPELL-git
+ SOURCE_IGNORE=volatile
+ FORCE_DOWNLOAD=on
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-git"
+else
+ VERSION=1.0.7
+ SOURCE="$SPELL-$VERSION.tar.gz"
+ SOURCE_URL[0]=https://github.com/libmpack/$SPELL/archive/$VERSION.tar.gz
+ SOURCE_HASH=sha512:301eb78ca22a75bcabc61eebf6d67f6e5a2d3535d34c0ab6e034495e5bdd0571842397a8f36d42abbdfacf240860f807c93e3ace8ed42543e2322914d84c1a36
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
+fi
+ WEB_SITE="https://github.com/libmpack/libmpack-lua"
+ LICENSE[0]="MIT"
+ ENTERED=20171110
+ KEYWORDS=""
+ SHORT="libmpack lua binding"
+cat << EOF
+Lua binding to libmpack
+EOF
diff --git a/lua-forge/libmpack-lua/HISTORY b/lua-forge/libmpack-lua/HISTORY
new file mode 100644
index 0000000000..f93825dada
--- /dev/null
+++ b/lua-forge/libmpack-lua/HISTORY
@@ -0,0 +1,2 @@
+2017-11-10 Ismael Luceno <ismael@sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL, PREPARE: spell created
diff --git a/lua-forge/libmpack-lua/INSTALL b/lua-forge/libmpack-lua/INSTALL
new file mode 100755
index 0000000000..fea430871b
--- /dev/null
+++ b/lua-forge/libmpack-lua/INSTALL
@@ -0,0 +1,4 @@
+make install \
+ MPACK_LUA_VERSION="$(installed_version lua)" \
+ USE_SYSTEM_LUA=yes \
+ USE_SYSTEM_MPACK=yes
diff --git a/lua-forge/libmpack-lua/PREPARE b/lua-forge/libmpack-lua/PREPARE
new file mode 100755
index 0000000000..dcac18c0da
--- /dev/null
+++ b/lua-forge/libmpack-lua/PREPARE
@@ -0,0 +1,2 @@
+. "$GRIMOIRE"/FUNCTIONS &&
+prepare_select_branch release scm