# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A lua-based build environment generation tool" HOMEPAGE="http://premake.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" LICENSE="GPL" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug doc" RDEPEND="" DEPEND="${RDEPEND} app-arch/unzip >=sys-devel/libtool-1.4 doc? ( app-doc/doxygen )" myConfig="release" src_compile() { if use debug; then myConfig="debug" fi cd build/gmake.unix unset ARCH emake config="$myConfig" || die if use doc; then cd "${S}" doxygen -u doxyfile &> /dev/null || die "updating doxygen config failed" doxygen doxyfile || die "making docs failed" fi } src_install() { exeinto /usr/bin doexe bin/$myConfig/premake4 cd "${S}" if use doc; then insinto /usr/share/doc/${PF} dohtml -r doc/html/* fi dodoc BUILD.txt CHANGES.txt LICENSE.txt README.txt }