You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
993 B
57 lines
993 B
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
4 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="ncurses directconnect client"
|
||
|
HOMEPAGE="https://dev.yorhel.nl/ncdc"
|
||
|
if [[ "${PV}" == *9999 ]] ; then
|
||
|
inherit autotools git-r3
|
||
|
EGIT_REPO_URI="git://g.blicky.net/ncdc.git"
|
||
|
else
|
||
|
SRC_URI="https://dev.yorhel.nl/download/${P}.tar.gz"
|
||
4 years ago
|
KEYWORDS="amd64 ~ppc ~sparc x86"
|
||
4 years ago
|
fi
|
||
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0"
|
||
|
IUSE="geoip"
|
||
|
|
||
|
RDEPEND="
|
||
|
app-arch/bzip2
|
||
|
dev-db/sqlite:3
|
||
|
dev-libs/glib:2
|
||
|
net-libs/gnutls:=
|
||
3 years ago
|
sys-libs/ncurses:=[unicode(+)]
|
||
4 years ago
|
sys-libs/zlib:=
|
||
|
geoip? (
|
||
|
dev-libs/geoip
|
||
|
dev-libs/libmaxminddb
|
||
|
)"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND="
|
||
|
dev-util/makeheaders
|
||
|
virtual/pkgconfig
|
||
|
"
|
||
|
|
||
|
src_prepare() {
|
||
|
default
|
||
|
[[ "${PV}" == *9999 ]] && eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
local myeconfargs=(
|
||
|
$(use_with geoip)
|
||
|
)
|
||
|
if [[ "${PV}" == *9999 ]] ; then
|
||
|
myeconfargs+=( --enable-git-version )
|
||
|
fi
|
||
|
econf "${myeconfargs[@]}"
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake AR="$(tc-getAR)"
|
||
|
}
|