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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat May 10 10:52:39 2014 UTC (5 years, 8 months ago) by jauhien
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -4 lines
fixes in ebuild: thanks to jlec

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 DESCRIPTION="Recursive-descent parser generators for C"
8 HOMEPAGE="http://piumarta.com/software/peg/"
9 SRC_URI="http://piumarta.com/software/${PN}/${PF}.tar.gz"
10
11 LICENSE="MIT"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="test"
15
16 # FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
17 RESTRICT="test"
18
19 src_prepare() {
20 sed -i \
21 -e '/strip/d' \
22 -e '/^CFLAGS/d' \
23 -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/g' \
24 Makefile || die "sed failed"
25 }
26
27 src_install() {
28 dodir "/usr/bin"
29 emake ROOT="${D}" PREFIX="/usr" install
30 rm -rf "${D}/usr/man" || die "rm failed"
31 doman src/${PN}.1
32 }
33
34 src_test() {
35 emake check
36 emake test
37 }

  ViewVC Help
Powered by ViewVC 1.1.20