From 914b935b4c74ee7a9747fd1683f4b7b8e1e13a01 Mon Sep 17 00:00:00 2001 From: Haoyuan Sun Date: Sat, 3 Jan 2015 23:57:06 +0000 Subject: [PATCH 1/3] Added luarocks-2.2.0 recipe file --- dev-lua/luarocks/luarocks-2.2.0.recipe | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 dev-lua/luarocks/luarocks-2.2.0.recipe diff --git a/dev-lua/luarocks/luarocks-2.2.0.recipe b/dev-lua/luarocks/luarocks-2.2.0.recipe new file mode 100644 index 000000000..c7ded971c --- /dev/null +++ b/dev-lua/luarocks/luarocks-2.2.0.recipe @@ -0,0 +1,46 @@ +SUMMARY="a deployment and management system for Lua modules." +DESCRIPTION="LuaRocks allows you to install modules as self-contained packages called rocks, which also contain version dependency information." +HOMEPAGE="http://luarocks.org" +SRC_URI="http://luarocks.org/releases/luarocks-2.2.0.tar.gz" +SOURCE_DIR=$portVersionedName +REVISION="2" +CHECKSUM_SHA256="9b1a4ec7b103e2fb90a7ba8589d7e0c8523a3d6d54ac469b0bbc144292b9279c" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +PROVIDES=" + cmd:luarocks = $portVersion + " +REQUIRES=" + haiku + lua + lib:liblua + " +BUILD_REQUIRES=" + lua_devel + devel:liblua + " +BUILD_PREREQUIRES=" + haiku_devel + cmd:lua + cmd:luac + cmd:gcc + cmd:ld + cmd:make + cmd:sed + cmd:wget + cmd:md5sum + " + +BUILD() +{ + echo "PREFIX = $prefix" + ./configure --prefix=$prefix --with-lua=/bin --with-lua-include=/system/develop/headers --with-lua-lib=/system/develop/lib + make build +} +INSTALL() +{ + make install +} + +LICENSE="MIT" +COPYRIGHT="2007-2014 Kepler Project" From c6c8d6d9a8af6bd0513a4df8ab9ac48712f4b33b Mon Sep 17 00:00:00 2001 From: Haoyuan Sun Date: Sun, 4 Jan 2015 00:51:52 +0000 Subject: [PATCH 2/3] Removed redundant requires --- dev-lua/luarocks/luarocks-2.2.0.recipe | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dev-lua/luarocks/luarocks-2.2.0.recipe b/dev-lua/luarocks/luarocks-2.2.0.recipe index c7ded971c..41af7eff5 100644 --- a/dev-lua/luarocks/luarocks-2.2.0.recipe +++ b/dev-lua/luarocks/luarocks-2.2.0.recipe @@ -9,20 +9,17 @@ CHECKSUM_SHA256="9b1a4ec7b103e2fb90a7ba8589d7e0c8523a3d6d54ac469b0bbc144292b9279 ARCHITECTURES="x86_gcc2 x86 x86_64" PROVIDES=" cmd:luarocks = $portVersion + cmd:luarocks_admin = $portVersion " REQUIRES=" haiku lua - lib:liblua " BUILD_REQUIRES=" lua_devel - devel:liblua " BUILD_PREREQUIRES=" haiku_devel - cmd:lua - cmd:luac cmd:gcc cmd:ld cmd:make @@ -33,7 +30,6 @@ BUILD_PREREQUIRES=" BUILD() { - echo "PREFIX = $prefix" ./configure --prefix=$prefix --with-lua=/bin --with-lua-include=/system/develop/headers --with-lua-lib=/system/develop/lib make build } From ea7131bc81cc362c1344046b164740f733688eca Mon Sep 17 00:00:00 2001 From: Haoyuan Sun Date: Sun, 4 Jan 2015 04:17:50 +0000 Subject: [PATCH 3/3] Addition of env variables --- dev-lua/luarocks/luarocks-2.2.0.recipe | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dev-lua/luarocks/luarocks-2.2.0.recipe b/dev-lua/luarocks/luarocks-2.2.0.recipe index 41af7eff5..06f16e7ae 100644 --- a/dev-lua/luarocks/luarocks-2.2.0.recipe +++ b/dev-lua/luarocks/luarocks-2.2.0.recipe @@ -1,5 +1,8 @@ SUMMARY="a deployment and management system for Lua modules." -DESCRIPTION="LuaRocks allows you to install modules as self-contained packages called rocks, which also contain version dependency information." +DESCRIPTION=" +LuaRocks allows you to install modules as self-contained packages \ +called rocks, which also contain version dependency information. +" HOMEPAGE="http://luarocks.org" SRC_URI="http://luarocks.org/releases/luarocks-2.2.0.tar.gz" SOURCE_DIR=$portVersionedName @@ -14,12 +17,16 @@ PROVIDES=" REQUIRES=" haiku lua + lib:liblua " BUILD_REQUIRES=" lua_devel + devel:liblua " BUILD_PREREQUIRES=" haiku_devel + cmd:lua + cmd:luac cmd:gcc cmd:ld cmd:make @@ -30,7 +37,7 @@ BUILD_PREREQUIRES=" BUILD() { - ./configure --prefix=$prefix --with-lua=/bin --with-lua-include=/system/develop/headers --with-lua-lib=/system/develop/lib + ./configure --prefix=$prefix --with-lua=$binDir --with-lua-include=$includeDir --with-lua-lib=$libDir make build } INSTALL()