From 908778078736bd36f7a60a2d576d415cb8e000fa Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 22 May 2021 07:31:18 +0100 Subject: gentoo resync : 22.05.2021 --- app-doc/abs-guide/abs-guide-10.ebuild | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'app-doc/abs-guide/abs-guide-10.ebuild') diff --git a/app-doc/abs-guide/abs-guide-10.ebuild b/app-doc/abs-guide/abs-guide-10.ebuild index 7d403012ca56..0eba92d03470 100644 --- a/app-doc/abs-guide/abs-guide-10.ebuild +++ b/app-doc/abs-guide/abs-guide-10.ebuild @@ -1,27 +1,26 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="5" +EAPI=7 DESCRIPTION="An in-depth exploration of the art of shell scripting" HOMEPAGE="https://www.tldp.org/LDP/abs/html" SRC_URI="http://bash.deta.in/abs-guide-final.tar.bz2 pdf? ( http://bash.deta.in/abs-guide.pdf )" +S="${WORKDIR}"/abs LICENSE="public-domain" -IUSE="pdf" SLOT="0" KEYWORDS="~alpha amd64 hppa ~mips ppc sparc x86" - -DEPEND="" -RDEPEND="" - -S="${WORKDIR}/abs" +IUSE="pdf" src_unpack() { unpack abs-guide-final.tar.bz2 - use pdf && cp "${DISTDIR}"/abs-guide.pdf "${S}" + + if use pdf ; then + cp "${DISTDIR}"/abs-guide.pdf "${S}" || die + fi } src_install() { @@ -30,9 +29,7 @@ src_install() { } pkg_postinst() { - echo - elog "The HTML docs can be accessed through /usr/share/doc/${P}/HTML/index.html" - elog "Example scripts from the book are installed in /usr/share/doc/${P}/" + elog "The HTML docs can be accessed through ${EROOT}/usr/share/doc/${PF}/HTML/index.html" + elog "Example scripts from the book are installed in ${EROOT}/usr/share/doc/${PF}/" use pdf && elog "along with the pdf version." - echo } -- cgit v1.2.3