summaryrefslogtreecommitdiff
blob: c39c74b075ef58a0d189fb384b6bc9d252356367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

VCS="git"
GITHUB_A="starwing"

inherit lua

DESCRIPTION="lightweight, native, lazy evaluating multithreading library"
HOMEPAGE="https://github.com/LuaLanes/lanes"

SRC_URI="http://unicode.org/Public/UCD/latest/ucd/UCD.zip"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="examples"

DOCS=(README.md)
EXAMPLES=(test{,_{compat,pm}}.lua)

src_unpack() {
	local ucd="${WORKDIR}/all/${P}/ucd";
	lua_src_unpack
	mkdir "${ucd}"
	mv ${WORKDIR}/all/*.txt "${ucd}"
}

all_lua_prepare() {
	lua_default
	lua parseucd.lua
}

each_lua_compile() {
	${CC} ${CFLAGS} ${LDFLAGS} lutf8lib.c -o lua-utf8.so
}

each_lua_install() {
	dolua lua-utf8.so
}