summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-02 06:01:15 +0100
committerSam James <sam@gentoo.org>2021-04-03 16:54:31 +0100
commitb92cc2dda97c568115d838ae587dc6e71073ee07 (patch)
treebedd60212d7724a98a8d3e16d837d83efc87352c /dev-libs/log4sh
parentdev-libs/libxslt: drop unused toolchain-funcs (diff)
downloadgentoo-b92cc2dda97c568115d838ae587dc6e71073ee07.tar.gz
gentoo-b92cc2dda97c568115d838ae587dc6e71073ee07.tar.bz2
gentoo-b92cc2dda97c568115d838ae587dc6e71073ee07.zip
dev-libs/log4sh: port to EAPI 7, eutils--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/log4sh')
-rw-r--r--dev-libs/log4sh/log4sh-1.4.2.ebuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/dev-libs/log4sh/log4sh-1.4.2.ebuild b/dev-libs/log4sh/log4sh-1.4.2.ebuild
index bb98dc57cf64..09caddd99216 100644
--- a/dev-libs/log4sh/log4sh-1.4.2.ebuild
+++ b/dev-libs/log4sh/log4sh-1.4.2.ebuild
@@ -1,9 +1,7 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-
-inherit eutils
+EAPI=7
DESCRIPTION="A flexible logging framework for shell scripts"
HOMEPAGE="https://sourceforge.net/projects/log4sh"
@@ -22,8 +20,7 @@ src_compile() {
src_test() {
# testsuite needs USER variable
- export USER="$(whoami)"
- make test || die "make test failed"
+ USER="$(whoami)" emake test
}
src_install() {
@@ -31,7 +28,9 @@ src_install() {
doins build/log4sh
dodoc doc/*.txt
- dohtml doc/*.{html,css}
+
+ docinto html
+ dodoc doc/*.{html,css}
if use examples; then
docinto examples
@@ -41,7 +40,7 @@ src_install() {
}
pkg_postinst() {
- elog "To use log4sh, have your script source /usr/lib/log4sh/log4sh"
+ elog "To use log4sh, have your script source ${EPREFIX}/usr/lib/log4sh/log4sh"
elog "If you want to use remote logging, you should install package,"
elog "that provides netcat binary (for example - net-analyzer/netcat)"
}