summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/peg')
-rw-r--r--dev-util/peg/ChangeLog10
-rw-r--r--dev-util/peg/metadata.xml5
-rw-r--r--dev-util/peg/peg-0.1.15.ebuild40
3 files changed, 52 insertions, 3 deletions
diff --git a/dev-util/peg/ChangeLog b/dev-util/peg/ChangeLog
index 4b22b229d662..983ae0a9d4c4 100644
--- a/dev-util/peg/ChangeLog
+++ b/dev-util/peg/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/peg
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v 1.2 2013/09/22 02:56:06 rafaelmartins Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/peg/ChangeLog,v 1.3 2014/05/09 21:47:14 jauhien Exp $
+
+*peg-0.1.15 (09 May 2014)
+
+ 09 May 2014; Jauhien Piatlicki <jauhien@gentoo.org> +peg-0.1.15.ebuild,
+ metadata.xml:
+ version bump / add me as maintainer
*peg-0.1.13 (22 Sep 2013)
diff --git a/dev-util/peg/metadata.xml b/dev-util/peg/metadata.xml
index 6952befafef7..6971c1e19018 100644
--- a/dev-util/peg/metadata.xml
+++ b/dev-util/peg/metadata.xml
@@ -5,5 +5,8 @@
<email>rafaelmartins@gentoo.org</email>
<name>Rafael G. Martins</name>
</maintainer>
+ <maintainer>
+ <email>jauhien@gentoo.org</email>
+ <name>Jauhien Piatlicki</name>
+ </maintainer>
</pkgmetadata>
-
diff --git a/dev-util/peg/peg-0.1.15.ebuild b/dev-util/peg/peg-0.1.15.ebuild
new file mode 100644
index 000000000000..e1d7e5d2e07a
--- /dev/null
+++ b/dev-util/peg/peg-0.1.15.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 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.ebuild,v 1.1 2014/05/09 21:47:14 jauhien Exp $
+
+EAPI=5
+
+DESCRIPTION="Recursive-descent parser generators for C"
+HOMEPAGE="http://piumarta.com/software/peg/"
+SRC_URI="http://piumarta.com/software/${PN}/${PF}.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"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i \
+ -e '/strip/d' \
+ -e '/^CFLAGS/d' \
+ -e 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/g' \
+ Makefile || die "sed failed"
+}
+
+src_install() {
+ mkdir -p "${D}/usr/bin" || die "mkdir failed"
+ emake ROOT="${D}" PREFIX="/usr" install
+ rm -rf "${D}/usr/man" || die "rm failed"
+ doman src/${PN}.1
+}
+
+src_test() {
+ emake check
+ emake test
+}