summaryrefslogtreecommitdiff
blob: d503450723724b301f05e3fe0afab70661cf4689 (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
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit eutils toolchain-funcs

MY_P="IRCStats-${PV}"

DESCRIPTION="IRCStats is a Linux log analyzer"
HOMEPAGE="https://humdi.net/ircstats/"
SRC_URI="https://humdi.net/ircstats/${MY_P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

S="${WORKDIR}"/${MY_P}

src_compile() {
	default
	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}

src_install() {
	dobin ircstats
	insinto /usr/share/ircstats
	doins -r html languages colors
	dodoc CHANGES README TODO ircstats.cfg
}

pkg_postinst() {
	elog "The IRCStats files have been installed in /usr/share/ircstats"
	elog "You can find an example ircstats.cfg in /usr/share/doc/${PF}"
}