mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/log4sh: port to EAPI 7, eutils--
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -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)"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user