Gentoo Archives: gentoo-commits

From: "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/peg: peg-0.1.15-r1.ebuild ChangeLog
Date: Fri, 02 Jan 2015 19:09:08
Message-Id: 20150102190905.79C119DDD@oystercatcher.gentoo.org
1 rafaelmartins 15/01/02 19:09:05
2
3 Modified: ChangeLog
4 Added: peg-0.1.15-r1.ebuild
5 Log:
6 Fixed cross-compilation issues
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.5 dev-util/peg/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/peg/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/peg/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/peg/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 10 May 2014 10:52:39 -0000 1.4
24 +++ ChangeLog 2 Jan 2015 19:09:05 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/peg
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v 1.4 2014/05/10 10:52:39 jauhien Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v 1.5 2015/01/02 19:09:05 rafaelmartins Exp $
31 +
32 +*peg-0.1.15-r1 (02 Jan 2015)
33 +
34 + 02 Jan 2015; Rafael G. Martins <rafaelmartins@g.o>
35 + +peg-0.1.15-r1.ebuild:
36 + Fixed cross-compilation issues
37
38 10 May 2014; <jauhien@g.o> peg-0.1.15.ebuild:
39 fixes in ebuild: thanks to jlec
40
41
42
43 1.1 dev-util/peg/peg-0.1.15-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/peg/peg-0.1.15-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/peg/peg-0.1.15-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: peg-0.1.15-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-util/peg/peg-0.1.15-r1.ebuild,v 1.1 2015/01/02 19:09:05 rafaelmartins Exp $
53
54 EAPI=5
55
56 inherit toolchain-funcs
57
58 DESCRIPTION="Recursive-descent parser generators for C"
59 HOMEPAGE="http://piumarta.com/software/peg/"
60 SRC_URI="http://piumarta.com/software/${PN}/${P}.tar.gz"
61
62 LICENSE="MIT"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="test"
66
67 # FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime.
68 RESTRICT="test"
69
70 src_prepare() {
71 sed -i \
72 -e '/strip/d' \
73 -e '/^CFLAGS/d' \
74 -e 's/$(CC) $(CFLAGS) -o/$(CC) $(CFLAGS) $(LDFLAGS) -o/g' \
75 Makefile || die "sed failed"
76 }
77
78 src_compile() {
79 emake \
80 CC="$(tc-getCC)" \
81 CFLAGS="${CFLAGS}" \
82 LDFLAGS="${LDFLAGS}"
83 }
84
85 src_install() {
86 dodir "/usr/bin"
87 emake -j1 \
88 ROOT="${D}" \
89 PREFIX="/usr" \
90 install
91 rm -rf "${D}/usr/man" || die "rm failed"
92 doman src/${PN}.1
93 }
94
95 src_test() {
96 emake check
97 emake test
98 }