summaryrefslogtreecommitdiff
blob: fd9a9a6f2593bbb47be30d32b2fe716292c07cbd (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit cmake-utils

DESCRIPTION="Cross-platform Direct Connect client"
HOMEPAGE="https://github.com/airdcpp-web/airdcpp-webclient"
SRC_URI="https://github.com/airdcpp-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="+webui"

RDEPEND="
	dev-libs/geoip
	app-arch/bzip2
	sys-libs/zlib
	dev-libs/openssl:0
	dev-cpp/tbb
	virtual/libiconv
	net-libs/miniupnpc
	net-libs/libnatpmp
	dev-libs/leveldb
	dev-cpp/websocketpp
	dev-libs/boost
"
DEPEND="
	net-libs/nodejs
	${RDEPEND}
"
PDEPEND="webui? ( www-apps/airdcpp-webui )"

src_configure() {
	local mycmakeargs=(
		-DINSTALL_WEB_UI=OFF
		-DLIB_INSTALL_DIR=$(get_libdir)
	)
	cmake-utils_src_configure
}

pkg_postinst() {
	if [[ -z "${REPLACING_VERSIONS}" ]]; then
		elog "Run 'airdcppd --configure' to set up ports and authentication"
	fi
}