# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit autotools DESCRIPTION="Techne is a general purpose, programmable physical simulator and renderer" HOMEPAGE="http://www.nongnu.org/techne" SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="objc" DEPEND="sys-devel/gcc[objc] virtual/opengl media-libs/openal dev-games/ode >=dev-lang/lua-5.1 media-libs/libpng media-libs/freetype:2" RDEPEND="${DEPEND}" src_prepare() { # Fix configure.ac for lua sed -i -e "s/lua5.1/lua/" \ -e "s/luac\]\]/luac]/" configure.ac || die "sed failed" eautoreconf || die "autoreconf failed" } src_install() { sed -i -e "s:docdir = \${datarootdir}/doc/\${PACKAGE_TARNAME}:docdir = \${datarootdir}/doc/\${PACKAGE_TARNAME}-\${VERSION}:" Makefile || die "sed failed" emake DESTDIR="${D}" install || die "install failed" dodoc README AUTHORS ChangeLog NEWS || die }