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.
63 lines
1.3 KiB
63 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
9 years ago
|
inherit cmake-utils user
|
||
9 years ago
|
|
||
|
DESCRIPTION="Cross-platform Direct Connect client"
|
||
8 years ago
|
HOMEPAGE="https://airdcpp-web.github.io/"
|
||
9 years ago
|
SRC_URI="https://github.com/airdcpp-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
9 years ago
|
IUSE="nat-pmp +tbb +webui"
|
||
9 years ago
|
|
||
|
RDEPEND="
|
||
|
app-arch/bzip2
|
||
|
dev-cpp/websocketpp
|
||
|
dev-libs/boost
|
||
9 years ago
|
dev-libs/geoip
|
||
|
dev-libs/leveldb
|
||
|
dev-libs/openssl:0=
|
||
|
net-libs/miniupnpc
|
||
|
sys-libs/zlib
|
||
|
virtual/libiconv
|
||
|
nat-pmp? ( net-libs/libnatpmp )
|
||
|
tbb? ( dev-cpp/tbb )
|
||
9 years ago
|
"
|
||
|
DEPEND="
|
||
9 years ago
|
dev-lang/python:*
|
||
9 years ago
|
${RDEPEND}
|
||
|
"
|
||
|
PDEPEND="webui? ( www-apps/airdcpp-webui )"
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DINSTALL_WEB_UI=OFF
|
||
|
-DLIB_INSTALL_DIR=$(get_libdir)
|
||
|
)
|
||
|
cmake-utils_src_configure
|
||
|
}
|
||
|
|
||
9 years ago
|
src_install() {
|
||
|
newconfd "${FILESDIR}/airdcppd.confd" airdcppd
|
||
|
newinitd "${FILESDIR}/airdcppd.initd" airdcppd
|
||
|
keepdir /var/lib/airdcppd
|
||
|
fowners airdcppd:airdcppd /var/lib/airdcppd
|
||
|
cmake-utils_src_install
|
||
|
}
|
||
|
|
||
|
pkg_setup() {
|
||
|
enewgroup airdcppd
|
||
|
enewuser airdcppd -1 -1 /var/lib/airdcppd airdcppd
|
||
|
}
|
||
|
|
||
9 years ago
|
pkg_postinst() {
|
||
|
if [[ -z "${REPLACING_VERSIONS}" ]]; then
|
||
|
elog "Run 'airdcppd --configure' to set up ports and authentication"
|
||
|
fi
|
||
|
}
|