diff --git a/dev-lang/squirrel/squirrel-2.2.4.ebuild b/dev-lang/squirrel/squirrel-2.2.4.ebuild new file mode 100644 --- /dev/null +++ b/dev-lang/squirrel/squirrel-2.2.4.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_P="${PN}_${PV}_stable" + +DESCRIPTION="A interpreted language mainly used for games" +HOMEPAGE="http://squirrel-lang.org/" +SRC_URI="mirror://sourceforge/${PN}/${PN}${PV:0:1}/${MY_P}/${MY_P}.tar.gz" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +# /usr/bin/sq conflicts +RDEPEND="!app-text/ispell" + +S="${WORKDIR}/SQUIRREL${PV:0:1}" + +src_compile() { + if use amd64 ; then + emake sq64 || die + else + emake || die + fi +} + +src_install() { + dobin bin/sq || die + dolib.a lib/*.a || die + insinto /usr + doins -r include || die + dodoc HISTORY README || die + + if use doc ; then + dodoc doc/*.pdf || die + fi + + if use examples ; then + insinto /usr/share/doc/${PF}/samples + doins -r etc samples/* || die + fi +}