# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit toolchain-funcs DESCRIPTION="Simple HTTP injector" HOMEPAGE="http://1wt.eu/tools/inject" SRC_URI="http://1wt.eu/tools/${PN}/${PN}${PV}.tar.gz" LICENSE="GPL-1" SLOT="0" KEYWORDS="amd64 arm x86" IUSE="" S="${WORKDIR}/${PN}${PV}" PATCHES=( "${FILESDIR}/${PV}-BUILD-INT_MAX-requires-limits.h.patch" "${FILESDIR}/${PV}-MEDIUM-Remove-hardcoded-march-i686-and-mpreferred-st.patch" ) src_compile() { emake "${PN}" \ CC="$(tc-getCC)" \ CPU="${CFLAGS}" \ LD_OPTS="${LDFLAGS}" } src_install() { dobin "${PN}" }