1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs flag-o-matic vcs-snapshot
8 DESCRIPTION="A utility to attach a running program to a new terminal"
9 HOMEPAGE="https://github.com/nelhage/reptyr"
10 SRC_URI="https://github.com/nelhage/${PN}/archive/${P}.tar.gz"
14 KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux"
18 # https://github.com/nelhage/reptyr/issues/81
19 SRC_URI+=" https://github.com/nelhage/reptyr/commit/b45fd9238958fcf2d8f3d6fc23e6d491febea2ac.patch -> ${PN}-0.6.2-sysmacros.patch"
22 "${DISTDIR}/${P}-sysmacros.patch" #581974
28 sed -i '/^override/d' Makefile || die
32 append-cppflags -D_GNU_SOURCE
33 emake CC=$(tc-getCC) CFLAGS="${CFLAGS}"
37 emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install
38 dodoc ChangeLog NOTES README.md