summaryrefslogtreecommitdiff
path: root/sys-apps/colortail/colortail-0.3.3.ebuild
blob: 4c3acfec690c6e64ea24b75b835a3ac54234ecac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="tail command with colors"
HOMEPAGE="https://github.com/joakim666/colortail"

SRC_URI="https://github.com/joakim666/colortail/releases/download/${PV}/${P}.tar.gz"

inherit autotools

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

PATCHES=(
	"${FILESDIR}"/01_colorize_default.patch
	"${FILESDIR}"/02_adding_option.patch
)

DOCS=(TODO README ChangeLog BUGS AUTHORS example-conf/conf.{daemon,kernel,messages,secure,xferlog} )

src_prepare() {
	eautoreconf
	default
}

src_compile() {
	emake || die
}

src_install() {
	emake install DESTDIR="${ED}" || die
	doman "${FILESDIR}/${PN}.1"
	dodoc ${DOCS[@]}
	insinto /etc/colortail
	newins example-conf/conf.messages conf.colortail
}