/[gentoo-x86]/dev-util/peg/peg-0.1.15-r1.ebuild
Gentoo

Contents of /dev-util/peg/peg-0.1.15-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Jan 2 19:09:05 2015 UTC (5 years ago) by rafaelmartins
Branch: MAIN
CVS Tags: HEAD
Fixed cross-compilation issues

(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/peg/peg-0.1.15.ebuild,v 1.2 2014/05/10 10:52:39 jauhien Exp $
4
5 EAPI=5
6
7 inherit toolchain-funcs
8
9 DESCRIPTION="Recursive-descent parser generators for C"
10 HOMEPAGE="http://piumarta.com/software/peg/"
11 SRC_URI="http://piumarta.com/software/${PN}/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="test"
17
18 # FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
19 RESTRICT="test"
20
21 src_prepare() {
22 sed -i \
23 -e '/strip/d' \
24 -e '/^CFLAGS/d' \
25 -e 's/$(CC) $(CFLAGS) -o/$(CC) $(CFLAGS) $(LDFLAGS) -o/g' \
26 Makefile || die "sed failed"
27 }
28
29 src_compile() {
30 emake \
31 CC="$(tc-getCC)" \
32 CFLAGS="${CFLAGS}" \
33 LDFLAGS="${LDFLAGS}"
34 }
35
36 src_install() {
37 dodir "/usr/bin"
38 emake -j1 \
39 ROOT="${D}" \
40 PREFIX="/usr" \
41 install
42 rm -rf "${D}/usr/man" || die "rm failed"
43 doman src/${PN}.1
44 }
45
46 src_test() {
47 emake check
48 emake test
49 }

  ViewVC Help
Powered by ViewVC 1.1.20