blob: 3a094f1be3082b22ac1c8ecdc77b5722d7281b51 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Line oriented front end for ii-like chat programs"
HOMEPAGE="https://tools.suckless.org/lchat/"
SRC_URI="https://dl.suckless.org/tools/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="dev-libs/libgrapheme"
DEPEND="${RDEPEND}"
IUSE="+examples"
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="$CFLAGS" LIBS="-lgrapheme $LDFLAGS" all
if use examples; then
emake CC="$(tc-getCC)" CFLAGS="$CFLAGS $LDFLAGS" filter/indent
fi
}
src_install() {
doman lchat.1
dobin lchat
mv filter/indent lchat-indent
use examples && dobin lchat-indent
}
|