# ChangeLog for dev-lang/tolua
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/tolua/ChangeLog,v 1.5 2005/05/18 11:41:32 twp Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tolua/ChangeLog,v 1.6 2005/10/31 18:13:08 twp Exp $
+
+*tolua-5.0-r1 (31 Oct 2005)
+
+ 31 Oct 2005; Tom Payne <twp@gentoo.org> +tolua-5.0-r1.ebuild:
+ Use portability eclass to conditionally link to dl. Bug # 106446.
18 May 2005; Tom Payne <twp@gentoo.org> tolua-5.0.ebuild:
Use toolchain-funcs eclass. Bug # 92745.
-MD5 9ab5079ce4a53d7a16104c257b36ec38 tolua-5.0.ebuild 1007
-MD5 c503c1806e155f6650a5cef268e1c80c ChangeLog 586
-MD5 d992d28bec4a3bfd72b441145091a58e metadata.xml 244
+MD5 6d342f7efe3fe705cf5ee00a3fc7c6ca ChangeLog 748
MD5 8e839d58ded054bfa49ba75a9e769951 files/digest-tolua-5.0 60
+MD5 8e839d58ded054bfa49ba75a9e769951 files/digest-tolua-5.0-r1 60
+MD5 d992d28bec4a3bfd72b441145091a58e metadata.xml 244
+MD5 bb4e0d3830e5426762496f20c39cebfe tolua-5.0-r1.ebuild 1032
+MD5 9ab5079ce4a53d7a16104c257b36ec38 tolua-5.0.ebuild 1007
--- /dev/null
+MD5 d572bfe7b8cd2af46fcb0a276929f973 tolua-5.0.tar.gz 85636
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tolua/tolua-5.0-r1.ebuild,v 1.1 2005/10/31 18:13:08 twp Exp $
+
+inherit toolchain-funcs portability
+
+DESCRIPTION="A tool that simplifies the integration of C/C++ code with Lua"
+HOMEPAGE="http://www.tecgraf.puc-rio.br/~celes/tolua/"
+SRC_URI="ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~x86 ~sparc"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ sed -i \
+ -e "/^CC=/ s/=.*/=$(tc-getCC)/" \
+ -e "/^LUA=/ s:=.*:=/usr:" \
+ -e "s/^\(LIB=.*\)/\1 $(dlopen_lib)/" \
+ -e "s:-O2:${CFLAGS}:" config || \
+ die "sed config failed"
+ sed -i \
+ -e 's:make:$(MAKE):' Makefile || \
+ die "sed Makefile failed"
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin bin/tolua || die
+ dolib.a lib/libtolua.a
+ insinto /usr/include
+ doins include/tolua.h
+ dodoc INSTALL README
+ dohtml doc/*
+}