summaryrefslogtreecommitdiff
blob: 8e8b4feb47cf9a3e529edaae74a20044f60dac31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/squirrel/squirrel-2.2.4-r1.ebuild,v 1.3 2011/01/25 12:17:31 fauli Exp $

EAPI="4"

#inherit autotools eutils multilib versionator
inherit multilib versionator

MY_PV="$(replace_all_version_separators _)_stable"

DESCRIPTION="A interpreted language mainly used for games"
HOMEPAGE="http://squirrel-lang.org/"
SRC_URI="http://${PN}.googlecode.com/files/${PN}_${MY_PV}.tar.gz"

LICENSE="MIT"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples static-libs"

# /usr/bin/sq conflicts
#RDEPEND="!app-text/ispell"

S="${WORKDIR}/SQUIRREL${SLOT}"

#src_prepare() {
#	epatch "${FILESDIR}"/${P}-autotools.patch
#	epatch "${FILESDIR}"/${P}-supertux-const.patch
#	epatch "${FILESDIR}"/${P}-stdint.h.patch
#
#	eautoreconf
#}

src_configure() {
	econf --docdir="${EPREFIX}"/usr/share/doc/${PF} \
		$(use_enable doc) \
		$(use_enable examples) \
		$(use_enable static-libs static)
}

src_install() {
	emake DESTDIR="${D}" install || die
	if ! use static-libs; then
		rm -v "${ED}"/usr/$(get_libdir)/*.la || die
	fi

	dodoc HISTORY README || die
}