/[gentoo-x86]/dev-lang/squirrel/squirrel-2.2.4-r2.ebuild
Gentoo

Contents of /dev-lang/squirrel/squirrel-2.2.4-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jun 7 12:20:01 2012 UTC (2 years, 3 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Fix build failure against gcc-4.7 (approved by binki)

(Portage version: 2.2.0_alpha108_p3/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 EAPI=3
6
7 inherit autotools eutils multilib
8
9 MY_P="${PN}_${PV}_stable"
10 DESCRIPTION="A interpreted language mainly used for games"
11 HOMEPAGE="http://squirrel-lang.org/"
12 SRC_URI="mirror://sourceforge/${PN}/${PN}${PV:0:1}/${MY_P}/${MY_P}.tar.gz"
13
14 LICENSE="ZLIB"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc examples static-libs"
18
19 # /usr/bin/sq conflicts
20 RDEPEND="!app-text/ispell"
21
22 S="${WORKDIR}/SQUIRREL${PV:0:1}"
23
24 src_prepare() {
25 epatch "${FILESDIR}"/${P}-autotools.patch
26 epatch "${FILESDIR}"/${P}-supertux-const.patch
27 epatch "${FILESDIR}"/${P}-stdint.h.patch
28 epatch "${FILESDIR}"/${P}-gcc47.patch
29
30 eautoreconf
31 }
32
33 src_configure() {
34 econf --docdir="${EPREFIX}"/usr/share/doc/${PF} \
35 $(use_enable doc) \
36 $(use_enable examples) \
37 $(use_enable static-libs static)
38 }
39
40 src_install() {
41 emake DESTDIR="${D}" install || die
42 if ! use static-libs; then
43 rm -v "${ED}"/usr/$(get_libdir)/*.la || die
44 fi
45
46 dodoc HISTORY README || die
47 }

  ViewVC Help
Powered by ViewVC 1.1.20