summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <git@mva.name>2015-09-12 19:17:11 +0600
committerVadim A. Misbakh-Soloviov <git@mva.name>2015-09-12 19:17:11 +0600
commite81d4e9013537aaadc792c1265f94931c8c5bc0a (patch)
tree5e0d3240e01055a8675192312c3548c917f0919c /dev-lua/lua-cjson/lua-cjson-9999.ebuild
parentlua-htmlparser: remove lua-set dep (diff)
downloadlua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.tar.gz
lua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.tar.bz2
lua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.zip
eclass/lua: added; dev-lua/*: moving to lua eclass
Signed-off-by: Vadim A. Misbakh-Soloviov <git@mva.name>
Diffstat (limited to 'dev-lua/lua-cjson/lua-cjson-9999.ebuild')
-rw-r--r--dev-lua/lua-cjson/lua-cjson-9999.ebuild31
1 files changed, 16 insertions, 15 deletions
diff --git a/dev-lua/lua-cjson/lua-cjson-9999.ebuild b/dev-lua/lua-cjson/lua-cjson-9999.ebuild
index a9b599a..0c0d662 100644
--- a/dev-lua/lua-cjson/lua-cjson-9999.ebuild
+++ b/dev-lua/lua-cjson/lua-cjson-9999.ebuild
@@ -4,35 +4,36 @@
EAPI="5"
-inherit cmake-utils git-r3
+VCS="git-r3"
+IS_MULTILIB=true
+LUA_COMPAT="lua51 luajit2"
+inherit cmake-utils lua
DESCRIPTION="Lua JSON Library, written in C"
HOMEPAGE="http://www.kyne.com.au/~mark/software/lua-cjson.php"
SRC_URI=""
-EGIT_REPO_URI="https://github.com/msva/lua-cjson"
+EGIT_REPO_URI="https://github.com/openresty/lua-cjson"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="examples luajit"
+IUSE="+examples"
-RDEPEND="
- virtual/lua[luajit=]
-"
-DEPEND="${RDEPEND}"
+EXAMPLES=( tests/* lua/{json2lua,lua2json}.lua )
-src_configure() {
+each_lua_configure() {
mycmakeargs=(
- $(cmake-utils_use_use luajit)
+ -DUSE_INTERNAL_FPCONV=ON
)
cmake-utils_src_configure
}
-src_install() {
- if use examples; then
- insinto /usr/share/doc/"${P}"
- doins -r tests
- fi
- cmake-utils_src_install
+each_lua_compile() {
+ emake
+}
+
+each_lua_install() {
+ dolua lua/cjson cjson.so
+# cmake-utils_src_install
}