summaryrefslogtreecommitdiff
blob: d4712c50f4b88ee849eb8528de31b10033d480d5 (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
40
41
42
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit toolchain-funcs

DESCRIPTION="Ninja IRC Client"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI="ftp://qoop.org/ninja/stable/${P/_/}.tar.gz"
S="${WORKDIR}"/${P/_*/}

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="amd64 ppc ~ppc64 ~sparc x86"
IUSE="ncurses ipv6 ssl"

RESTRICT="test"

DEPEND="
	ncurses? ( sys-libs/ncurses:= )
	ssl?  ( dev-libs/openssl:= )
"
RDEPEND="${DEPEND}"

MAKEOPTS="${MAKEOPTS} -j1"

src_configure() {
	tc-export CC

	econf $(use_enable ipv6)

	# Generated post-configure
	sed -i -e "s:/usr/lib:/usr/$(get_libdir):" Makefile || die
}

src_install() {
	default

	# bug #436804
	mv "${ED}"/usr/bin/ninja{,_irc} || die
}