app-misc/away: tidy up ebuild.
authorPatrice Clement <monsieurp@gentoo.org>
Sun, 18 Mar 2018 18:39:31 +0000 (19:39 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 19 Mar 2018 09:08:45 +0000 (10:08 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-misc/away/away-0.9.5-r2.ebuild

index 2c5e59eac8d1e07763db4e5341d2699514b7fa57..36184acaa9af74584e52e5b3c93846120fcb4f2e 100644 (file)
@@ -7,35 +7,33 @@ 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"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ~ppc ~ppc64 sparc x86"
-IUSE=""
 
 RDEPEND=">=sys-libs/pam-0.75"
 DEPEND="${RDEPEND}"
 
+DOCS=( BUGS AUTHORS NEWS README TODO data/awayrc )
 src_prepare() {
        default
        sed -i -e '/-o \$(BINARY)/d' \
-       -e 's:LIBS:LDLIBS:' \
-       "${S}"/Makefile || die "Makefile fix failed"
+               -e 's:LIBS:LDLIBS:' \
+               "${S}"/Makefile || die "Makefile fix failed"
 
 }
 
 src_compile() {
        append-flags -pthread
 
-       emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
+       emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
 }
 
 src_install() {
        dobin away
-
-       pamd_mimic_system away auth
-
        doman doc/*
-       dodoc BUGS AUTHORS NEWS README TODO data/awayrc
+       einstalldocs
+       pamd_mimic_system away auth
 }