summaryrefslogtreecommitdiff
blob: 5517775fe3ead61c4c84d3bb15d03d50547b4676 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Lua library of modules for common programming tasks"
HOMEPAGE="http://luaforge.net/projects/stdlib/"
SRC_URI="http://luaforge.net/frs/download.php/3584/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"

DEPEND="dev-lang/lua"
RDEPEND="${DEPEND}
	>=dev-lua/lrexlib-2.2.0"

S="${WORKDIR}/${PN}"

src_compile() {
	:
}

src_install() {
	local luaver=
	luaver="$(lua -v 2>&1| cut -d' ' -f2)"
	luaver="${luaver%.*}"

	insinto /usr/share/lua/${luaver}
	doins modules/*.lua || die "doins failed"

	if use doc; then
		dohtml -r modules/* || die "dohtml failed"
	fi
}