diff options
Diffstat (limited to 'dev-lua/toluapp/toluapp-1.0.92.ebuild')
-rw-r--r-- | dev-lua/toluapp/toluapp-1.0.92.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-lua/toluapp/toluapp-1.0.92.ebuild b/dev-lua/toluapp/toluapp-1.0.92.ebuild new file mode 100644 index 000000000000..230468a8c58b --- /dev/null +++ b/dev-lua/toluapp/toluapp-1.0.92.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/toluapp/toluapp-1.0.92.ebuild,v 1.1 2010/11/06 01:38:02 rafaelmartins Exp $ + +inherit eutils toolchain-funcs + +MY_PN=${PN/toluapp/tolua++} +MY_P=${MY_PN}-${PV} +DESCRIPTION="A tool to integrate C/C++ code with Lua." +HOMEPAGE="http://www.codenix.com/~tolua/" +SRC_URI="http://www.codenix.com/~tolua/${MY_P}.tar.bz2" +KEYWORDS="amd64 ppc x86" +LICENSE="as-is" +SLOT="0" +IUSE="" +S=${WORKDIR}/${MY_P} + +RDEPEND=">=dev-lang/lua-5.1.1" +DEPEND="${RDEPEND} + dev-util/scons + >=sys-apps/sed-4" + +src_compile() { + echo "## BEGIN gentoo.py + +CCFLAGS = ['-I/usr/include/lua', '-O2' ] +LIBS = ['lua', 'dl', 'm'] + +## END gentoo.py" > ${S}/custom.py + + scons \ + CC=$(tc-getCC) \ + CCFLAGS="${CFLAGS}" \ + LINK=$(tc-getCC) \ + prefix=${D}/usr \ + install || die +} + +src_install() { + dobin bin/tolua++ + dolib.a lib/libtolua++.a + insinto /usr/include + doins include/tolua++.h + dodoc INSTALL README + dohtml doc/* +} |