| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-misc/reptyr/reptyr-0.3.ebuild,v 1.4 2012/07/23 16:11:34 steev Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit toolchain-funcs flag-o-matic |
| 8 |
|
| 9 |
DESCRIPTION="A utility to attach a running program to a new terminal" |
| 10 |
HOMEPAGE="https://github.com/nelhage/reptyr" |
| 11 |
SRC_URI="https://github.com/nelhage/${PN}/tarball/${P} -> ${P}.tar.gz" |
| 12 |
|
| 13 |
LICENSE="MIT" |
| 14 |
SLOT="0" |
| 15 |
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
| 16 |
IUSE="" |
| 17 |
|
| 18 |
src_unpack() { |
| 19 |
unpack ${A} |
| 20 |
mv *-${PN}-* "${S}" |
| 21 |
} |
| 22 |
|
| 23 |
src_compile() { |
| 24 |
append-cflags -D_GNU_SOURCE |
| 25 |
emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" |
| 26 |
} |
| 27 |
|
| 28 |
src_install() { |
| 29 |
emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install |
| 30 |
dodoc ChangeLog NOTES README |
| 31 |
} |