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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Sep 22 02:56:06 2013 UTC (6 years, 4 months ago) by rafaelmartins
Branch: MAIN
CVS Tags: HEAD
Version bump

(Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key )

1 # Copyright 1999-2013 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.9.ebuild,v 1.1 2013/02/24 03:07:25 rafaelmartins Exp $
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 DEPEND=""
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 sed -i \
24 -e '/strip/d' \
25 -e '/^CFLAGS/d' \
26 -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/g' \
27 Makefile || die "sed failed"
28 }
29
30 src_install() {
31 mkdir -p "${D}/usr/bin" || die "mkdir failed"
32 emake ROOT="${D}" PREFIX="/usr" install
33 rm -rf "${D}/usr/man" || die "rm failed"
34 doman src/${PN}.1
35 }
36
37 src_test() {
38 emake check
39 emake test
40 }

  ViewVC Help
Powered by ViewVC 1.1.20