diff options
author | Rafael Martins <rafaelmartins@gentoo.org> | 2015-01-02 19:09:05 +0000 |
---|---|---|
committer | Rafael Martins <rafaelmartins@gentoo.org> | 2015-01-02 19:09:05 +0000 |
commit | 0d784279ce57f5625a90420098d99c1485a1c2f6 (patch) | |
tree | b34b28358d32606e55b8677886aea152bfcc053f /dev-util/peg | |
parent | Minor doc change (diff) | |
download | gentoo-2-0d784279ce57f5625a90420098d99c1485a1c2f6.tar.gz gentoo-2-0d784279ce57f5625a90420098d99c1485a1c2f6.tar.bz2 gentoo-2-0d784279ce57f5625a90420098d99c1485a1c2f6.zip |
Fixed cross-compilation issues
(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-util/peg')
-rw-r--r-- | dev-util/peg/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/peg/peg-0.1.15-r1.ebuild | 49 |
2 files changed, 57 insertions, 2 deletions
diff --git a/dev-util/peg/ChangeLog b/dev-util/peg/ChangeLog index 1ed6e80d0e05..a72164707694 100644 --- a/dev-util/peg/ChangeLog +++ b/dev-util/peg/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/peg -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v 1.4 2014/05/10 10:52:39 jauhien Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v 1.5 2015/01/02 19:09:05 rafaelmartins Exp $ + +*peg-0.1.15-r1 (02 Jan 2015) + + 02 Jan 2015; Rafael G. Martins <rafaelmartins@gentoo.org> + +peg-0.1.15-r1.ebuild: + Fixed cross-compilation issues 10 May 2014; <jauhien@gentoo.org> peg-0.1.15.ebuild: fixes in ebuild: thanks to jlec diff --git a/dev-util/peg/peg-0.1.15-r1.ebuild b/dev-util/peg/peg-0.1.15-r1.ebuild new file mode 100644 index 000000000000..5282cee10b5b --- /dev/null +++ b/dev-util/peg/peg-0.1.15-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=5 + +inherit toolchain-funcs + +DESCRIPTION="Recursive-descent parser generators for C" +HOMEPAGE="http://piumarta.com/software/peg/" +SRC_URI="http://piumarta.com/software/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +# FIXME: tests don't respect {C,LD}FLAGS and build stuff in runtime. +RESTRICT="test" + +src_prepare() { + sed -i \ + -e '/strip/d' \ + -e '/^CFLAGS/d' \ + -e 's/$(CC) $(CFLAGS) -o/$(CC) $(CFLAGS) $(LDFLAGS) -o/g' \ + Makefile || die "sed failed" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + dodir "/usr/bin" + emake -j1 \ + ROOT="${D}" \ + PREFIX="/usr" \ + install + rm -rf "${D}/usr/man" || die "rm failed" + doman src/${PN}.1 +} + +src_test() { + emake check + emake test +} |