1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils toolchain-funcs versionator
9 MY_P=${PN}-$(replace_version_separator 3 'r' )
11 DESCRIPTION="Lua bindings to Thomas Boutell's gd library"
12 HOMEPAGE="http://lua-gd.luaforge.net/"
13 SRC_URI="http://luaforge.net/frs/download.php/1592/${MY_P}.tar.gz
14 mirror://sourceforge/${PN}/${PN}/${MY_P}%20%28for%20Lua%205.1%29/${MY_P}.tar.gz"
18 KEYWORDS="~amd64 ~x86"
29 epatch "${FILESDIR}/${P}-makefile.patch"
33 emake LUAPKG=lua CC="$(tc-getCC)"
37 emake install LUAPKG=lua DESTDIR="${D}"
45 insinto /usr/share/doc/${PF}