diff options
author | Amy Liffey <amynka@gentoo.org> | 2017-08-11 23:11:58 +0200 |
---|---|---|
committer | Amy Liffey <amynka@gentoo.org> | 2017-08-11 23:11:58 +0200 |
commit | 99ba4dbeb1a0ad95e7c9483c4720fdc633c96d68 (patch) | |
tree | 0c6e2a061c4a30ec23381512c76de4a3829f3589 /app-misc | |
parent | app-doc/mkdoxy: EAPI 6 bump (diff) | |
download | gentoo-99ba4dbeb1a0ad95e7c9483c4720fdc633c96d68.tar.gz gentoo-99ba4dbeb1a0ad95e7c9483c4720fdc633c96d68.tar.bz2 gentoo-99ba4dbeb1a0ad95e7c9483c4720fdc633c96d68.zip |
app-misc/away: EAPI 6 bump
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/away/away-0.9.5-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-misc/away/away-0.9.5-r2.ebuild b/app-misc/away/away-0.9.5-r2.ebuild new file mode 100644 index 000000000000..ed55ee02ecef --- /dev/null +++ b/app-misc/away/away-0.9.5-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit pam toolchain-funcs flag-o-matic + +DESCRIPTION="Terminal locking program with few additional features" +HOMEPAGE="http://unbeatenpath.net/software/away/" +SRC_URI="http://unbeatenpath.net/software/away/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND=">=sys-libs/pam-0.75" +DEPEND="${RDEPEND}" + +src_prepare() { + default + sed -i -e '/-o \$(BINARY)/d' \ + -e 's:LIBS:LDLIBS:' \ + "${S}"/Makefile || die "Makefile fix failed" + +} + +src_compile() { + append-flags -pthread + + emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die +} + +src_install() { + dobin away + + pamd_mimic_system away auth + + doman doc/* + dodoc BUGS AUTHORS NEWS README TODO data/awayrc +} |