forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ccze-0.2.1-r3.ebuild
45 lines (31 loc) · 945 Bytes
/
ccze-0.2.1-r3.ebuild
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
40
41
42
43
44
45
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit fixheadtails autotools eutils toolchain-funcs
DESCRIPTION="A flexible and fast logfile colorizer"
HOMEPAGE="https://dev.gentoo.org/~joker/ccze/ccze.txt"
SRC_URI="mirror://gentoo/${P}.tar.gz"
RESTRICT="test"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
IUSE=""
DEPEND="dev-libs/libpcre
sys-libs/ncurses"
RDEPEND="${DEPEND}"
DOCS=( AUTHORS ChangeLog ChangeLog-0.1 NEWS THANKS README FAQ )
src_prepare() {
epatch "${FILESDIR}"/ccze-fbsd.patch
epatch "${FILESDIR}"/ccze-segfault.patch
epatch "${FILESDIR}"/ccze-ldflags.patch
epatch "${FILESDIR}"/${P}-tinfo.patch
# GCC 4.x fixes
sed -e 's/-Wswitch -Wmulticharacter/-Wswitch/' \
-i src/Makefile.in || die
sed -e '/AC_CHECK_TYPE(error_t, int)/d' \
-i configure.ac || die
eautoreconf
ht_fix_file Rules.mk.in
tc-export CC
}