mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/peg: drop 0.1.18, EAPI=7--
Closes: https://bugs.gentoo.org/791304 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST peg-0.1.18.tar.gz 57776 BLAKE2B 3266db2009073ee95a7fe65f3969b06001669dca095a8b77cbef3293557f9919872b44b348ff3de53cf8a132fd414c265bf0da3f77f0da0391d6d53cf4ab9217 SHA512 ca2fb9088bf87955adf6f883370ddb7d5f6f3cae3605a871094317205a124cce4f7b9f83cf4662cb470e2c5a6977608b456eb1fad98022d7e40fc384d1fec0f8
|
||||
DIST peg-0.1.19.tar.gz 136241 BLAKE2B 78487434f49c64bbe4454e603d5bef8f264fd095339a389c16eb50765e641b2a337426d7bd5fef5d3ad205d9e502850b3f813a7a67b399a936c402f25a74b0c6 SHA512 fc6a1dfab73bde6992b5385ac1c190fa957e9838d5ec6ddb2bbe6f773766c793d745e892bc952dc65969a6ff942424b7208a9d9d27f177a451da5c22b05d5575
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Recursive-descent parser generators for C"
|
||||
HOMEPAGE="https://piumarta.com/software/peg/"
|
||||
SRC_URI="https://piumarta.com/software/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
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 \
|
||||
ROOT="${D}" \
|
||||
PREFIX="/usr" \
|
||||
install
|
||||
rm -rf "${D}/usr/man" || die "rm failed"
|
||||
doman src/${PN}.1
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake check test \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
Reference in New Issue
Block a user