blob: e5324b2053607487e13d5fda80b8e1eb510c4a64 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic toolchain-funcs
MY_P="ScrollZ-${PV}"
DESCRIPTION="Advanced IRC client based on ircII"
HOMEPAGE="https://www.scrollz.info/"
SRC_URI="https://www.scrollz.info/download/${MY_P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-patches.tar.xz"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc ~riscv x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="gmp gnutls ipv6 ssl"
REQUIRED_USE="gnutls? ( ssl )"
BDEPEND="virtual/pkgconfig"
DEPEND="
sys-libs/ncurses:=
virtual/libcrypt:=
gmp? ( dev-libs/gmp:= )
ssl? (
gnutls? ( net-libs/gnutls:= )
!gnutls? ( dev-libs/openssl:= )
)
"
RDEPEND="${DEPEND}"
PATCHES=(
# https://github.com/ScrollZ/ScrollZ/pull/30
"${WORKDIR}"/${P}-patches
)
src_configure() {
# Many -Wdeprecated-non-prototype warnings
append-cflags -std=gnu89
local _myssl
if use ssl; then
if use gnutls; then
_myssl="--with-ssl"
else
_myssl="--with-openssl"
fi
fi
tc-export CC #397441, ancient autoconf
econf \
--with-default-server="irc.gentoo.org" \
$(use_enable ipv6) \
--enable-regexp \
$(use_enable gmp fish) \
${_myssl}
}
src_install() {
emake \
DESTDIR="${ED}" \
mandir="${EPREFIX}/usr/share/man/man1" \
install
dodoc ChangeLog* NEWS README* todo
}
|