# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit eutils DESCRIPTION="A powerful light-weight programming language designed for extending applications" HOMEPAGE="http://www.lua.org/" SRC_URI="http://www.lua.org/ftp/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm -hppa ~ia64 mips ~ppc ~ppc-macos ~s390 ~sparc ~x86" IUSE="" DEPEND="" src_unpack() { unpack ${A} cd ${S} sed -i Makefile -e 's:^\(INSTALL_TOP= \)/usr/local:\1/usr:' sed -i doc/readme.html -e 's:\(/README\)\("\):\1.gz\2:g' } src_compile() { emake linux } src_install() { insinto /usr/bin doins src/lua src/luac fperms 0755 /usr/bin/luac /usr/bin/lua insinto /usr/include doins src/lua.h src/luaconf.h src/lualib.h src/lauxlib.h etc/lua.hpp insinto /usr/lib doins src/liblua.a dohtml doc/*.html doc/*.gif for i in `find . -name README -printf "%h\n"`; do docinto ${i#.} dodoc ${i}/README done }